33 #ifndef DART_GUI_OSG_INTERACTIVEFRAME_HPP_
34 #define DART_GUI_OSG_INTERACTIVEFRAME_HPP_
47 class InteractiveFrame;
63 const std::string&
name);
95 const std::vector<const dart::dynamics::SimpleFrame*>
getShapeFrames()
const;
119 const std::string&
name =
"interactive_frame",
120 const Eigen::Isometry3d& relativeTransform = Eigen::Isometry3d::Identity(),
121 double size_scale=0.2,
double thickness_scale=2.0);
129 double thickness_scale=2.0);
136 std::size_t coordinate)
const;
143 const std::vector<const dart::dynamics::SimpleFrame*>
getShapeFrames()
const;
#define DART_DEFINE_ALIGNED_SHARED_OBJECT_CREATOR(class_name)
Definition: Memory.hpp:148
std::string * name
Definition: SkelParser.cpp:1642
The Frame class serves as the backbone of DART's kinematic tree structure.
Definition: Frame.hpp:57
The SimpleFrame class offers a user-friendly way of creating arbitrary Frames within the kinematic tr...
Definition: SimpleFrame.hpp:52
Definition: InteractiveFrame.hpp:112
virtual void resizeStandardVisuals(double size_scale=0.2, double thickness_scale=2.0)
Recreate the visuals for this InteractiveFrame according to the specified scales.
Definition: InteractiveFrame.cpp:188
void deleteAllVisualizationShapes()
Deletes all the visualization shapes held by the InteractiveFrame.
Definition: InteractiveFrame.cpp:590
dart::dynamics::SimpleFrame * addShapeFrame(const dart::dynamics::ShapePtr &shape)
Definition: InteractiveFrame.cpp:226
std::vector< std::unique_ptr< dart::dynamics::SimpleFrame > > mSimpleFrames
Definition: InteractiveFrame.hpp:161
const std::vector< dart::dynamics::SimpleFrame * > getShapeFrames()
Definition: InteractiveFrame.cpp:243
void deleteAllTools()
Delete all the tool entities belonging to this InteractiveFrame.
Definition: InteractiveFrame.cpp:605
InteractiveFrame(dart::dynamics::Frame *referenceFrame, const std::string &name="interactive_frame", const Eigen::Isometry3d &relativeTransform=Eigen::Isometry3d::Identity(), double size_scale=0.2, double thickness_scale=2.0)
Constructor.
Definition: InteractiveFrame.cpp:156
void removeAllShapeFrames()
Definition: InteractiveFrame.cpp:266
virtual ~InteractiveFrame()
Destructor.
Definition: InteractiveFrame.cpp:181
void createStandardVisualizationShapes(double size, double thickness)
Creates the standard visualization shapes for InteractiveFrames.
Definition: InteractiveFrame.cpp:272
InteractiveTool * getTool(InteractiveTool::Type tool, std::size_t coordinate)
Get the specified tool.
Definition: InteractiveFrame.cpp:196
InteractiveTool * mTools[InteractiveTool::NUM_TYPES][3]
Array of tools belonging to this InteractiveFrame.
Definition: InteractiveFrame.hpp:159
std::shared_ptr< Shape > ShapePtr
Definition: SmartPointer.hpp:81
std::shared_ptr< InteractiveFrame > InteractiveFramePtr
Definition: InteractiveFrame.hpp:165
Definition: BulletCollisionDetector.cpp:63