mirror of
https://git.dev.opencascade.org/repos/occt.git
synced 2025-04-05 18:16:23 +03:00
0030425: Visualization - possibility to redefine AIS_Selection
This commit is contained in:
parent
ba83248011
commit
87bda9d805
@ -1209,6 +1209,13 @@ public: //! @name sub-intensity management (deprecated)
|
|||||||
Standard_EXPORT void SubIntensityOff (const Handle(AIS_InteractiveObject)& theIObj,
|
Standard_EXPORT void SubIntensityOff (const Handle(AIS_InteractiveObject)& theIObj,
|
||||||
const Standard_Boolean theToUpdateViewer);
|
const Standard_Boolean theToUpdateViewer);
|
||||||
|
|
||||||
|
//! Returns selection instance
|
||||||
|
const Handle(AIS_Selection)& Selection() const { return mySelection; }
|
||||||
|
|
||||||
|
//! Sets selection instance to manipulate a container of selected owners
|
||||||
|
//! @param theSelection an instance of the selection
|
||||||
|
void SetSelection (const Handle(AIS_Selection)& theSelection) { mySelection = theSelection; }
|
||||||
|
|
||||||
protected: //! @name internal methods
|
protected: //! @name internal methods
|
||||||
|
|
||||||
Standard_EXPORT void GetDefModes (const Handle(AIS_InteractiveObject)& anIobj, Standard_Integer& Dmode, Standard_Integer& HiMod, Standard_Integer& SelMode) const;
|
Standard_EXPORT void GetDefModes (const Handle(AIS_InteractiveObject)& anIobj, Standard_Integer& Dmode, Standard_Integer& HiMod, Standard_Integer& SelMode) const;
|
||||||
|
@ -32,18 +32,18 @@ public:
|
|||||||
Standard_EXPORT AIS_Selection();
|
Standard_EXPORT AIS_Selection();
|
||||||
|
|
||||||
//! removes all the object of the selection.
|
//! removes all the object of the selection.
|
||||||
Standard_EXPORT void Clear();
|
Standard_EXPORT virtual void Clear();
|
||||||
|
|
||||||
//! if the object is not yet in the selection, it will be added.
|
//! if the object is not yet in the selection, it will be added.
|
||||||
//! if the object is already in the selection, it will be removed.
|
//! if the object is already in the selection, it will be removed.
|
||||||
Standard_EXPORT AIS_SelectStatus Select (const Handle(SelectMgr_EntityOwner)& theObject);
|
Standard_EXPORT virtual AIS_SelectStatus Select (const Handle(SelectMgr_EntityOwner)& theObject);
|
||||||
|
|
||||||
//! the object is always add int the selection.
|
//! the object is always add int the selection.
|
||||||
//! faster when the number of objects selected is great.
|
//! faster when the number of objects selected is great.
|
||||||
Standard_EXPORT AIS_SelectStatus AddSelect (const Handle(SelectMgr_EntityOwner)& theObject);
|
Standard_EXPORT virtual AIS_SelectStatus AddSelect (const Handle(SelectMgr_EntityOwner)& theObject);
|
||||||
|
|
||||||
//! clears the selection and adds the object in the selection.
|
//! clears the selection and adds the object in the selection.
|
||||||
void ClearAndSelect (const Handle(SelectMgr_EntityOwner)& theObject)
|
virtual void ClearAndSelect (const Handle(SelectMgr_EntityOwner)& theObject)
|
||||||
{
|
{
|
||||||
Clear();
|
Clear();
|
||||||
Select (theObject);
|
Select (theObject);
|
||||||
|
Loading…
x
Reference in New Issue
Block a user