33 #ifndef DART_GUI_OSG_INTERACTIVEFRAME_HPP_ 34 #define DART_GUI_OSG_INTERACTIVEFRAME_HPP_ 36 #include "dart/dynamics/SimpleFrame.hpp" 47 class InteractiveFrame;
66 void setEnabled(
bool enabled);
69 bool getEnabled()
const;
72 void setAlpha(
double alpha);
79 void setDefaultAlpha(
double alpha,
bool reset =
true);
82 double getDefaultAlpha()
const;
91 const dart::dynamics::ShapePtr& shape);
93 const std::vector<dart::dynamics::SimpleFrame*> getShapeFrames();
95 const std::vector<const dart::dynamics::SimpleFrame*> getShapeFrames()
const;
97 void removeAllShapeFrames();
100 std::vector<std::unique_ptr<dart::dynamics::SimpleFrame>> mSimpleFrames;
102 double mDefaultAlpha;
117 const std::string& name =
"interactive_frame",
118 const Eigen::Isometry3d& relativeTransform
119 = Eigen::Isometry3d::Identity(),
120 double size_scale = 0.2,
121 double thickness_scale = 2.0);
128 virtual void resizeStandardVisuals(
129 double size_scale = 0.2,
double thickness_scale = 2.0);
139 const dart::dynamics::ShapePtr& shape);
141 const std::vector<dart::dynamics::SimpleFrame*> getShapeFrames();
143 const std::vector<const dart::dynamics::SimpleFrame*> getShapeFrames()
const;
145 void removeAllShapeFrames();
150 void createStandardVisualizationShapes(
double size,
double thickness);
153 void deleteAllVisualizationShapes();
156 void deleteAllTools();
161 std::vector<std::unique_ptr<dart::dynamics::SimpleFrame>> mSimpleFrames;
164 typedef std::shared_ptr<InteractiveFrame> InteractiveFramePtr;
170 #endif // DART_GUI_OSG_INTERACTIVEFRAME_HPP_
The Frame class serves as the backbone of DART's kinematic tree structure.
Definition: Frame.hpp:57
Definition: InteractiveFrame.hpp:109
Definition: Aspect.cpp:40
The SimpleFrame class offers a user-friendly way of creating arbitrary Frames within the kinematic tr...
Definition: SimpleFrame.hpp:51