--- File: AIS_Shape.cdl
--- Created: Fri Dec 20 15:18:05 1996
--- Author: Robert COUBLANC
--- <rob@robox.paris1.matra-dtv.fr>
+-- Created on: 1996-12-20
+-- Created by: Robert COUBLANC
+-- Copyright (c) 1996-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.
+
-- GG : GER61351 17/11/1999 Change SetColor() with a compatible Quantity_Color instead
-- the restricted NameOfColor.
-- Redefines the Color(),Material(),Transparency() methods
-- GG : BUC60536 The compute methods must be defined "protected"
-- and no more "private"
----Copyright: Matra Datavision 1996
class Shape from AIS inherits InteractiveObject from AIS
Box from Bnd,
ShapeEnum from TopAbs,
Shape from TopoDS,
- GraphicObject from Graphic2d,
NameOfMaterial from Graphic3d ,
---NameOfPhysicalMaterial from Graphic3d ,
MaterialAspect from Graphic3d,
Presentation from Prs3d,
Projector from Prs3d,
- PresentationManager2d from PrsMgr,
PresentationManager3d from PrsMgr,
Selection from SelectMgr,
+ Drawer from AIS,
KindOfInteractive from AIS,
Transformation from Geom,
- Drawer from Prs3d
+ Drawer from Prs3d,
+ TypeOfHLR from Prs3d
is
Create(shap: Shape from TopoDS)
- returns mutable Shape from AIS;
+ returns Shape from AIS;
---Purpose: Initializes construction of the shape shap from wires,
-- edges and vertices.
-- already set, false is returned.
-
+ SetTypeOfHLR(me: mutable; theTypeOfHLR: TypeOfHLR from Prs3d);
+ ---Purpose: Sets the type of HLR algorithm used by the shape
+ ---C++: inline
+
+ TypeOfHLR(me) returns TypeOfHLR from Prs3d;
+ ---Purpose: Gets the type of HLR algorithm
+ ---C++: inline
---Category: Redefine Compute Methods...
Compute(me : mutable;
aPresentationManager : PresentationManager3d from PrsMgr;
- aPresentation : mutable Presentation from Prs3d;
+ aPresentation : Presentation from Prs3d;
aMode : Integer from Standard = 0)
is redefined virtual protected;
Compute(me : mutable;
- aPresentationManager : PresentationManager2d from PrsMgr;
- aPresentation : mutable GraphicObject from Graphic2d;aMode:Integer from Standard = 0)
- is redefined virtual protected;
-
- Compute(me : mutable;
aProjector : Projector from Prs3d;
- aPresentation : mutable Presentation from Prs3d)
+ aPresentation : Presentation from Prs3d)
is redefined virtual protected;
Compute(me : mutable;
aProjector : Projector from Prs3d;
aTrsf : Transformation from Geom;
- aPresentation : mutable Presentation from Prs3d)
+ aPresentation : Presentation from Prs3d)
is redefined virtual protected;
ComputeSelection(me : mutable;
- aSelection : mutable Selection from SelectMgr;
+ aSelection : Selection from SelectMgr;
aMode : Integer from Standard)
is redefined virtual protected;
-- - mode 7 - Compsolid
-- - mode 8 - Compound
- LoadRecomputable(me:mutable;TheMode : Integer from Standard) is static private;
+ LoadRecomputable(me:mutable;TheMode : Integer from Standard) is static protected;
Compute(me : mutable;
aProjector : Projector from Prs3d;
- aPresentation : mutable Presentation from Prs3d;
+ aPresentation : Presentation from Prs3d;
ashape : Shape from TopoDS) is static private;
- GetDeflection(myclass; aShape : Shape from TopoDS;
- aDrawer : Drawer from Prs3d)
- returns Real from Standard;
-
- DisplayBox(myclass; aPrs : Presentation from Prs3d;
- aBox : Box from Bnd;
- aDrawer : Drawer from Prs3d) is protected;
-
-
+ setColor (me;
+ theDrawer : Drawer from AIS;
+ theColor : Color from Quantity)
+ is protected;
+
+ setWidth (me;
+ theDrawer : Drawer from AIS;
+ theWidth : Real from Standard)
+ is protected;
+
+ setTransparency (me;
+ theDrawer : Drawer from AIS;
+ theValue : Real from Standard)
+ is protected;
+
fields
myshape : Shape from TopoDS is protected;
myBB : Box from Bnd is protected;