Length property This is a property for representing lengths. More...
#include <PropertyUnits.h>
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 |
PropertyLength (void) | |
virtual void | setPyObject (PyObject *) |
virtual | ~PropertyLength () |
Static Public Member Functions | |
static void * | create (void) |
static Base::Type | getClassTypeId (void) |
static void | init (void) |
Length property This is a property for representing lengths.
It is basically a float property which must not be negative. On the Gui it has a quantity like m or mm.
Definition at line 64 of file PropertyUnits.h.
App::PropertyLength::PropertyLength | ( | void | ) | [inline] |
Definition at line 68 of file PropertyUnits.h.
virtual App::PropertyLength::~PropertyLength | ( | ) | [inline, virtual] |
Definition at line 69 of file PropertyUnits.h.
void * App::PropertyLength::create | ( | void | ) | [static] |
Reimplemented from App::PropertyFloat.
Definition at line 77 of file PropertyUnits.cpp.
Base::Type App::PropertyLength::getClassTypeId | ( | void | ) | [static] |
Reimplemented from App::PropertyFloat.
Definition at line 77 of file PropertyUnits.cpp.
Referenced by Gui::PropertyEditor::PropertyFloatItem::toString(), and Gui::PropertyEditor::PropertyUnitItem::value().
const char * PropertyLength::getEditorName | ( | void | ) | const [virtual] |
Get the class name of the associated property editor item.
Reimplemented from App::PropertyFloat.
Definition at line 79 of file PropertyUnits.cpp.
Base::Type App::PropertyLength::getTypeId | ( | void | ) | const [virtual] |
Reimplemented from App::PropertyFloat.
Definition at line 77 of file PropertyUnits.cpp.
void App::PropertyLength::init | ( | void | ) | [static] |
Reimplemented from App::PropertyFloat.
Definition at line 77 of file PropertyUnits.cpp.
void PropertyLength::setPyObject | ( | PyObject * | value | ) | [virtual] |
Reimplemented from App::PropertyFloat.
Definition at line 89 of file PropertyUnits.cpp.
References draftlibs::dxfReader::error(), SketcherExample::f, Base::Length, and App::PropertyFloat::setValue().