// File: MeshVS_MeshEntityOwner.cxx // Created: Tue Sep 9 2003 // Author: Alexander SOLOVYOV // Copyright: Open CASCADE 2003 #include #include #include #include #include #include #include #include #include #include #include #ifndef MeshVS_PRSBUILDERHXX #include #endif //================================================================ // Function : Constructor MeshVS_MeshEntityOwner // Purpose : //================================================================ MeshVS_MeshEntityOwner::MeshVS_MeshEntityOwner ( const SelectMgr_SOPtr& SelObj, const Standard_Integer ID, const Standard_Address MeshEntity, const MeshVS_EntityType& Type, const Standard_Integer Priority, const Standard_Boolean IsGroup ) : SelectMgr_EntityOwner ( SelObj, Priority ), myAddr ( MeshEntity ), myType ( Type ), myID ( ID ), myIsGroup ( IsGroup ) { SelectBasics_EntityOwner::Set ( Priority ); } //================================================================ // Function : Owner // Purpose : //================================================================ Standard_Address MeshVS_MeshEntityOwner::Owner() const { return myAddr; } //================================================================ // Function : Type // Purpose : //================================================================ MeshVS_EntityType MeshVS_MeshEntityOwner::Type() const { return myType; } //================================================================ // Function : IsGroup // Purpose : //================================================================ Standard_Boolean MeshVS_MeshEntityOwner::IsGroup() const { return myIsGroup; } //================================================================ // Function : IsHilighted // Purpose : //================================================================ Standard_Boolean MeshVS_MeshEntityOwner::IsHilighted ( const Handle(PrsMgr_PresentationManager)&, const Standard_Integer ) const { return Standard_False; } //================================================================ // Function : Hilight // Purpose : //================================================================ void MeshVS_MeshEntityOwner::Hilight () { } //================================================================ // Function : Hilight // Purpose : //================================================================ void MeshVS_MeshEntityOwner::Hilight ( const Handle(PrsMgr_PresentationManager)&, const Standard_Integer ) { } //================================================================ // Function : HilightWithColor // Purpose : //================================================================ void MeshVS_MeshEntityOwner::HilightWithColor ( const Handle(PrsMgr_PresentationManager3d)& thePM, const Quantity_NameOfColor theColor, const Standard_Integer /*theMode*/ ) { Handle( SelectMgr_SelectableObject ) aSelObj; if ( HasSelectable() ) aSelObj = Selectable(); if ( thePM->IsImmediateModeOn() && aSelObj->IsKind( STANDARD_TYPE( MeshVS_Mesh ) ) ) { Handle( MeshVS_Mesh ) aMesh = Handle( MeshVS_Mesh )::DownCast ( aSelObj ); aMesh->HilightOwnerWithColor ( thePM, theColor, this ); } } //================================================================ // Function : Unhilight // Purpose : //================================================================ void MeshVS_MeshEntityOwner::Unhilight ( const Handle(PrsMgr_PresentationManager)&, const Standard_Integer ) { } //================================================================ // Function : Clear // Purpose : //================================================================ void MeshVS_MeshEntityOwner::Clear ( const Handle(PrsMgr_PresentationManager)&, const Standard_Integer ) { } //================================================================ // Function : ID // Purpose : //================================================================ Standard_Integer MeshVS_MeshEntityOwner::ID () const { return myID; }