Files
OCCT/src/MeshVS/MeshVS_MeshOwner.cdl
bugmaster b311480ed5 0023024: Update headers of OCCT files
Added appropriate copyright and license information in source files
2012-03-21 19:43:04 +04:00

93 lines
3.9 KiB
Plaintext
Executable File

-- Created on: 2007-01-24
-- Created by: Sergey Kochetkov
-- Copyright (c) 2007-2012 OPEN CASCADE SAS
--
-- The content of this file is subject to the Open CASCADE Technology Public
-- License Version 6.5 (the "License"). You may not use the content of this file
-- except in compliance with the License. Please obtain a copy of the License
-- at http://www.opencascade.org and read it completely before using this file.
--
-- The Initial Developer of the Original Code is Open CASCADE S.A.S., having its
-- main offices at: 1, place des Freres Montgolfier, 78280 Guyancourt, France.
--
-- The Original Code and all software distributed under the License is
-- distributed on an "AS IS" basis, without warranty of any kind, and the
-- Initial Developer hereby disclaims all such warranties, including without
-- limitation, any warranties of merchantability, fitness for a particular
-- purpose or non-infringement. Please see the License for the specific terms
-- and conditions governing the rights and limitations under the License.
class MeshOwner from MeshVS inherits EntityOwner from SelectMgr
---Purpose: 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
uses
SOPtr from SelectMgr,
Integer from Standard,
EntityType from MeshVS,
HPackedMapOfInteger from TColStd,
PresentationManager3d from PrsMgr,
PresentationManager from PrsMgr,
NameOfColor from Quantity,
DataSource from MeshVS
is
Create ( theSelObj : SOPtr from SelectMgr;
theDS : DataSource from MeshVS;
thePriority : Integer = 0 ) returns mutable MeshOwner from MeshVS;
GetDataSource( me ) returns DataSource from MeshVS;
---C++: return const &
GetSelectedNodes( me ) returns HPackedMapOfInteger from TColStd;
---C++: return const &
---Purpose: Returns ids of selected mesh nodes
GetSelectedElements( me ) returns HPackedMapOfInteger from TColStd;
---C++: return const &
---Purpose: Returns ids of selected mesh elements
AddSelectedEntities( me : mutable; Nodes : HPackedMapOfInteger from TColStd;
Elems : HPackedMapOfInteger from TColStd ) is virtual;
---Purpose: Saves ids of selected mesh entities
ClearSelectedEntities( me : mutable ) is virtual;
---Purpose: Clears ids of selected mesh entities
GetDetectedNodes( me ) returns HPackedMapOfInteger from TColStd;
---C++: return const &
---Purpose: Returns ids of hilighted mesh nodes
GetDetectedElements( me ) returns HPackedMapOfInteger from TColStd;
---C++: return const &
---Purpose: Returns ids of hilighted mesh elements
SetDetectedEntities( me : mutable; Nodes : HPackedMapOfInteger from TColStd;
Elems : HPackedMapOfInteger from TColStd );
---Purpose: Saves ids of hilighted mesh entities
HilightWithColor ( me : mutable; PM : PresentationManager3d from PrsMgr;
theColor : NameOfColor from Quantity;
Mode : Integer = 0 ) is redefined;
Unhilight( me : mutable; PM : PresentationManager from PrsMgr;
Mode : Integer from Standard = 0 ) is redefined;
IsForcedHilight ( me ) returns Boolean from Standard is redefined;
fields
myDataSource : DataSource from MeshVS;
mySelectedNodes : HPackedMapOfInteger from TColStd is protected;
mySelectedElems : HPackedMapOfInteger from TColStd is protected;
myDetectedNodes : HPackedMapOfInteger from TColStd;
myDetectedElems : HPackedMapOfInteger from TColStd;
myLastID : Integer from Standard;
end MeshOwner;