#include <ViewProviderTrajectory.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 |
void | setDisplayMode (const char *ModeName) |
set the display mode | |
void | updateData (const App::Property *) |
Gets called if some of the property hade bin changed. | |
ViewProviderTrajectory () | |
constructor. | |
~ViewProviderTrajectory () | |
destructor. | |
Static Public Member Functions | |
static void * | create (void) |
static Base::Type | getClassTypeId (void) |
static void | init (void) |
Protected Member Functions | |
virtual const App::PropertyData & | getPropertyData (void) const |
Static Protected Member Functions | |
static const App::PropertyData * | getPropertyDataPtr (void) |
Protected Attributes | |
SoCoordinate3 * | pcCoords |
SoDrawStyle * | pcDrawStyle |
SoLineSet * | pcLines |
Gui::SoFCSelection * | pcTrajectoryRoot |
Definition at line 40 of file ViewProviderTrajectory.h.
ViewProviderTrajectory::ViewProviderTrajectory | ( | ) |
constructor.
Definition at line 62 of file ViewProviderTrajectory.cpp.
References Gui::SoFCSelection::OFF, and Gui::SoFCSelection::SEL_OFF.
ViewProviderTrajectory::~ViewProviderTrajectory | ( | ) |
destructor.
Definition at line 84 of file ViewProviderTrajectory.cpp.
References pcCoords, pcDrawStyle, pcLines, and pcTrajectoryRoot.
void ViewProviderTrajectory::attach | ( | App::DocumentObject * | pcObject | ) | [virtual] |
Attaches the document object to this view provider.
Reimplemented from Gui::ViewProviderGeometryObject.
Definition at line 93 of file ViewProviderTrajectory.cpp.
References Gui::ViewProvider::addDisplayMaskMode(), Gui::SoFCSelection::documentName, SketcherExample::f, App::DocumentObject::getDocument(), App::Document::getName(), App::DocumentObject::getNameInDocument(), Gui::SoFCSelection::objectName, pcCoords, pcLines, pcTrajectoryRoot, and Gui::SoFCSelection::subElementName.
void * RobotGui::ViewProviderTrajectory::create | ( | void | ) | [static] |
Reimplemented from Gui::ViewProviderGeometryObject.
Reimplemented in RobotGui::ViewProviderEdge2TracObject, RobotGui::ViewProviderTrajectoryCompound, and RobotGui::ViewProviderTrajectoryDressUp.
Definition at line 60 of file ViewProviderTrajectory.cpp.
Base::Type RobotGui::ViewProviderTrajectory::getClassTypeId | ( | void | ) | [static] |
Reimplemented from Gui::ViewProviderGeometryObject.
Reimplemented in RobotGui::ViewProviderEdge2TracObject, RobotGui::ViewProviderTrajectoryCompound, and RobotGui::ViewProviderTrajectoryDressUp.
Definition at line 60 of file ViewProviderTrajectory.cpp.
std::vector< std::string > ViewProviderTrajectory::getDisplayModes | ( | void | ) | const [virtual] |
Return a list of all possible modes.
Reimplemented from Gui::ViewProviderDocumentObject.
Definition at line 129 of file ViewProviderTrajectory.cpp.
const App::PropertyData & RobotGui::ViewProviderTrajectory::getPropertyData | ( | void | ) | const [protected, virtual] |
Reimplemented from Gui::ViewProviderGeometryObject.
Reimplemented in RobotGui::ViewProviderEdge2TracObject, RobotGui::ViewProviderTrajectoryCompound, and RobotGui::ViewProviderTrajectoryDressUp.
Definition at line 60 of file ViewProviderTrajectory.cpp.
const App::PropertyData * RobotGui::ViewProviderTrajectory::getPropertyDataPtr | ( | void | ) | [static, protected] |
Reimplemented from Gui::ViewProviderGeometryObject.
Reimplemented in RobotGui::ViewProviderEdge2TracObject, RobotGui::ViewProviderTrajectoryCompound, and RobotGui::ViewProviderTrajectoryDressUp.
Definition at line 60 of file ViewProviderTrajectory.cpp.
Base::Type RobotGui::ViewProviderTrajectory::getTypeId | ( | void | ) | const [virtual] |
Reimplemented from Gui::ViewProviderGeometryObject.
Reimplemented in RobotGui::ViewProviderEdge2TracObject, RobotGui::ViewProviderTrajectoryCompound, and RobotGui::ViewProviderTrajectoryDressUp.
Definition at line 60 of file ViewProviderTrajectory.cpp.
void RobotGui::ViewProviderTrajectory::init | ( | void | ) | [static] |
Reimplemented from Gui::ViewProviderGeometryObject.
Reimplemented in RobotGui::ViewProviderEdge2TracObject, RobotGui::ViewProviderTrajectoryCompound, and RobotGui::ViewProviderTrajectoryDressUp.
Definition at line 60 of file ViewProviderTrajectory.cpp.
Referenced by initRobotGui().
void ViewProviderTrajectory::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 122 of file ViewProviderTrajectory.cpp.
References Gui::ViewProvider::setDisplayMaskMode().
void ViewProviderTrajectory::updateData | ( | const App::Property * | ) | [virtual] |
Gets called if some of the property hade bin changed.
Reimplemented from Gui::ViewProviderGeometryObject.
Definition at line 136 of file ViewProviderTrajectory.cpp.
References Robot::TrajectoryObject::Base, Robot::Waypoint::EndPos, Base::Placement::getPosition(), Robot::Trajectory::getSize(), App::PropertyPlacement::getValue(), Robot::PropertyTrajectory::getValue(), Robot::Trajectory::getWaypoint(), pcCoords, pcLines, Gui::ViewProviderDocumentObject::pcObject, RobotExample::pos, Robot::TrajectoryObject::Trajectory, Base::Vector3< _Precision >::x, Base::Vector3< _Precision >::y, and Base::Vector3< _Precision >::z.
SoCoordinate3* RobotGui::ViewProviderTrajectory::pcCoords [protected] |
Definition at line 59 of file ViewProviderTrajectory.h.
Referenced by attach(), updateData(), and ~ViewProviderTrajectory().
SoDrawStyle* RobotGui::ViewProviderTrajectory::pcDrawStyle [protected] |
Definition at line 60 of file ViewProviderTrajectory.h.
Referenced by ~ViewProviderTrajectory().
SoLineSet* RobotGui::ViewProviderTrajectory::pcLines [protected] |
Definition at line 61 of file ViewProviderTrajectory.h.
Referenced by attach(), updateData(), and ~ViewProviderTrajectory().
Definition at line 58 of file ViewProviderTrajectory.h.
Referenced by attach(), and ~ViewProviderTrajectory().