TextureEnv from Graphic3d,
TypeOfVisualization from V3d,
TypeOfZclipping from V3d,
- TypeOfProjectionModel from V3d,
TypeOfBackfacingModel from V3d,
StereoDumpOptions from V3d,
Viewer from V3d,
---Level: Public
---Purpose: Updates the lights of the view. The view is redrawn.
+ AutoZFit (me : mutable);
+ ---Level: Public
+ ---Purpose: If automatic z-range fitting is turned on, adjusts Z-min and Z-max
+ -- projection volume planes with call to ZFitAll.
+
+ ZFitAll (me : mutable; theScaleFactor : Real from Standard = 1.0);
+ ---Level: Public
+ ---Purpose: Change Z-min and Z-max planes of projection volume to match the
+ -- displayed objects.
+
--------------------------------------------------------
---Category: Methods to modify the Attributes of the view
--------------------------------------------------------
returns Boolean from Standard;
---Purpose: sets the immediate update mode and returns the previous one.
- SetAutoZFitMode (me : mutable;
- theIsOn : Boolean;
- theScaleFactor : Real from Standard = 1.0);
- ---Level: public
- ---Purpose: Sets the automatic z-fit mode and its parameters.
- -- The auto z-fit has extra parameters which can controlled from application level
- -- to ensure that the size of viewing volume will be sufficiently large to cover
- -- the depth of unmanaged objects, for example, transformation persistent ones.
- -- @param theScaleFactor [in] the scale factor for Z-range.
- -- The range between Z-min, Z-max projection volume planes
- -- evaluated by z fitting method will be scaled using this coefficient.
- -- Program error exception is thrown if negative or zero value
- -- is passed.
-
- AutoZFitMode (me) returns Boolean;
- ---Level: public
- ---Purpose: returns TRUE if automatic z-fit mode is turned on.
-
- AutoZFitScaleFactor (me) returns Real from Standard;
- ---Level: public
- ---Purpose: returns scale factor parameter of automatic z-fit mode.
-
---------------------------------------------------
-- Triedron methods
---------------------------------------------------
-- @param theMargin [in] the margin coefficient for view borders.
-- @param theToUpdate [in] flag to perform view update.
- ZFitAll (me : mutable; theScaleFactor : Real from Standard = 1.0);
- ---Level: Public
- ---Purpose: Change Z-min and Z-max planes of projection volume to match the
- -- displayed objects. The methods ensures that view volume will
- -- be close by depth range to the displayed objects. Fitting assumes that
- -- for orthogonal projection the view volume contains the displayed objects
- -- completely. For zoomed perspective view, the view volume is adjusted such
- -- that it contains the objects or their parts, located in front of the camera.
- -- @param theScaleFactor [in] the scale factor for Z-range.
- -- The range between Z-min, Z-max projection volume planes
- -- evaluated by z fitting method will be scaled using this coefficient.
- -- Program error exception is thrown if negative or zero value is passed.
-
- AutoZFit (me : mutable);
- ---Level: Public
- ---Purpose: If automatic z-range fitting is turned on, adjusts Z-min and Z-max
- -- projection volume planes with call to ZFitAll.
-
DepthFitAll( me : mutable ; Aspect : Coefficient = 0.01;
Margin : Coefficient = 0.01 );
---Level: Public
-- <theStereoOptions> flags are to be used for dumping then left or
-- right eye projections.
- SetProjModel( me : mutable;
- amOdel: TypeOfProjectionModel from V3d = V3d_TPM_SCREEN )
- is static;
- ---Level : Advanced
- ---Purpose : Manages projection model
-
- ProjModel( me )
- returns TypeOfProjectionModel from V3d
- is static;
- ---Level : Advanced
- ---Purpose : Returns the current projection model
-
SetBackFacingModel ( me : mutable;
aModel : TypeOfBackfacingModel from V3d = V3d_TOBM_AUTOMATIC)
is static;
--MyColorScale : ColorScale from V3d;
MyLayerMgr : LayerMgr from V3d;
- MyProjModel : TypeOfProjectionModel from V3d is protected;
-
-- the transformation between XoY and the grid plane
MyTrsf : Array2OfReal from TColStd;
myViewAxis : Vector from Graphic3d;
myGravityReferencePoint : Vertex from Graphic3d;
myCamProjectionShift : Pnt from gp;
- myAutoZFitIsOn : Boolean from Standard;
- myAutoZFitScaleFactor : Real from Standard;
friends