Open CASCADE Technology  7.2.0
Public Member Functions | Protected Member Functions | Protected Attributes

SelectBasics_EntityOwner Class Referenceabstract

defines an abstract owner of sensitive primitives. Owners are typically used to establish a connection between sensitive entities and high-level objects (e.g. presentations). More...

#include <SelectBasics_EntityOwner.hxx>

Inheritance diagram for SelectBasics_EntityOwner:
Inheritance graph
[legend]

Public Member Functions

void SetPriority (const Standard_Integer thePriority)
 sets the selectable priority of the owner More...
 
Standard_Integer Priority () const
 
virtual Standard_Boolean HasLocation () const =0
 
virtual void SetLocation (const TopLoc_Location &aLoc)=0
 
virtual void ResetLocation ()=0
 
virtual TopLoc_Location Location () const =0
 
void Set (const Standard_Integer thePriority)
 sets the selectable priority of the owner More...
 
- Public Member Functions inherited from Standard_Transient
 Standard_Transient ()
 Empty constructor. More...
 
 Standard_Transient (const Standard_Transient &)
 Copy constructor – does nothing. More...
 
Standard_Transientoperator= (const Standard_Transient &)
 Assignment operator, needed to avoid copying reference counter. More...
 
virtual ~Standard_Transient ()
 Destructor must be virtual. More...
 
virtual void Delete () const
 Memory deallocator for transient classes. More...
 
virtual const opencascade::handle< Standard_Type > & DynamicType () const
 Returns a type descriptor about this object. More...
 
Standard_Boolean IsInstance (const opencascade::handle< Standard_Type > &theType) const
 Returns a true value if this is an instance of Type. More...
 
Standard_Boolean IsInstance (const Standard_CString theTypeName) const
 Returns a true value if this is an instance of TypeName. More...
 
Standard_Boolean IsKind (const opencascade::handle< Standard_Type > &theType) const
 Returns true if this is an instance of Type or an instance of any class that inherits from Type. Note that multiple inheritance is not supported by OCCT RTTI mechanism. More...
 
Standard_Boolean IsKind (const Standard_CString theTypeName) const
 Returns true if this is an instance of TypeName or an instance of any class that inherits from TypeName. Note that multiple inheritance is not supported by OCCT RTTI mechanism. More...
 
Standard_TransientThis () const
 Returns non-const pointer to this object (like const_cast). For protection against creating handle to objects allocated in stack or call from constructor, it will raise exception Standard_ProgramError if reference counter is zero. More...
 
Standard_Integer GetRefCount () const
 Get the reference counter of this object. More...
 
void IncrementRefCounter () const
 Increments the reference counter of this object. More...
 
Standard_Integer DecrementRefCounter () const
 Decrements the reference counter of this object; returns the decremented value. More...
 

Protected Member Functions

 SelectBasics_EntityOwner (const Standard_Integer thePriority=0)
 

Protected Attributes

Standard_Integer mypriority
 

Additional Inherited Members

- Public Types inherited from Standard_Transient
typedef void base_type
 Returns a type descriptor about this object. More...
 
- Static Public Member Functions inherited from Standard_Transient
static const char * get_type_name ()
 Returns a type descriptor about this object. More...
 
static const opencascade::handle< Standard_Type > & get_type_descriptor ()
 Returns type descriptor of Standard_Transient class. More...
 

Detailed Description

defines an abstract owner of sensitive primitives. Owners are typically used to establish a connection between sensitive entities and high-level objects (e.g. presentations).

Priority : It's possible to give a priority: the scale : [0-9] ; the default priority is 0 it allows the predominance of one selected object upon another one if many objects are selected at the same time

example : Selection of shapes : the owners are selectable objects (presentations)

a user can give vertex priority [3], edges [2] faces [1] shape [0], so that if during selection one vertex one edge and one face are simultaneously detected, the vertex will only be hilighted.

Constructor & Destructor Documentation

◆ SelectBasics_EntityOwner()

SelectBasics_EntityOwner::SelectBasics_EntityOwner ( const Standard_Integer  thePriority = 0)
protected

Member Function Documentation

◆ HasLocation()

virtual Standard_Boolean SelectBasics_EntityOwner::HasLocation ( ) const
pure virtual

Implemented in SelectMgr_EntityOwner.

◆ Location()

virtual TopLoc_Location SelectBasics_EntityOwner::Location ( ) const
pure virtual

Implemented in SelectMgr_EntityOwner.

◆ Priority()

Standard_Integer SelectBasics_EntityOwner::Priority ( ) const
inline

◆ ResetLocation()

virtual void SelectBasics_EntityOwner::ResetLocation ( )
pure virtual

◆ Set()

void SelectBasics_EntityOwner::Set ( const Standard_Integer  thePriority)
inline

sets the selectable priority of the owner

◆ SetLocation()

virtual void SelectBasics_EntityOwner::SetLocation ( const TopLoc_Location aLoc)
pure virtual

◆ SetPriority()

void SelectBasics_EntityOwner::SetPriority ( const Standard_Integer  thePriority)
inline

sets the selectable priority of the owner

Field Documentation

◆ mypriority

Standard_Integer SelectBasics_EntityOwner::mypriority
protected

The documentation for this class was generated from the following file: