NOTHINGCAMERA
end TypeOfPickCamera;
- enumeration TypeOfProjectionModel is
- TPM_SCREEN,TPM_WALKTHROUGH
- end TypeOfProjectionModel;
-
enumeration TypeOfBackfacingModel is
TOBM_AUTOMATIC, TOBM_ALWAYS_DISPLAYED, TOBM_NEVER_DISPLAYED
end TypeOfBackfacingModel;
TextureEnv from Graphic3d,
TypeOfVisualization from V3d,
TypeOfZclipping from V3d,
- TypeOfProjectionModel from V3d,
TypeOfBackfacingModel from V3d,
StereoDumpOptions from V3d,
Viewer from V3d,
-- <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;
//purpose :
//=============================================================================
V3d_View::V3d_View(const Handle(V3d_Viewer)& VM, const V3d_TypeOfView Type ) :
- MyProjModel(V3d_TPM_SCREEN),
MyViewer(VM.operator->()),
MyActiveLights(),
MyViewContext (),
//purpose :
//=============================================================================
V3d_View::V3d_View(const Handle(V3d_Viewer)& theVM,const Handle(V3d_View)& theView) :
- MyProjModel(V3d_TPM_SCREEN),
MyViewer(theVM.operator->()),
MyActiveLights(),
MyViewContext (),
myCamera->SetDirection (gp_Dir (Vx, Vy, Vz).Reversed());
- if (MyProjModel == V3d_TPM_SCREEN)
- {
- SetTwist(aTwistBefore);
- }
+ SetTwist(aTwistBefore);
View()->AutoZFit();