mirror of
https://github.com/Open-Cascade-SAS/OCCT.git
synced 2026-05-19 10:03:24 +08:00
License statement text corrected; compiler warnings caused by Bison 2.41 disabled for MSVC; a few other compiler warnings on 54-bit Windows eliminated by appropriate type cast Wrong license statements corrected in several files. Copyright and license statements added in XSD and GLSL files. Copyright year updated in some files. Obsolete documentation files removed from DrawResources.
159 lines
6.4 KiB
Plaintext
159 lines
6.4 KiB
Plaintext
-- Created on: 1995-03-08
|
|
-- Created by: Mister rmi
|
|
-- Copyright (c) 1995-1999 Matra Datavision
|
|
-- Copyright (c) 1999-2014 OPEN CASCADE SAS
|
|
--
|
|
-- This file is part of Open CASCADE Technology software library.
|
|
--
|
|
-- This library is free software; you can redistribute it and/or modify it under
|
|
-- the terms of the GNU Lesser General Public License version 2.1 as published
|
|
-- by the Free Software Foundation, with special exception defined in the file
|
|
-- OCCT_LGPL_EXCEPTION.txt. Consult the file LICENSE_LGPL_21.txt included in OCCT
|
|
-- distribution for complete text of the license and disclaimer of any warranty.
|
|
--
|
|
-- Alternatively, this file may be used under the terms of Open CASCADE
|
|
-- commercial license or contractual agreement.
|
|
|
|
class BRepOwner from StdSelect inherits EntityOwner from SelectMgr
|
|
|
|
---Purpose: Defines Specific Owners for Sensitive Primitives
|
|
-- (Sensitive Segments,Circles...).
|
|
-- Used in Dynamic Selection Mechanism.
|
|
-- A BRepOwner has an Owner (the shape it represents)
|
|
-- and Users (One or More Transient entities).
|
|
|
|
uses
|
|
Location from TopLoc,
|
|
Shape from TopoDS,
|
|
SelectableObject from SelectMgr,
|
|
EntityOwner from SelectMgr,
|
|
Presentation from Prs3d,
|
|
PresentationManager from PrsMgr,
|
|
PresentationManager3d from PrsMgr,
|
|
NameOfColor from Quantity,
|
|
Drawer from Prs3d,
|
|
Shape from StdSelect
|
|
is
|
|
|
|
|
|
Create(aPriority:Integer from Standard)
|
|
returns mutable BRepOwner from StdSelect;
|
|
---Purpose: Constructs an owner specification framework defined
|
|
-- by the priority aPriority.
|
|
Create (aShape : Shape from TopoDS;
|
|
aPriority : Integer = 0;
|
|
ComesFromDecomposition:Boolean from Standard = Standard_False)
|
|
returns mutable BRepOwner;
|
|
---Purpose: Constructs an owner specification framework defined
|
|
-- by the shape aShape and the priority aPriority.
|
|
-- aShape and aPriority are stored in this framework. If
|
|
-- more than one owner are detected during dynamic
|
|
-- selection, the one with the highest priority is the one stored.
|
|
|
|
Create (aShape : Shape from TopoDS;
|
|
theOrigin : SelectableObject from SelectMgr;
|
|
aPriority : Integer = 0;
|
|
FromDecomposition:Boolean from Standard = Standard_False)
|
|
returns mutable BRepOwner;
|
|
---Purpose: Constructs an owner specification framework defined
|
|
-- by the shape aShape, the selectable object theOrigin
|
|
-- and the priority aPriority.
|
|
-- aShape, theOrigin and aPriority are stored in this
|
|
-- framework. If more than one owner are detected
|
|
-- during dynamic selection, the one with the highest
|
|
-- priority is the one stored.
|
|
|
|
|
|
HasShape(me) returns Boolean from Standard;
|
|
---C++: inline
|
|
---Purpose: returns False if no shape was set
|
|
--
|
|
|
|
Set(me : mutable;
|
|
aShape : Shape from TopoDS;
|
|
FromDecomposition:Boolean from Standard=Standard_False);
|
|
---Purpose: <FromDecomposition> indicates whether <aShape>
|
|
-- comes from decomposition of a bigger shape.
|
|
|
|
ComesFromDecomposition(me) returns Boolean from Standard;
|
|
---C++: inline
|
|
|
|
Shape(me) returns Shape from TopoDS ;
|
|
---C++: inline
|
|
---C++: return const&
|
|
|
|
|
|
---Category: hilight of detected shapes...
|
|
|
|
HasHilightMode(me) returns Boolean from Standard;
|
|
---Purpose:
|
|
-- Returns true if this framework has a highlight mode defined for it.
|
|
---C++: inline
|
|
|
|
SetHilightMode(me:mutable;aMode : Integer from Standard);
|
|
---C++: inline
|
|
---Purpose: Sets the highlight mode for this framework.
|
|
-- This defines the type of display used to highlight the
|
|
-- owner of the shape when it is detected by the selector.
|
|
-- The default type of display is wireframe, defined by the index 0.
|
|
|
|
ResetHilightMode(me:mutable) ;
|
|
---Purpose: Resets the higlight mode for this framework.
|
|
-- This defines the type of display used to highlight the
|
|
-- owner of the shape when it is detected by the selector.
|
|
-- The default type of display is wireframe, defined by the index 0.
|
|
---C++: inline
|
|
HilightMode(me) returns Integer from Standard;
|
|
---Purpose: Returns the highlight mode for this framework.
|
|
-- This defines the type of display used to highlight the
|
|
-- owner of the shape when it is detected by the selector.
|
|
-- The default type of display is wireframe, defined by the index 0.
|
|
---C++: inline
|
|
|
|
IsHilighted (me ;
|
|
aPM : PresentationManager from PrsMgr;
|
|
aMode : Integer from Standard =0)
|
|
returns Boolean from Standard is redefined virtual;
|
|
---Purpose: Returns true if an object with the selection mode
|
|
-- aMode is highlighted in the presentation manager aPM.
|
|
Hilight(me:mutable) is redefined virtual;
|
|
|
|
Hilight(me : mutable;
|
|
aPM : PresentationManager from PrsMgr;
|
|
aMode : Integer from Standard =0) is redefined virtual;
|
|
--- Purpose: Returns the selection mode aMode defining the type
|
|
-- of shape highlighted in the presentation manager aPM.
|
|
HilightWithColor (me : mutable;
|
|
aPM : PresentationManager3d from PrsMgr;
|
|
aCol : NameOfColor from Quantity;
|
|
aMode : Integer from Standard =0) is redefined virtual;
|
|
|
|
Unhilight(me : mutable;
|
|
aPM : PresentationManager from PrsMgr;
|
|
aMode : Integer from Standard =0) is redefined virtual;
|
|
---Purpose: Removes highlighting from the type of shape
|
|
-- identified the selection mode aMode in the presentation manager aPM.
|
|
Clear(me: mutable;
|
|
aPM : PresentationManager from PrsMgr;
|
|
aMode : Integer from Standard =0) is redefined virtual;
|
|
---Purpose: Clears the presentation manager object aPM of all
|
|
-- shapes with the selection mode aMode.
|
|
|
|
SetLocation(me:mutable; aLoc : Location from TopLoc) is redefined;
|
|
ResetLocation(me:mutable) is redefined;
|
|
|
|
SetZLayer ( me : mutable;
|
|
thePrsMgr : PresentationManager from PrsMgr;
|
|
theLayerId : Integer from Standard )
|
|
is redefined virtual;
|
|
---Purpose: Set Z layer ID and update all presentations.
|
|
|
|
fields
|
|
myPrsSh : Shape from StdSelect;
|
|
myCurMode : Integer from Standard;
|
|
myFromDecomposition : Boolean from Standard is protected;
|
|
myShape : Shape from TopoDS is protected;
|
|
end BRepOwner;
|
|
|
|
|