0024723: Not implemented methods in Visual3d and V3d
authorabv <abv@opencascade.com>
Thu, 11 Sep 2014 06:07:43 +0000 (10:07 +0400)
committerbugmaster <bugmaster@opencascade.com>
Thu, 18 Sep 2014 11:13:02 +0000 (15:13 +0400)
Removed unused enum V3d_TypeOfProjectionModel and methods V3d_View::SetProjModel(), V3d_View::ProjModel()

src/V3d/V3d.cdl
src/V3d/V3d_View.cdl
src/V3d/V3d_View.cxx

index 8212178..9cb26f6 100644 (file)
@@ -146,10 +146,6 @@ is
             NOTHINGCAMERA
         end TypeOfPickCamera;
 
             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;
         enumeration TypeOfBackfacingModel is
             TOBM_AUTOMATIC, TOBM_ALWAYS_DISPLAYED, TOBM_NEVER_DISPLAYED
         end TypeOfBackfacingModel;
index 3489ce0..8aecd67 100644 (file)
@@ -96,7 +96,6 @@ uses
         TextureEnv                        from Graphic3d,
         TypeOfVisualization               from V3d,
         TypeOfZclipping                   from V3d,
         TextureEnv                        from Graphic3d,
         TypeOfVisualization               from V3d,
         TypeOfZclipping                   from V3d,
-        TypeOfProjectionModel             from V3d,
         TypeOfBackfacingModel             from V3d,
         StereoDumpOptions                 from V3d,
         Viewer                            from V3d,
         TypeOfBackfacingModel             from V3d,
         StereoDumpOptions                 from V3d,
         Viewer                            from V3d,
@@ -1453,18 +1452,6 @@ is
         --           <theStereoOptions> flags are to be used for dumping then left or
         --           right eye projections.
 
         --           <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;
         SetBackFacingModel ( me     : mutable;
             aModel : TypeOfBackfacingModel from V3d = V3d_TOBM_AUTOMATIC)
             is static;
@@ -1645,8 +1632,6 @@ fields
         --MyColorScale            :       ColorScale from V3d;
         MyLayerMgr              :       LayerMgr from V3d;
 
         --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;
 
         -- the transformation between XoY and the grid plane
         MyTrsf                  :       Array2OfReal from TColStd;
 
index e04dfa8..eea29d8 100644 (file)
@@ -159,7 +159,6 @@ To solve the problem (for lack of a better solution) I make 2 passes.
 //purpose  :
 //=============================================================================
 V3d_View::V3d_View(const Handle(V3d_Viewer)& VM, const V3d_TypeOfView Type ) :
 //purpose  :
 //=============================================================================
 V3d_View::V3d_View(const Handle(V3d_Viewer)& VM, const V3d_TypeOfView Type ) :
-  MyProjModel(V3d_TPM_SCREEN),
   MyViewer(VM.operator->()),
   MyActiveLights(),
   MyViewContext (),
   MyViewer(VM.operator->()),
   MyActiveLights(),
   MyViewContext (),
@@ -264,7 +263,6 @@ V3d_View::V3d_View(const Handle(V3d_Viewer)& VM, const V3d_TypeOfView Type ) :
 //purpose  :
 //=============================================================================
 V3d_View::V3d_View(const Handle(V3d_Viewer)& theVM,const Handle(V3d_View)& theView) :
 //purpose  :
 //=============================================================================
 V3d_View::V3d_View(const Handle(V3d_Viewer)& theVM,const Handle(V3d_View)& theView) :
-  MyProjModel(V3d_TPM_SCREEN),
   MyViewer(theVM.operator->()),
   MyActiveLights(),
   MyViewContext (),
   MyViewer(theVM.operator->()),
   MyActiveLights(),
   MyViewContext (),
@@ -1129,10 +1127,7 @@ void V3d_View::SetProj( const Standard_Real Vx,const Standard_Real Vy, const Sta
 
   myCamera->SetDirection (gp_Dir (Vx, Vy, Vz).Reversed());
 
 
   myCamera->SetDirection (gp_Dir (Vx, Vy, Vz).Reversed());
 
-  if (MyProjModel == V3d_TPM_SCREEN)
-  {
-    SetTwist(aTwistBefore);
-  }
+  SetTwist(aTwistBefore);
 
   View()->AutoZFit();
 
 
   View()->AutoZFit();