]> OCCT Git - occt-copy.git/commitdiff
0024267: Exception in Visual3d_ViewManager::Redraw() when color scale is displayed
authorsan <san@opencascade.com>
Fri, 18 Oct 2013 09:23:25 +0000 (13:23 +0400)
committerazv <artem.zhidkov@opencascade.com>
Thu, 31 Oct 2013 10:25:43 +0000 (14:25 +0400)
Removing V3d_Viewer::Init() and the default views created internally by the viewer.

src/V3d/V3d_Viewer.cdl
src/V3d/V3d_Viewer.cxx
src/V3d/V3d_Viewer_2.cxx

index f6e63512bf2fa11d074491f553ba0d7947affc9d..277f7cc8a06dbfdfcd14454e4f897fd47443e63f 100755 (executable)
@@ -112,10 +112,6 @@ is
         ---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
         -------------------------------------------------------
@@ -631,8 +627,6 @@ is
         --          directional-light V3d_XnegYneg
         --          ambient-light
 
-        Init(me: mutable);
-
         IsActive(me; aView: View from V3d)
         returns Boolean from Standard is private;
 
@@ -700,8 +694,6 @@ fields
         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;
index f3ccb78cf70f04f72a1945ca27d1b4c518cc99d5..f15aa8c5fe88454fc6100b475ac8a45ce71afd3a 100755 (executable)
@@ -125,16 +125,6 @@ void V3d_Viewer::SetViewOn( ) {
     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()){
index 1d281c71dfe0c705cde9f8da709a8271f3109143..2f995028b5ac86d07b7e6dcb830a7f0b33795a54 100755 (executable)
@@ -114,9 +114,3 @@ void V3d_Viewer::SetDefaultLights()
   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();
-}