0027750: Visualization, V3d_View - remove unused functionality ZClipping and ZCueing
[occt.git] / src / OpenGl / OpenGl_View.cxx
index 39037a7..42dec5a 100644 (file)
@@ -40,14 +40,6 @@ IMPLEMENT_STANDARD_RTTIEXT(OpenGl_View,Graphic3d_CView)
 #include <gl2ps.h>
 #endif
 
-/*----------------------------------------------------------------------*/
-
-namespace
-{
-  static const OPENGL_ZCLIP myDefaultZClip = { { Standard_False, 0.F }, { Standard_False, 1.F } };
-  static const OPENGL_FOG   myDefaultFog   = { Standard_False, 0.F, 1.F, OpenGl_Vec4 (0.0f, 0.0f, 0.0f, 1.0f) };
-}
-
 // =======================================================================
 // function : Constructor
 // purpose  :
@@ -62,13 +54,10 @@ OpenGl_View::OpenGl_View (const Handle(Graphic3d_StructureManager)& theMgr,
   myCaps           (theCaps),
   myDeviceLostFlag (theDeviceLostFlag),
   myWasRedrawnGL   (Standard_False),
-  myAntiAliasing   (Standard_False),
   myCulling        (Standard_True),
   myShadingModel   (Graphic3d_TOSM_FACET),
   myBackfacing     (Graphic3d_TOBM_AUTOMATIC),
   myBgColor        (Quantity_NOC_BLACK),
-  myFog            (myDefaultFog),
-  myZClip          (myDefaultZClip),
   myCamera         (new Graphic3d_Camera()),
   myUseGLLight     (Standard_True),
   myToShowTrihedron      (false),
@@ -96,14 +85,6 @@ OpenGl_View::OpenGl_View (const Handle(Graphic3d_StructureManager)& theMgr,
 {
   myWorkspace = new OpenGl_Workspace (this, NULL);
 
-  // AA mode
-  const char* anAaEnv = ::getenv ("CALL_OPENGL_ANTIALIASING_MODE");
-  if (anAaEnv != NULL)
-  {
-    int v;
-    if (sscanf (anAaEnv, "%d", &v) > 0) myAntiAliasing = v;
-  }
-
   OpenGl_Light       aLight;
   aLight.Type        = Graphic3d_TOLS_AMBIENT;
   aLight.IsHeadlight = Standard_False;
@@ -410,7 +391,6 @@ Aspect_Background OpenGl_View::Background() const
 void OpenGl_View::SetBackground (const Aspect_Background& theBackground)
 {
   myBgColor.SetRGB (theBackground.Color());
-  myFog.Color = myBgColor;
 }
 
 // =======================================================================