File indexing completed on 2025-01-18 10:04:16
0001
0002
0003
0004
0005
0006
0007
0008
0009
0010
0011
0012
0013
0014
0015
0016 #ifndef _MeshVS_MeshOwner_HeaderFile
0017 #define _MeshVS_MeshOwner_HeaderFile
0018
0019 #include <SelectMgr_EntityOwner.hxx>
0020 #include <PrsMgr_PresentationManager.hxx>
0021
0022 class MeshVS_DataSource;
0023 class TColStd_HPackedMapOfInteger;
0024 class PrsMgr_PresentationManager;
0025
0026
0027 class MeshVS_MeshOwner;
0028 DEFINE_STANDARD_HANDLE(MeshVS_MeshOwner, SelectMgr_EntityOwner)
0029
0030
0031
0032
0033 class MeshVS_MeshOwner : public SelectMgr_EntityOwner
0034 {
0035
0036 public:
0037
0038
0039 Standard_EXPORT MeshVS_MeshOwner(const SelectMgr_SelectableObject* theSelObj, const Handle(MeshVS_DataSource)& theDS, const Standard_Integer thePriority = 0);
0040
0041 Standard_EXPORT const Handle(MeshVS_DataSource)& GetDataSource() const;
0042
0043
0044 Standard_EXPORT const Handle(TColStd_HPackedMapOfInteger)& GetSelectedNodes() const;
0045
0046
0047 Standard_EXPORT const Handle(TColStd_HPackedMapOfInteger)& GetSelectedElements() const;
0048
0049
0050 Standard_EXPORT virtual void AddSelectedEntities (const Handle(TColStd_HPackedMapOfInteger)& Nodes, const Handle(TColStd_HPackedMapOfInteger)& Elems);
0051
0052
0053 Standard_EXPORT virtual void ClearSelectedEntities();
0054
0055
0056 Standard_EXPORT const Handle(TColStd_HPackedMapOfInteger)& GetDetectedNodes() const;
0057
0058
0059 Standard_EXPORT const Handle(TColStd_HPackedMapOfInteger)& GetDetectedElements() const;
0060
0061
0062 Standard_EXPORT void SetDetectedEntities (const Handle(TColStd_HPackedMapOfInteger)& Nodes, const Handle(TColStd_HPackedMapOfInteger)& Elems);
0063
0064 Standard_EXPORT virtual void HilightWithColor (const Handle(PrsMgr_PresentationManager)& thePM,
0065 const Handle(Prs3d_Drawer)& theColor,
0066 const Standard_Integer theMode) Standard_OVERRIDE;
0067
0068 Standard_EXPORT virtual void Unhilight (const Handle(PrsMgr_PresentationManager)& PM, const Standard_Integer Mode = 0) Standard_OVERRIDE;
0069
0070 Standard_EXPORT virtual Standard_Boolean IsForcedHilight() const Standard_OVERRIDE;
0071
0072 DEFINE_STANDARD_RTTIEXT(MeshVS_MeshOwner,SelectMgr_EntityOwner)
0073
0074 protected:
0075
0076 Handle(TColStd_HPackedMapOfInteger) mySelectedNodes;
0077 Handle(TColStd_HPackedMapOfInteger) mySelectedElems;
0078
0079 private:
0080
0081 Handle(MeshVS_DataSource) myDataSource;
0082 Handle(TColStd_HPackedMapOfInteger) myDetectedNodes;
0083 Handle(TColStd_HPackedMapOfInteger) myDetectedElems;
0084 Standard_Integer myLastID;
0085
0086 };
0087
0088 #endif