#include <ModelAPI_AttributeIntArray.h>
#include <ModelAPI_AttributeSelection.h>
#include <ModelAPI_AttributeString.h>
+#include <ModelAPI_AttributeBoolean.h>
#include <ModelAPI_ResultConstruction.h>
#include <ModelAPI_Session.h>
#include <ModelAPI_Validator.h>
data()->addAttribute(CREATION_METHOD_BY_OTHER_PLANE_OPTION(), ModelAPI_AttributeString::typeId());
data()->addAttribute(PLANE(), ModelAPI_AttributeSelection::typeId());
data()->addAttribute(DISTANCE(), ModelAPI_AttributeDouble::typeId());
+ data()->addAttribute(DISTANCE_REVERSE(), ModelAPI_AttributeBoolean::typeId());
data()->addAttribute(COINCIDENT_POINT(), ModelAPI_AttributeSelection::typeId());
data()->addAttribute(AXIS(), ModelAPI_AttributeSelection::typeId());
data()->addAttribute(ANGLE(), ModelAPI_AttributeDouble::typeId());
return ATTR_ID;
}
+ /// Attribute name for reverse in distance from other case
+ inline static const std::string& DISTANCE_REVERSE()
+ {
+ static const std::string ATTR_DISTANCE_REVERSE_ID("distance_reverse");
+ return ATTR_DISTANCE_REVERSE_ID;
+ }
+
/// Attribute name for coincident point.
inline static const std::string& COINCIDENT_POINT()
{
label="Distance"
tooltip="Distance from selected face to plane."
icon="icons/Construction/distance_value.png"
- default="0"/>
+ default="10">
+ <validator id="GeomValidators_Positive"/>
+ </doublevalue>
+ <boolvalue id="distance_reverse"
+ label="Reverse"
+ tooltip="Distance from plane."
+ default="false"/>
</box>
<box id="by_coincident_to_point"
title="By coincident to point"