RobotGui::ViewProviderRobotObject Class Reference

#include <ViewProviderRobotObject.h>

Inheritance diagram for RobotGui::ViewProviderRobotObject:
Gui::ViewProviderGeometryObject Gui::ViewProviderDocumentObject Gui::ViewProvider App::PropertyContainer Base::Persistence Base::BaseClass

List of all members.

Public Member Functions

void attach (App::DocumentObject *pcObject)
 Attaches the document object to this view provider.
std::vector< std::string > getDisplayModes () const
 Return a list of all possible modes.
virtual Base::Type getTypeId (void) const
virtual void onChanged (const App::Property *prop)
 get called by the container whenever a property has been changed
void setAxisTo (float A1, float A2, float A3, float A4, float A5, float A6, const Base::Placement &Tcp)
 for simulation without changing the document:
void setDisplayMode (const char *ModeName)
 set the display mode
void updateData (const App::Property *)
 Gets called if some of the property hade bin changed.
 ViewProviderRobotObject ()
 constructor.
 ~ViewProviderRobotObject ()
 destructor.

Static Public Member Functions

static void * create (void)
static Base::Type getClassTypeId (void)
static void init (void)

Public Attributes

App::PropertyBool Manipulator

Protected Member Functions

void DraggerMotionCallback (SoDragger *dragger)
virtual const App::PropertyDatagetPropertyData (void) const
void resetDragger (void)
void setDragger (void)

Static Protected Member Functions

static const App::PropertyDatagetPropertyDataPtr (void)
static void sDraggerMotionCallback (void *data, SoDragger *dragger)

Protected Attributes

SoVRMLTransform * Axis1Node
SoVRMLTransform * Axis2Node
SoVRMLTransform * Axis3Node
SoVRMLTransform * Axis4Node
SoVRMLTransform * Axis5Node
SoVRMLTransform * Axis6Node
SoJackDragger * pcDragger
SoGroup * pcOffRoot
Gui::SoFCSelectionpcRobotRoot
Gui::SoFCSelectionpcSimpleRoot
SoGroup * pcTcpRoot
SoTransform * pcTcpTransform
Gui::ViewProvidertoolShape

Detailed Description

Definition at line 39 of file ViewProviderRobotObject.h.


Constructor & Destructor Documentation

ViewProviderRobotObject::ViewProviderRobotObject (  ) 

constructor.

Definition at line 58 of file ViewProviderRobotObject.cpp.

References ADD_PROPERTY, and Gui::SoFCSelection::OFF.

ViewProviderRobotObject::~ViewProviderRobotObject (  ) 

destructor.

Definition at line 112 of file ViewProviderRobotObject.cpp.

References pcOffRoot, pcRobotRoot, and pcSimpleRoot.


Member Function Documentation

void ViewProviderRobotObject::attach ( App::DocumentObject pcObject  )  [virtual]
void * RobotGui::ViewProviderRobotObject::create ( void   )  [static]

Reimplemented from Gui::ViewProviderGeometryObject.

Definition at line 56 of file ViewProviderRobotObject.cpp.

void ViewProviderRobotObject::DraggerMotionCallback ( SoDragger *  dragger  )  [protected]
Base::Type RobotGui::ViewProviderRobotObject::getClassTypeId ( void   )  [static]

Reimplemented from Gui::ViewProviderGeometryObject.

Definition at line 56 of file ViewProviderRobotObject.cpp.

Referenced by updateData().

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

Return a list of all possible modes.

Reimplemented from Gui::ViewProviderDocumentObject.

Definition at line 153 of file ViewProviderRobotObject.cpp.

const App::PropertyData & RobotGui::ViewProviderRobotObject::getPropertyData ( void   )  const [protected, virtual]

Reimplemented from Gui::ViewProviderGeometryObject.

Definition at line 56 of file ViewProviderRobotObject.cpp.

const App::PropertyData * RobotGui::ViewProviderRobotObject::getPropertyDataPtr ( void   )  [static, protected]

Reimplemented from Gui::ViewProviderGeometryObject.

