---Purpose: creates a view in the viewer according to its
-- default parameters.
- DefaultOrthographicView(me: mutable) returns mutable OrthographicView from V3d;
-
- DefaultPerspectiveView(me: mutable) returns mutable PerspectiveView from V3d;
-
-------------------------------------------------------
---Category: Methods to modify the status of the viewer
-------------------------------------------------------
-- directional-light V3d_XnegYneg
-- ambient-light
- Init(me: mutable);
-
IsActive(me; aView: View from V3d)
returns Boolean from Standard is private;
MySurfaceDetail: TypeOfSurfaceDetail from V3d ;
MyDefaultAngle: PlaneAngle from Quantity;
MyDefaultTypeOfView: TypeOfView from V3d;
- MyDefaultOrthographicView: OrthographicView from V3d;
- MyDefaultPerspectiveView: PerspectiveView from V3d;
MyCurrentSelectedLight: Light from V3d;
myActiveViewsIterator: ListIteratorOfListOfTransient from TColStd;
myDefinedViewsIterator: ListIteratorOfListOfTransient from TColStd;
SetViewOn(ActiveView());};
}
-Handle(V3d_OrthographicView) V3d_Viewer::DefaultOrthographicView() {
-
- return MyDefaultOrthographicView;
-}
-
-Handle(V3d_PerspectiveView) V3d_Viewer::DefaultPerspectiveView () {
-
- return MyDefaultPerspectiveView;
-}
-
void V3d_Viewer::SetViewOff( ) {
for (InitDefinedViews();MoreDefinedViews();NextDefinedViews()){
SetLightOn (new V3d_DirectionalLight (this, V3d_Zneg, Quantity_NOC_WHITE, Standard_True));
SetLightOn (new V3d_AmbientLight (this));
}
-
-void V3d_Viewer::Init() {
- MyDefaultPerspectiveView = new V3d_PerspectiveView(this);
- MyDefaultOrthographicView = new V3d_OrthographicView(this);
- SetDefaultLights();
-}