Gui::ViewProviderMeasureDistance Class Reference

#include <ViewProviderMeasureDistance.h>

Inheritance diagram for Gui::ViewProviderMeasureDistance:
Gui::ViewProviderDocumentObject Gui::ViewProvider App::PropertyContainer Base::Persistence Base::BaseClass

List of all members.

Public Member Functions

void attach (App::DocumentObject *)
std::vector< std::string > getDisplayModes (void) const
 Return a list of all possible modes.
virtual Base::Type getTypeId (void) const
void setDisplayMode (const char *ModeName)
 set the display mode
void updateData (const App::Property *)
 Gets called if some of the property hade bin changed.
 ViewProviderMeasureDistance (void)
 Constructor.
virtual ~ViewProviderMeasureDistance ()

Static Public Member Functions

static void * create (void)
static Base::Type getClassTypeId (void)
static void init (void)
static void measureDistanceCallback (void *ud, SoEventCallback *n)

Public Attributes

App::PropertyFloat DistFactor
App::PropertyInteger FontSize
App::PropertyColor LineColor
App::PropertyBool Mirror
App::PropertyColor TextColor

Protected Member Functions

virtual const App::PropertyDatagetPropertyData (void) const
void onChanged (const App::Property *prop)
 Gets called by the container whenever a property has been changed.

Static Protected Member Functions

static const App::PropertyDatagetPropertyDataPtr (void)

Detailed Description

Definition at line 75 of file ViewProviderMeasureDistance.h.


Constructor & Destructor Documentation

ViewProviderMeasureDistance::ViewProviderMeasureDistance ( void   ) 

Constructor.

Definition at line 59 of file ViewProviderMeasureDistance.cpp.

References ADD_PROPERTY, and SketcherExample::f.

ViewProviderMeasureDistance::~ViewProviderMeasureDistance (  )  [virtual]

Definition at line 108 of file ViewProviderMeasureDistance.cpp.


Member Function Documentation

void ViewProviderMeasureDistance::attach ( App::DocumentObject pcObject  )  [virtual]
void * Gui::ViewProviderMeasureDistance::create ( void   )  [static]

Reimplemented from Gui::ViewProviderDocumentObject.

Definition at line 56 of file ViewProviderMeasureDistance.cpp.

Base::Type Gui::ViewProviderMeasureDistance::getClassTypeId ( void   )  [static]

Reimplemented from Gui::ViewProviderDocumentObject.

Definition at line 56 of file ViewProviderMeasureDistance.cpp.

Referenced by updateData().

std::vector< std::string > ViewProviderMeasureDistance::getDisplayModes ( void   )  const [virtual]

Return a list of all possible modes.

Reimplemented from Gui::ViewProviderDocumentObject.

Definition at line 140 of file ViewProviderMeasureDistance.cpp.

const App::PropertyData & Gui::ViewProviderMeasureDistance::getPropertyData ( void   )  const [protected, virtual]

Reimplemented from Gui::ViewProviderDocumentObject.

Definition at line 56 of file ViewProviderMeasureDistance.cpp.

const App::PropertyData * Gui::ViewProviderMeasureDistance::getPropertyDataPtr ( void   )  [static, protected]

Reimplemented from Gui::ViewProviderDocumentObject.

Definition at line 56 of file ViewProviderMeasureDistance.cpp.

Base::Type Gui::ViewProviderMeasureDistance::getTypeId ( void   )  const [virtual]

Reimplemented from Gui::ViewProviderDocumentObject.

Definition at line 56 of file ViewProviderMeasureDistance.cpp.

void Gui::ViewProviderMeasureDistance::init ( void   )  [static]

Reimplemented from Gui::ViewProviderDocumentObject.

Definition at line 56 of file ViewProviderMeasureDistance.cpp.

Referenced by Gui::Application::initTypes().

void ViewProviderMeasureDistance::measureDistanceCallback ( void *  ud,
SoEventCallback *  n 
) [static]
void ViewProviderMeasureDistance::onChanged ( const App::Property prop  )  [protected, virtual]

Gets called by the container whenever a property has been changed.

Reimplemented from Gui::ViewProviderDocumentObject.

Definition at line 119 of file ViewProviderMeasureDistance.cpp.

References App::Color::b, DistFactor, FontSize, App::Color::g, App::PropertyInteger::getValue(), App::PropertyColor::getValue(), LineColor, Mirror, App::Color::r, TextColor, and updateData().

void ViewProviderMeasureDistance::setDisplayMode ( const char *  ModeName  )  [virtual]

set the display mode

If you add new viewing modes in getDisplayModes() then you need to reimplement also seDisplaytMode() to handle these new modes by setting the appropriate display mode.

Reimplemented from Gui::ViewProvider.

Definition at line 148 of file ViewProviderMeasureDistance.cpp.

References Gui::ViewProvider::setDisplayMaskMode().

void ViewProviderMeasureDistance::updateData ( const App::Property  )  [virtual]

Member Data Documentation

Definition at line 88 of file ViewProviderMeasureDistance.h.

Referenced by onChanged(), and updateData().

Definition at line 87 of file ViewProviderMeasureDistance.h.

Referenced by onChanged().

Definition at line 86 of file ViewProviderMeasureDistance.h.

Referenced by onChanged().

Definition at line 89 of file ViewProviderMeasureDistance.h.

Referenced by onChanged(), and updateData().

Definition at line 85 of file ViewProviderMeasureDistance.h.

Referenced by onChanged().


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

Generated on Wed Nov 23 19:02:05 2011 for FreeCAD by  doxygen 1.6.1