Go to the documentation of this file.
17 #ifndef GAZEBO_RENDERING_SELECTIONOBJ_HH_
18 #define GAZEBO_RENDERING_SELECTIONOBJ_HH_
86 public:
void Detach();
90 public:
void SetMode(
const std::string &_mode);
94 public:
void SetMode(SelectionMode _mode);
99 public:
void SetState(
const std::string &_state);
105 public:
void SetState(SelectionMode _state);
108 public: SelectionMode GetState();
111 public: SelectionMode GetMode();
115 public:
void SetGlobal(
bool _global);
118 public:
void UpdateSize();
123 public:
void SetHandleVisible(SelectionMode _mode,
bool _visible);
129 public:
bool GetHandleVisible(SelectionMode _mode)
const;
137 public:
void SetHandleMaterial(SelectionMode _mode,
const std::string
138 &_material,
bool _unique =
true);
141 private:
void CreateScaleVisual();
144 private:
void CreateRotateVisual();
147 private:
void CreateTranslateVisual();
Translation in x.
Definition: SelectionObj.hh:41
Scale in z.
Definition: SelectionObj.hh:65
void SetHandleVisible(SelectionMode _mode, bool _visible)
Set the visibility for a specific handle or handle group.
Translation in y.
Definition: SelectionObj.hh:51
Rotation in z.
Definition: SelectionObj.hh:59
Forward declarations for the common classes.
Definition: Animation.hh:26
Scale in y.
Definition: SelectionObj.hh:63
SelectionObj(const std::string &_name, VisualPtr _vis)
Constructor.
Scale mode.
Definition: SelectionObj.hh:47
Rotation in x.
Definition: SelectionObj.hh:55
void Detach()
Detach the selection object from the current visual.
Scale in x.
Definition: SelectionObj.hh:61
void SetState(const std::string &_state)
Set state by highlighting the corresponding selection object visual.
SelectionMode GetMode()
Get the current selection mode.
A renderable object.
Definition: Visual.hh:60
virtual ~SelectionObj()
Deconstructor.
void SetHandleMaterial(SelectionMode _mode, const std::string &_material, bool _unique=true)
Set the material for a specific handle or handle group.
Translation in z.
Definition: SelectionObj.hh:53
SelectionMode GetState()
Get the current selection state.
Rotation mode.
Definition: SelectionObj.hh:45
bool GetHandleVisible(SelectionMode _mode) const
Get the visibility for a specific handle.
SelectionMode
Definition: SelectionObj.hh:38
void SetMode(const std::string &_mode)
Set the manipulation mode.
void SetGlobal(bool _global)
Set selection object to ignore local transforms.
void Attach(rendering::VisualPtr _vis)
Attach the selection object to the given visual.
std::shared_ptr< Visual > VisualPtr
Definition: RenderTypes.hh:114
Rotation in y.
Definition: SelectionObj.hh:57
Translation mode.
Definition: SelectionObj.hh:43
Translation in x.
Definition: SelectionObj.hh:49
void UpdateSize()
Update selection object size to match the parent visual.
Interactive selection object for models and links.
Definition: SelectionObj.hh:34