-// 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
}
-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 {
if (AField) {
cout << "\tstruct id " << ACGroup.Struct->Id << "\n";
- cout << "\tgroup labels " << ACGroup.LabelBegin << ", "
- << ACGroup.LabelEnd << "\n";
+ cout << "\tgroup\n";
cout << flush;
}
}
-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) {
return MyTraceLevel;
}
+
+const Handle(Aspect_DisplayConnection)& Graphic3d_GraphicDriver::GetDisplayConnection() const
+{
+ return myDisplayConnection;
+}