#include <ViewProviderRobotObject.h>
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::PropertyData & | getPropertyData (void) const |
void | resetDragger (void) |
void | setDragger (void) |
Static Protected Member Functions | |
static const App::PropertyData * | getPropertyDataPtr (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::SoFCSelection * | pcRobotRoot |
Gui::SoFCSelection * | pcSimpleRoot |
SoGroup * | pcTcpRoot |
SoTransform * | pcTcpTransform |
Gui::ViewProvider * | toolShape |
Definition at line 39 of file ViewProviderRobotObject.h.
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.
void ViewProviderRobotObject::attach | ( | App::DocumentObject * | pcObject | ) | [virtual] |
Attaches the document object to this view provider.
Reimplemented from Gui::ViewProviderGeometryObject.
Definition at line 120 of file ViewProviderRobotObject.cpp.
References Gui::ViewProvider::addDisplayMaskMode(), Gui::SoFCSelection::documentName, App::DocumentObject::getDocument(), App::Document::getName(), App::DocumentObject::getNameInDocument(), Gui::SoFCSelection::objectName, pcOffRoot, pcRobotRoot, pcSimpleRoot, pcTcpRoot, and Gui::SoFCSelection::subElementName.
void * RobotGui::ViewProviderRobotObject::create | ( | void | ) | [static] |
Reimplemented from Gui::ViewProviderGeometryObject.
Definition at line 56 of file ViewProviderRobotObject.cpp.
void ViewProviderRobotObject::DraggerMotionCallback | ( | SoDragger * | dragger | ) | [protected] |
Definition at line 379 of file ViewProviderRobotObject.cpp.
References Base::Placement::getPosition(), App::PropertyPlacement::getValue(), Gui::ViewProviderDocumentObject::pcObject, RobotExample::pos, App::PropertyPlacement::setValue(), and Robot::RobotObject::Tcp.
Referenced by sDraggerMotionCallback().
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 | |||
) |
for simulation without changing the document:
Definition at line 352 of file ViewProviderRobotObject.cpp.
References Axis1Node, Axis2Node, Axis3Node, Axis4Node, Axis5Node, Axis6Node, App::PropertyPlacement::getValue(), Base::Placement::inverse(), M_PI, Gui::ViewProviderDocumentObject::pcObject, Gui::ViewProvider::setTransformation(), Robot::RobotObject::ToolBase, and toolShape.
Referenced by RobotGui::TrajectorySimulate::setTo(), and RobotGui::TaskTrajectory::setTo().
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] |
Definition at line 85 of file ViewProviderRobotObject.cpp.
References Base::Placement::getPosition(), Base::Placement::getRotation(), App::PropertyPlacement::getValue(), pcDragger, Gui::ViewProviderDocumentObject::pcObject, pcTcpRoot, sDraggerMotionCallback(), and Robot::RobotObject::Tcp.
Referenced by onChanged().
void ViewProviderRobotObject::updateData | ( | const App::Property * | ) | [virtual] |
Gets called if some of the property hade bin changed.
Reimplemented from Gui::ViewProviderGeometryObject.
Definition at line 179 of file ViewProviderRobotObject.cpp.
References Robot::RobotObject::Axis1, Axis1Node, Robot::RobotObject::Axis2, Axis2Node, Robot::RobotObject::Axis3, Axis3Node, Robot::RobotObject::Axis4, Axis4Node, Robot::RobotObject::Axis5, Axis5Node, Robot::RobotObject::Axis6, Axis6Node, buffer, DrawingExample::file, draftlibs::dxfReader::filename, App::VRMLObject::getClassTypeId(), Part::Feature::getClassTypeId(), getClassTypeId(), Base::Placement::getPosition(), Base::Placement::getRotation(), App::PropertyLink::getValue(), App::PropertyPlacement::getValue(), App::PropertyFloat::getValue(), App::PropertyFileIncluded::getValue(), Gui::Application::getViewProvider(), Gui::Application::Instance, Base::Placement::inverse(), Base::BaseClass::isDerivedFrom(), M_PI, pcDragger, Gui::ViewProviderDocumentObject::pcObject, pcRobotRoot, pcTcpRoot, Robot::RobotObject::RobotVrmlFile, Gui::ViewProvider::setTransformation(), Robot::RobotObject::Tcp, Robot::RobotObject::ToolBase, Robot::RobotObject::ToolShape, and toolShape.
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().
SoJackDragger* RobotGui::ViewProviderRobotObject::pcDragger [protected] |
Definition at line 77 of file ViewProviderRobotObject.h.
Referenced by onChanged(), resetDragger(), setDragger(), and updateData().
SoGroup* RobotGui::ViewProviderRobotObject::pcOffRoot [protected] |
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().
SoGroup* RobotGui::ViewProviderRobotObject::pcTcpRoot [protected] |
Definition at line 73 of file ViewProviderRobotObject.h.
Referenced by attach(), resetDragger(), setDragger(), and updateData().
SoTransform* RobotGui::ViewProviderRobotObject::pcTcpTransform [protected] |
Definition at line 74 of file ViewProviderRobotObject.h.
Definition at line 80 of file ViewProviderRobotObject.h.
Referenced by setAxisTo(), and updateData().