0027860: Visualization - clean up Transformation Persistence API
[occt.git] / src / Graphic3d / Graphic3d_CStructure.cxx
index 6cd5009..ecc6e8d 100644 (file)
 #include "Graphic3d_Structure.pxx"
 #include <Graphic3d_StructureManager.hxx>
 #include <Graphic3d_TransModeFlags.hxx>
+#include <Graphic3d_GraphicDriver.hxx>
 
 
+IMPLEMENT_STANDARD_RTTIEXT(Graphic3d_CStructure,Standard_Transient)
+
 //=============================================================================
 //function : Graphic3d_CStructure
 //purpose  :
 //=============================================================================
 Graphic3d_CStructure::Graphic3d_CStructure (const Handle(Graphic3d_StructureManager)& theManager)
-: Id               (theManager->NewIdentification()),
-  myZLayer         (Graphic3d_ZLayerId_Default),
+: myZLayer         (Graphic3d_ZLayerId_Default),
   Priority         (Structure_MAX_PRIORITY / 2),
   PreviousPriority (Structure_MAX_PRIORITY / 2),
   ContainsFacet    (0),
@@ -39,13 +41,5 @@ Graphic3d_CStructure::Graphic3d_CStructure (const Handle(Graphic3d_StructureMana
   Is2dText         (Standard_False),
   myGraphicDriver  (theManager->GraphicDriver())
 {
-  ContextLine.IsDef     = 1,
-  ContextFillArea.IsDef = 1,
-  ContextMarker.IsDef   = 1,
-  ContextText.IsDef     = 1;
-
-  ContextLine.IsSet     = 0,
-  ContextFillArea.IsSet = 0,
-  ContextMarker.IsSet   = 0,
-  ContextText.IsSet     = 0;
+  Id = myGraphicDriver->NewIdentification();
 }