Open CASCADE Technology 6.6.0
Public Member Functions | Protected Attributes
MeshVS_MeshOwner Class Reference

The custom mesh owner used for advanced mesh selection. This class provides methods to store information:
1) IDs of hilighted mesh nodes and elements
2) IDs of mesh nodes and elements selected on the mesh

#include <MeshVS_MeshOwner.hxx>

Inheritance diagram for MeshVS_MeshOwner:
Inheritance graph
[legend]

Public Member Functions

 MeshVS_MeshOwner (const SelectMgr_SOPtr &theSelObj, const Handle< MeshVS_DataSource > &theDS, const Standard_Integer thePriority=0)
const Handle_MeshVS_DataSource & GetDataSource () const
const
Handle_TColStd_HPackedMapOfInteger & 
GetSelectedNodes () const
 Returns ids of selected mesh nodes

const
Handle_TColStd_HPackedMapOfInteger & 
GetSelectedElements () const
 Returns ids of selected mesh elements

virtual void AddSelectedEntities (const Handle< TColStd_HPackedMapOfInteger > &Nodes, const Handle< TColStd_HPackedMapOfInteger > &Elems)
 Saves ids of selected mesh entities

virtual void ClearSelectedEntities ()
 Clears ids of selected mesh entities

const
Handle_TColStd_HPackedMapOfInteger & 
GetDetectedNodes () const
 Returns ids of hilighted mesh nodes

const
Handle_TColStd_HPackedMapOfInteger & 
GetDetectedElements () const
 Returns ids of hilighted mesh elements

void SetDetectedEntities (const Handle< TColStd_HPackedMapOfInteger > &Nodes, const Handle< TColStd_HPackedMapOfInteger > &Elems)
 Saves ids of hilighted mesh entities

virtual void HilightWithColor (const Handle< PrsMgr_PresentationManager3d > &PM, const Quantity_NameOfColor theColor, const Standard_Integer Mode=0)
virtual void Unhilight (const Handle< PrsMgr_PresentationManager > &PM, const Standard_Integer Mode=0)
 Removes highlighting from the owner of a detected
selectable object in the presentation manager aPM.
This object could be the owner of a sensitive primitive.
The display mode for the highlight is aMode; this has
the default value of 0, that is, wireframe mode.

virtual Standard_Boolean IsForcedHilight () const
 if this method returns TRUE the owner will allways call method
Hilight for SelectableObject when the owner is detected. By default
it always return FALSE.

Protected Attributes

Handle_TColStd_HPackedMapOfInteger mySelectedNodes
Handle_TColStd_HPackedMapOfInteger mySelectedElems

Constructor & Destructor Documentation

MeshVS_MeshOwner::MeshVS_MeshOwner ( const SelectMgr_SOPtr theSelObj,
const Handle< MeshVS_DataSource > &  theDS,
const Standard_Integer  thePriority = 0 
)

Member Function Documentation

virtual void MeshVS_MeshOwner::AddSelectedEntities ( const Handle< TColStd_HPackedMapOfInteger > &  Nodes,
const Handle< TColStd_HPackedMapOfInteger > &  Elems 
) [virtual]
virtual void MeshVS_MeshOwner::ClearSelectedEntities ( ) [virtual]
const Handle_MeshVS_DataSource& MeshVS_MeshOwner::GetDataSource ( ) const
const Handle_TColStd_HPackedMapOfInteger& MeshVS_MeshOwner::GetDetectedElements ( ) const
const Handle_TColStd_HPackedMapOfInteger& MeshVS_MeshOwner::GetDetectedNodes ( ) const
const Handle_TColStd_HPackedMapOfInteger& MeshVS_MeshOwner::GetSelectedElements ( ) const
const Handle_TColStd_HPackedMapOfInteger& MeshVS_MeshOwner::GetSelectedNodes ( ) const
virtual void MeshVS_MeshOwner::HilightWithColor ( const Handle< PrsMgr_PresentationManager3d > &  PM,
const Quantity_NameOfColor  theColor,
const Standard_Integer  Mode = 0 
) [virtual]

Reimplemented from SelectMgr_EntityOwner.

virtual Standard_Boolean MeshVS_MeshOwner::IsForcedHilight ( ) const [virtual]

Reimplemented from SelectMgr_EntityOwner.

void MeshVS_MeshOwner::SetDetectedEntities ( const Handle< TColStd_HPackedMapOfInteger > &  Nodes,
const Handle< TColStd_HPackedMapOfInteger > &  Elems 
)
virtual void MeshVS_MeshOwner::Unhilight ( const Handle< PrsMgr_PresentationManager > &  aPM,
const Standard_Integer  aMode = 0 
) [virtual]

Reimplemented from SelectMgr_EntityOwner.


Field Documentation

Handle_TColStd_HPackedMapOfInteger MeshVS_MeshOwner::mySelectedElems [protected]
Handle_TColStd_HPackedMapOfInteger MeshVS_MeshOwner::mySelectedNodes [protected]

The documentation for this class was generated from the following file:
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Defines