Salome HOME
updated copyright message
[modules/shaper.git] / src / SketcherPrs / SketcherPrs_LengthDimension.h
index 620d616883b0d9973ff7a2a551d6f43db5b05a39..088b75df06281d51298c08f9089bb839ce014bbe 100644 (file)
@@ -1,4 +1,4 @@
-// Copyright (C) 2014-2020  CEA/DEN, EDF R&D
+// Copyright (C) 2014-2023  CEA/DEN, EDF R&D
 //
 // This library is free software; you can redistribute it and/or
 // modify it under the terms of the GNU Lesser General Public
@@ -22,7 +22,7 @@
 
 #include <GeomAPI_Ax3.h>
 #include <ModelAPI_Feature.h>
-#include <AIS_LengthDimension.hxx>
+#include <PrsDim_LengthDimension.hxx>
 #include <Standard_DefineHandle.hxx>
 #include <SketchPlugin_Sketch.h>
 
 
 #include <SketcherPrs_DimensionStyle.h>
 
-DEFINE_STANDARD_HANDLE(SketcherPrs_LengthDimension, AIS_LengthDimension)
+DEFINE_STANDARD_HANDLE(SketcherPrs_LengthDimension, PrsDim_LengthDimension)
 
 /**
 * \ingroup GUI
 * A class for representation of linear dimension constraint.
 * It supports SketchPlugin_ConstraintLength and SketchPlugin_ConstraintDistance features.
 */
-class SketcherPrs_LengthDimension : public AIS_LengthDimension
+class SketcherPrs_LengthDimension : public PrsDim_LengthDimension
 {
 public:
   /// Constructor
@@ -51,7 +51,7 @@ public:
   /// Destructor
   Standard_EXPORT ~SketcherPrs_LengthDimension();
 
-  DEFINE_STANDARD_RTTIEXT(SketcherPrs_LengthDimension, AIS_LengthDimension)
+  DEFINE_STANDARD_RTTIEXT(SketcherPrs_LengthDimension, PrsDim_LengthDimension)
 
   /// Returns true if the constraint feature arguments are correcly filled
   /// to build AIS presentation
@@ -81,7 +81,7 @@ protected:
 private:
   static bool readyToDisplay(ModelAPI_Feature* theConstraint,
                              const std::shared_ptr<GeomAPI_Ax3>& thePlane,
-                             gp_Pnt& thePnt1, gp_Pnt& thePnt2);
+                             gp_Pnt2d& thePnt1, gp_Pnt2d& thePnt2);
 
   /// Set the direction for horizontal/vertical constraint
   void setDirection(ModelAPI_Feature* theConstraint,