#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>
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)
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);
}
}
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