mirror of
https://github.com/Open-Cascade-SAS/OCCT.git
synced 2026-05-13 03:30:56 +08:00
95 lines
3.4 KiB
Plaintext
Executable File
95 lines
3.4 KiB
Plaintext
Executable File
-- Created on: 2003-10-10
|
|
-- Created by: Alexander SOLOVYOV
|
|
-- Copyright (c) 2003-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 MeshEntityOwner from MeshVS inherits EntityOwner from SelectMgr
|
|
|
|
---Purpose: The custom owner. This class provides methods to store owner information:
|
|
-- 1) An address of element or node data structure
|
|
-- 2) Type of node or element owner assigned
|
|
-- 3) ID of node or element owner assigned
|
|
|
|
uses
|
|
SOPtr from SelectMgr,
|
|
|
|
Integer from Standard,
|
|
Address from Standard,
|
|
|
|
Array1OfReal from TColStd,
|
|
|
|
EntityType from MeshVS,
|
|
|
|
PresentationManager3d from PrsMgr,
|
|
PresentationManager from PrsMgr,
|
|
|
|
NameOfColor from Quantity
|
|
|
|
is
|
|
|
|
Create ( SelObj : SOPtr from SelectMgr;
|
|
ID : Integer;
|
|
MeshEntity : Address;
|
|
Type : EntityType from MeshVS;
|
|
Priority : Integer = 0;
|
|
IsGroup : Boolean = Standard_False ) returns mutable MeshEntityOwner from MeshVS;
|
|
|
|
Owner ( me ) returns Address;
|
|
---Purpose: Returns an address of element or node data structure
|
|
|
|
Type ( me ) returns EntityType;
|
|
---Purpose: Returns type of element or node data structure
|
|
|
|
ID ( me ) returns Integer;
|
|
---Purpose: Returns ID of element or node data structure
|
|
|
|
IsGroup ( me ) returns Boolean;
|
|
---Purpose: Returns true if owner represents group of nodes or elements
|
|
|
|
IsHilighted ( me; PM : PresentationManager from PrsMgr;
|
|
Mode : Integer = 0 ) returns Boolean is redefined;
|
|
---Purpose: Returns true if owner is hilighted
|
|
|
|
Hilight ( me : mutable ) is redefined;
|
|
---Purpose: Hilights owner
|
|
|
|
Hilight ( me : mutable; PM : PresentationManager from PrsMgr;
|
|
Mode : Integer = 0 ) is redefined;
|
|
---Purpose: Hilights owner
|
|
|
|
HilightWithColor ( me : mutable; PM : PresentationManager3d from PrsMgr;
|
|
theColor : NameOfColor from Quantity;
|
|
Mode : Integer = 0 ) is redefined;
|
|
---Purpose: Hilights owner with the certain color
|
|
|
|
Unhilight ( me : mutable; PM : PresentationManager from PrsMgr;
|
|
Mode : Integer = 0 ) is redefined;
|
|
---Purpose: Strip hilight of owner
|
|
|
|
Clear ( me : mutable; PM : PresentationManager from PrsMgr;
|
|
Mode : Integer = 0 ) is redefined;
|
|
|
|
fields
|
|
myAddr : Address;
|
|
myType : EntityType from MeshVS;
|
|
myID : Integer;
|
|
myIsGroup : Boolean;
|
|
|
|
end MeshEntityOwner;
|