Definition at line 56 of file ViewProviderRobotObject.cpp.

Base::Type RobotGui::ViewProviderRobotObject::getTypeId ( void   )  const [virtual]

Reimplemented from Gui::ViewProviderGeometryObject.

Definition at line 56 of file ViewProviderRobotObject.cpp.

void RobotGui::ViewProviderRobotObject::init ( void   )  [static]

Reimplemented from Gui::ViewProviderGeometryObject.

Definition at line 56 of file ViewProviderRobotObject.cpp.

Referenced by initRobotGui().

void ViewProviderRobotObject::onChanged ( const App::Property prop  )  [virtual]

get called by the container whenever a property has been changed

Reimplemented from Gui::ViewProviderGeometryObject.

Definition at line 162 of file ViewProviderRobotObject.cpp.

References App::PropertyBool::getValue(), Manipulator, pcDragger, resetDragger(), and setDragger().

void ViewProviderRobotObject::resetDragger ( void   )  [protected]

Definition at line 104 of file ViewProviderRobotObject.cpp.

References pcDragger, and pcTcpRoot.

Referenced by onChanged().

void ViewProviderRobotObject::sDraggerMotionCallback ( void *  data,
SoDragger *  dragger 
) [static, protected]

Definition at line 374 of file ViewProviderRobotObject.cpp.

References DraggerMotionCallback().

Referenced by setDragger().

void ViewProviderRobotObject::setAxisTo ( float  A1,
float  A2,
float  A3,
float  A4,
float  A5,
float  A6,
const Base::Placement Tcp 
)
void ViewProviderRobotObject::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 142 of file ViewProviderRobotObject.cpp.

References Gui::ViewProvider::setDisplayMaskMode().

void ViewProviderRobotObject::setDragger ( void   )  [protected]
void ViewProviderRobotObject::updateData ( const App::Property  )  [virtual]

Member Data Documentation

SoVRMLTransform* RobotGui::ViewProviderRobotObject::Axis1Node [protected]

Definition at line 83 of file ViewProviderRobotObject.h.

Referenced by setAxisTo(), and updateData().

SoVRMLTransform* RobotGui::ViewProviderRobotObject::Axis2Node [protected]

Definition at line 84 of file ViewProviderRobotObject.h.

Referenced by setAxisTo(), and updateData().

SoVRMLTransform* RobotGui::ViewProviderRobotObject::Axis3Node [protected]

Definition at line 85 of file ViewProviderRobotObject.h.

Referenced by setAxisTo(), and updateData().

SoVRMLTransform* RobotGui::ViewProviderRobotObject::Axis4Node [protected]

Definition at line 86 of file ViewProviderRobotObject.h.

Referenced by setAxisTo(), and updateData().

SoVRMLTransform* RobotGui::ViewProviderRobotObject::Axis5Node [protected]

Definition at line 87 of file ViewProviderRobotObject.h.

Referenced by setAxisTo(), and updateData().

SoVRMLTransform* RobotGui::ViewProviderRobotObject::Axis6Node [protected]

Definition at line 88 of file ViewProviderRobotObject.h.

Referenced by setAxisTo(), and updateData().

Definition at line 50 of file ViewProviderRobotObject.h.

Referenced by onChanged().

Definition at line 77 of file ViewProviderRobotObject.h.

Referenced by onChanged(), resetDragger(), setDragger(), and updateData().

Definition at line 71 of file ViewProviderRobotObject.h.

Referenced by attach(), and ~ViewProviderRobotObject().

Definition at line 69 of file ViewProviderRobotObject.h.

Referenced by attach(), updateData(), and ~ViewProviderRobotObject().

Definition at line 70 of file ViewProviderRobotObject.h.

Referenced by attach(), and ~ViewProviderRobotObject().

Definition at line 73 of file ViewProviderRobotObject.h.

Referenced by attach(), resetDragger(), setDragger(), and updateData().

Definition at line 74 of file ViewProviderRobotObject.h.

Definition at line 80 of file ViewProviderRobotObject.h.

Referenced by setAxisTo(), and updateData().


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

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