0024070: OpenGL capped object-level clipping planes
[occt.git] / src / Graphic3d / Graphic3d_GraphicDriver.cxx
index 11291bf..942dde5 100755 (executable)
@@ -1,9 +1,25 @@
-// File   Graphic3d_GraphicDriver.cxx
-// Created  Mardi 28 janvier 1997
-// Author CAL
+// Created on: 1997-01-28
+// Created by: CAL
+// Copyright (c) 1997-1999 Matra Datavision
+// Copyright (c) 1999-2012 OPEN CASCADE SAS
+//
+// The content of this file is subject to the Open CASCADE Technology Public
+// License Version 6.5 (the "License"). You may not use the content of this file
+// except in compliance with the License. Please obtain a copy of the License
+// at http://www.opencascade.org and read it completely before using this file.
+//
+// The Initial Developer of the Original Code is Open CASCADE S.A.S., having its
+// main offices at: 1, place des Freres Montgolfier, 78280 Guyancourt, France.
+//
+// The Original Code and all software distributed under the License is
+// distributed on an "AS IS" basis, without warranty of any kind, and the
+// Initial Developer hereby disclaims all such warranties, including without
+// limitation, any warranties of merchantability, fitness for a particular
+// purpose or non-infringement. Please see the License for the specific terms
+// and conditions governing the rights and limitations under the License.
+
 //              11/97 ; CAL : retrait de la dependance avec math
 
-//-Copyright  MatraDatavision 1997
 
 //-Version  
 
@@ -50,16 +66,6 @@ Standard_Integer Graphic3d_GraphicDriver::Light (const Graphic3d_CLight& ACLight
 
 }
 
-Standard_Integer Graphic3d_GraphicDriver::Plane (const Graphic3d_CPlane& ACPlane, const Standard_Boolean Update) {
-
-  static Standard_Integer NbPlanes = 1;
-  Standard_Boolean Result;
-
-  Result = Update ? ACPlane.PlaneId : NbPlanes++;
-  return Result;
-
-}
-
 //-Internal methods, in order
 
 void Graphic3d_GraphicDriver::PrintBoolean (const Standard_CString AComment, const Standard_Boolean AValue) const {
@@ -74,8 +80,7 @@ void Graphic3d_GraphicDriver::PrintCGroup (const Graphic3d_CGroup& ACGroup, cons
 
   if (AField) {
     cout << "\tstruct id " << ACGroup.Struct->Id << "\n";
-    cout << "\tgroup labels " << ACGroup.LabelBegin << ", "
-      << ACGroup.LabelEnd << "\n";
+    cout << "\tgroup\n";
     cout << flush;
   }
 
@@ -120,16 +125,6 @@ void Graphic3d_GraphicDriver::PrintCPick (const Graphic3d_CPick& ACPick, const S
 
 }
 
-void Graphic3d_GraphicDriver::PrintCPlane (const Graphic3d_CPlane& ACPlane, const Standard_Integer AField) const {
-
-  if (AField) {
-    cout << "\tws id " << ACPlane.WsId << ", "
-      << "view id " << ACPlane.ViewId << "\n";
-    cout << flush;
-  }
-
-}
-
 void Graphic3d_GraphicDriver::PrintCStructure (const Graphic3d_CStructure& ACStructure, const Standard_Integer AField) const {
 
   if (AField) {
@@ -222,3 +217,8 @@ Standard_Integer Graphic3d_GraphicDriver::Trace () const {
   return MyTraceLevel;
 
 }
+
+const Handle(Aspect_DisplayConnection)& Graphic3d_GraphicDriver::GetDisplayConnection() const
+{
+  return myDisplayConnection;
+}