Constraint float properties This property fullfill the need of constraint float. More...
#include <PropertyStandard.h>
Classes | |
struct | Constraints |
Constraint methods. More... | |
Public Member Functions | |
virtual const char * | getEditorName (void) const |
Get the class name of the associated property editor item. | |
virtual Base::Type | getTypeId (void) const |
PropertyFloatConstraint (void) | |
Value Constructor Construct with explicite Values. | |
virtual void | setPyObject (PyObject *) |
virtual | ~PropertyFloatConstraint () |
A destructor. | |
const Constraints * | getConstraints (void) const |
get the constraint struct | |
void | setConstraints (const Constraints *sConstrain) |
setting the boundaries This sets the constraint struct. | |
Static Public Member Functions | |
static void * | create (void) |
static Base::Type | getClassTypeId (void) |
static void | init (void) |
Protected Attributes | |
const Constraints * | _ConstStruct |
Constraint float properties This property fullfill the need of constraint float.
It holds basicly a state (float) and a struct of boundaries. If the boundaries is not set it act basicly like a IntegerProperty and do no checking. The constraints struct can be created on the heap or build in.
Definition at line 351 of file PropertyStandard.h.
PropertyFloatConstraint::PropertyFloatConstraint | ( | void | ) |
Value Constructor Construct with explicite Values.
Definition at line 820 of file PropertyStandard.cpp.
PropertyFloatConstraint::~PropertyFloatConstraint | ( | ) | [virtual] |
A destructor.
A more elaborate description of the destructor.
Definition at line 826 of file PropertyStandard.cpp.
void * App::PropertyFloatConstraint::create | ( | void | ) | [static] |
Reimplemented from App::PropertyFloat.
Reimplemented in App::PropertyAngle.
Definition at line 814 of file PropertyStandard.cpp.
Base::Type App::PropertyFloatConstraint::getClassTypeId | ( | void | ) | [static] |
Reimplemented from App::PropertyFloat.
Reimplemented in App::PropertyAngle.
Definition at line 814 of file PropertyStandard.cpp.
Referenced by Gui::PropertyEditor::PropertyFloatConstraintItem::value().
const PropertyFloatConstraint::Constraints * PropertyFloatConstraint::getConstraints | ( | void | ) | const |
get the constraint struct
Definition at line 836 of file PropertyStandard.cpp.
References _ConstStruct.
Referenced by Gui::PropertyEditor::PropertyAngleItem::setEditorData().
virtual const char* App::PropertyFloatConstraint::getEditorName | ( | void | ) | const [inline, virtual] |
Get the class name of the associated property editor item.
Reimplemented from App::PropertyFloat.
Reimplemented in App::PropertyAngle.
Definition at line 388 of file PropertyStandard.h.
Base::Type App::PropertyFloatConstraint::getTypeId | ( | void | ) | const [virtual] |
Reimplemented from App::PropertyFloat.
Reimplemented in App::PropertyAngle.
Definition at line 814 of file PropertyStandard.cpp.
void App::PropertyFloatConstraint::init | ( | void | ) | [static] |
Reimplemented from App::PropertyFloat.
Reimplemented in App::PropertyAngle.
Definition at line 814 of file PropertyStandard.cpp.
void PropertyFloatConstraint::setConstraints | ( | const Constraints * | sConstrain | ) |
setting the boundaries This sets the constraint struct.
It can be dynamcly allocated or set as an static in the class the property blongs to:
const Constraints percent = {0.0,100.0,1.0}
Definition at line 831 of file PropertyStandard.cpp.
References _ConstStruct.
Referenced by App::FeatureTest::FeatureTest(), PartDesign::Fillet::Fillet(), FemGui::ViewProviderFemMesh::ViewProviderFemMesh(), PartGui::ViewProviderPartBase::ViewProviderPartBase(), PartGui::ViewProviderPartExt::ViewProviderPartExt(), and PointsGui::ViewProviderPoints::ViewProviderPoints().
void PropertyFloatConstraint::setPyObject | ( | PyObject * | value | ) | [virtual] |
Reimplemented from App::PropertyFloat.
Definition at line 841 of file PropertyStandard.cpp.
References _ConstStruct, App::PropertyFloat::_dValue, App::Property::aboutToSetValue(), draftlibs::dxfReader::error(), App::Property::hasSetValue(), App::PropertyFloatConstraint::Constraints::LowerBound, and App::PropertyFloatConstraint::Constraints::UpperBound.
const Constraints* App::PropertyFloatConstraint::_ConstStruct [protected] |
Definition at line 394 of file PropertyStandard.h.
Referenced by getConstraints(), setConstraints(), and setPyObject().