| |
|
| |
|
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| |
|
| |
|
| | #ifndef ROBOT_VIEWPROVIDERROBOTOBJECT_H
|
| | #define ROBOT_VIEWPROVIDERROBOTOBJECT_H
|
| |
|
| | #include <Base/Placement.h>
|
| | #include <Gui/Selection/SoFCSelection.h>
|
| | #include <Gui/ViewProviderGeometryObject.h>
|
| | #include <Inventor/VRMLnodes/SoVRMLTransform.h>
|
| | #include <Mod/Robot/RobotGlobal.h>
|
| |
|
| |
|
| | class SoDragger;
|
| | class SoJackDragger;
|
| | class SoTrackballDragger;
|
| |
|
| | namespace RobotGui
|
| | {
|
| |
|
| | class RobotGuiExport ViewProviderRobotObject: public Gui::ViewProviderGeometryObject
|
| | {
|
| | PROPERTY_HEADER_WITH_OVERRIDE(RobotGui::ViewProviderRobotObject);
|
| |
|
| | public:
|
| |
|
| | ViewProviderRobotObject();
|
| |
|
| |
|
| | ~ViewProviderRobotObject() override;
|
| |
|
| | App::PropertyBool Manipulator;
|
| |
|
| | void attach(App::DocumentObject* pcObject) override;
|
| | void setDisplayMode(const char* ModeName) override;
|
| | std::vector<std::string> getDisplayModes() const override;
|
| | void updateData(const App::Property*) override;
|
| |
|
| | void onChanged(const App::Property* prop) override;
|
| |
|
| |
|
| | void setAxisTo(float A1, float A2, float A3, float A4, float A5, float A6, const Base::Placement& Tcp);
|
| |
|
| | protected:
|
| | static void sDraggerMotionCallback(void* data, SoDragger* dragger);
|
| | void DraggerMotionCallback(SoDragger* dragger);
|
| |
|
| | void setDragger();
|
| | void resetDragger();
|
| |
|
| | Gui::SoFCSelection* pcRobotRoot;
|
| | Gui::SoFCSelection* pcSimpleRoot;
|
| | SoGroup* pcOffRoot;
|
| |
|
| | SoGroup* pcTcpRoot;
|
| |
|
| |
|
| |
|
| | SoJackDragger* pcDragger {nullptr};
|
| |
|
| |
|
| | Gui::ViewProvider* toolShape {nullptr};
|
| |
|
| |
|
| | SoVRMLTransform* Axis1Node;
|
| | SoVRMLTransform* Axis2Node;
|
| | SoVRMLTransform* Axis3Node;
|
| | SoVRMLTransform* Axis4Node;
|
| | SoVRMLTransform* Axis5Node;
|
| | SoVRMLTransform* Axis6Node;
|
| | };
|
| |
|
| | }
|
| |
|
| |
|
| | #endif
|
| |
|