20 #ifndef SketcherPrs_DimensionStyleListener_H
21 #define SketcherPrs_DimensionStyleListener_H
25 #include <ModelAPI_AttributeDouble.h>
26 #include <PrsDim_Dimension.hxx>
28 #include "SketcherPrs_Tools.h"
30 #include <Standard.hxx>
45 DimensionValue(
double theDoubleValue,
bool theHasParameters,
const std::string& theTextValue);
48 void init(
const AttributeDoublePtr& theAttributeValue);
77 const bool theHasParameters,
78 const std::string& theTextValue,
79 const double theDoubleValue,
bool theIsSuppress);
Definition: SketcherPrs_DimensionStyle.h:43
void init(const AttributeDoublePtr &theAttributeValue)
Fills internal fields by the given attribute.
Definition: SketcherPrs_DimensionStyle.cpp:50
bool myHasParameters
true if the attribute value has used parameters
Definition: SketcherPrs_DimensionStyle.h:52
double myDoubleValue
the angle value to be shown as custom value of presentation
Definition: SketcherPrs_DimensionStyle.h:51
std::string myTextValue
the angle value depending on angle type
Definition: SketcherPrs_DimensionStyle.h:53
Definition: SketcherPrs_DimensionStyle.h:41
SketcherPrs_DimensionStyle()
Constructor.
Definition: SketcherPrs_DimensionStyle.cpp:58
void updateDimensions(PrsDim_Dimension *theDimension, const DimensionValue &theDimensionValue, bool theIsSuppress)
Visualizes the dimension text or dimension value depending on the has parameters state.
Definition: SketcherPrs_DimensionStyle.cpp:66
~SketcherPrs_DimensionStyle()
Destructor.
Definition: SketcherPrs_DimensionStyle.cpp:62