]> SALOME platform Git repositories - modules/shaper.git/blobdiff - src/SketcherPrs/SketcherPrs_Angle.h
Salome HOME
Issue #1834: Fix length of lines
[modules/shaper.git] / src / SketcherPrs / SketcherPrs_Angle.h
index 41265a5291c7108e0ec86868f548887bbb76635e..de294a98c1676183a7ee2b145774f8701028a1d0 100644 (file)
@@ -14,7 +14,7 @@
 #include <AIS_AngleDimension.hxx>
 #include <Standard_DefineHandle.hxx>
 
-class SketcherPrs_DimensionStyleListener;
+#include <SketcherPrs_DimensionStyleListener.h>
 
 DEFINE_STANDARD_HANDLE(SketcherPrs_Angle, AIS_AngleDimension)
 
@@ -36,7 +36,8 @@ public:
 
   DEFINE_STANDARD_RTTI(SketcherPrs_Angle)
 
-  /// Returns true if the constraint feature arguments are correcly filled to build AIS presentation
+  /// Returns true if the constraint feature arguments are correcly filled 
+  /// to build AIS presentation
   /// \param theConstraint a constraint feature
   /// \param thePlane a coordinate plane of current sketch
   /// \return boolean result value
@@ -44,7 +45,8 @@ public:
                                const std::shared_ptr<GeomAPI_Ax3>& thePlane);
 protected:
   /// Redefinition of virtual function
-  Standard_EXPORT virtual void Compute(const Handle(PrsMgr_PresentationManager3d)& thePresentationManager,
+  Standard_EXPORT virtual void Compute(
+    const Handle(PrsMgr_PresentationManager3d)& thePresentationManager,
     const Handle(Prs3d_Presentation)& thePresentation, const Standard_Integer theMode = 0);
 
   /// Redefinition of virtual function
@@ -84,9 +86,8 @@ private:
   gp_Pnt mySecondPoint; ///< the dimension second point for measured geometry
   gp_Pnt myCenterPoint; ///< the dimension center point for measured geometry
   gp_Pnt myFlyOutPoint;  ///< the dimension fly out point for measured geometry
-  double myAngle; ///< the angle value to be shown as custom value of presentation
-  bool myHasParameters; ///< true if the atrribute value has used parameters
-  std::string myValue; ///< the angle value depending on angle type
+
+  SketcherPrs_DimensionStyleListener::DimensionValue myValue; /// the structure filled by constraint
 };