0031458: Visualization - refine classes across Prs3d and StdPrs packages
[occt.git] / src / Graphic3d / Graphic3d_ZLayerSettings.hxx
index 1b161f0..7812bf3 100644 (file)
@@ -15,7 +15,7 @@
 #define _Graphic3d_ZLayerSettings_HeaderFile
 
 #include <gp_XYZ.hxx>
-#include <Geom_Transformation.hxx>
+#include <TopLoc_Datum3D.hxx>
 #include <Graphic3d_LightSet.hxx>
 #include <Graphic3d_PolygonOffset.hxx>
 #include <Precision.hxx>
@@ -63,7 +63,7 @@ struct Graphic3d_ZLayerSettings
   const gp_XYZ& Origin() const { return myOrigin; }
 
   //! Return the transformation to the origin.
-  const Handle(Geom_Transformation)& OriginTransformation() const { return myOriginTrsf; }
+  const Handle(TopLoc_Datum3D)& OriginTransformation() const { return myOriginTrsf; }
 
   //! Set the origin of all objects within the layer.
   void SetOrigin (const gp_XYZ& theOrigin)
@@ -72,8 +72,9 @@ struct Graphic3d_ZLayerSettings
     myOriginTrsf.Nullify();
     if (!theOrigin.IsEqual (gp_XYZ(0.0, 0.0, 0.0), gp::Resolution()))
     {
-      myOriginTrsf = new Geom_Transformation();
-      myOriginTrsf->SetTranslation (theOrigin);
+      gp_Trsf aTrsf;
+      aTrsf.SetTranslation (theOrigin);
+      myOriginTrsf = new TopLoc_Datum3D (aTrsf);
     }
   }
 
@@ -236,7 +237,7 @@ protected:
 
   TCollection_AsciiString     myName;                  //!< user-provided name
   Handle(Graphic3d_LightSet)  myLights;                //!< lights list
-  Handle(Geom_Transformation) myOriginTrsf;            //!< transformation to the origin
+  Handle(TopLoc_Datum3D)      myOriginTrsf;            //!< transformation to the origin
   gp_XYZ                      myOrigin;                //!< the origin of all objects within the layer
   Standard_Real               myCullingDistance;       //!< distance to discard objects
   Standard_Real               myCullingSize;           //!< size to discard objects