App::PropertyFloatConstraint Class Reference

Constraint float properties This property fullfill the need of constraint float. More...

#include <PropertyStandard.h>

Inheritance diagram for App::PropertyFloatConstraint:
App::PropertyFloat App::Property Base::Persistence Base::BaseClass App::PropertyAngle

List of all members.

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 ConstraintsgetConstraints (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

Detailed Description

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.


Constructor & Destructor Documentation

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.


Member Function Documentation

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]

Member Data Documentation

Definition at line 394 of file PropertyStandard.h.

Referenced by getConstraints(), setConstraints(), and setPyObject().


The documentation for this class was generated from the following files:

Generated on Wed Nov 23 19:01:44 2011 for FreeCAD by  doxygen 1.6.1