gz/rendering/base/BaseGizmoVisual.hh
Go to the documentation of this file.
129 AM_HANDLE
virtual MaterialPtr CreateMaterial(const std::string &_name="")=0
Create new material with the given name. Created material will have default properties.
@ TA_TRANSLATION_X
Translation in x.
Definition: gz/rendering/TransformType.hh:39
STL class.
BaseGizmoVisual()
Constructor.
Definition: gz/rendering/base/BaseGizmoVisual.hh:138
TransformAxis
Unique identifiers for transformation axes.
Definition: gz/rendering/TransformType.hh:34
#define IGN_COMMON_WARN_IGNORE__DLL_INTERFACE_MISSING
#define IGN_PI
bool HasMesh(const std::string &_name) const
void CreateScaleVisual()
Create gizmo visual for scale.
Definition: gz/rendering/base/BaseGizmoVisual.hh:618
TransformMode mode
Current gizmo mode.
Definition: gz/rendering/base/BaseGizmoVisual.hh:93
std::map< unsigned int, VisualPtr > handles
A map of gizmo axis and their handle visuals.
Definition: gz/rendering/base/BaseGizmoVisual.hh:100
virtual void SetActiveAxis(const math::Vector3d &_axis) override
Set the active axis in the gizmo visual.
Definition: gz/rendering/base/BaseGizmoVisual.hh:335
virtual void SetTransformMode(TransformMode _mode) override
Set the transform mode of the gizmo. This controls the visual appearance of the gizmo....
Definition: gz/rendering/base/BaseGizmoVisual.hh:315
static MeshManager * Instance()
virtual void Reset()
Reset the gizmo visual state.
Definition: gz/rendering/base/BaseGizmoVisual.hh:165
VisualPtr activeVis
Currently active visual.
Definition: gz/rendering/base/BaseGizmoVisual.hh:103
virtual math::Vector3d ActiveAxis() const override
Get the current active axis.
Definition: gz/rendering/base/BaseGizmoVisual.hh:346
void CreateTranslationVisual()
Create gizmo visual for translation.
Definition: gz/rendering/base/BaseGizmoVisual.hh:425
AxisMaterial
Material used by axes.
Definition: gz/rendering/base/BaseGizmoVisual.hh:116
virtual VisualPtr CreateVisual()=0
Create new visual. A unique ID and name will automatically be assigned to the visual.
@ TA_ROTATION_Z
Rotation in z.
Definition: gz/rendering/TransformType.hh:49
Manages a single scene-graph. This class updates scene-wide properties and holds the root scene node....
Definition: gz/rendering/Scene.hh:49
void CreateTube(const std::string &_name, const float _innerRadius, const float _outterRadius, const float _height, const int _rings, const int _segments, const double _arc=2.0 *IGN_PI)
static const Vector3 Zero
@ AM_Y
Y axis.
Definition: gz/rendering/base/BaseGizmoVisual.hh:121
std::map< unsigned int, MaterialPtr > materials
A map of axis enums to materials.
Definition: gz/rendering/base/BaseGizmoVisual.hh:112
void CreateRotationVisual()
Create gizmo visual for rotation.
Definition: gz/rendering/base/BaseGizmoVisual.hh:533
@ TA_ROTATION_X
Rotation in x.
Definition: gz/rendering/TransformType.hh:45
virtual TransformMode Mode() const override
Get the current transform mode.
Definition: gz/rendering/base/BaseGizmoVisual.hh:328
math::Vector3d axis
Active axis.
Definition: gz/rendering/base/BaseGizmoVisual.hh:109
STL class.
@ AM_O
Origin.
Definition: gz/rendering/base/BaseGizmoVisual.hh:127
virtual MaterialPtr Material(const std::string &_name) const =0
Get material registered under the given name. If no material is registered under the given name,...
virtual void Init() override
Definition: gz/rendering/base/BaseGizmoVisual.hh:150
shared_ptr< Visual > VisualPtr
Shared pointer to Visual.
Definition: gz/rendering/RenderTypes.hh:269
TransformMode
Unique identifiers for transformation modes.
Definition: gz/rendering/TransformType.hh:60
@ AM_Z
Z axis.
Definition: gz/rendering/base/BaseGizmoVisual.hh:123
Definition: gz/rendering/base/BaseScene.hh:37
std::map< unsigned int, VisualPtr > visuals
A map of gizmo axis and their visuals.
Definition: gz/rendering/base/BaseGizmoVisual.hh:97
A base implementation of the GizmoVisual class.
Definition: gz/rendering/base/BaseGizmoVisual.hh:43
@ AM_X
X axis.
Definition: gz/rendering/base/BaseGizmoVisual.hh:119
@ AM_HANDLE
handle
Definition: gz/rendering/base/BaseGizmoVisual.hh:129
@ TA_ROTATION_Y
Rotation in y.
Definition: gz/rendering/TransformType.hh:47
virtual TransformAxis AxisById(unsigned int _id) const override
Get the Transform axis associated with the given id.
Definition: gz/rendering/base/BaseGizmoVisual.hh:353
bool modeDirty
Flag to indicate the mode has changed.
Definition: gz/rendering/base/BaseGizmoVisual.hh:106
A gizmo that contains rotate, translate, and scale visuals.
Definition: gz/rendering/GizmoVisual.hh:34
virtual VisualPtr ChildByAxis(unsigned int _axis) const override
Get the child visual by axis.
Definition: gz/rendering/base/BaseGizmoVisual.hh:716
void CreateMaterials()
Create materials used by the gizmo visual.
Definition: gz/rendering/base/BaseGizmoVisual.hh:368
@ AM_ACTIVE
Active axis.
Definition: gz/rendering/base/BaseGizmoVisual.hh:125
@ TA_TRANSLATION_Z
Translation in z.
Definition: gz/rendering/TransformType.hh:43
@ TA_TRANSLATION_Y
Translation in y.
Definition: gz/rendering/TransformType.hh:41
virtual ~BaseGizmoVisual()
Destructor.
Definition: gz/rendering/base/BaseGizmoVisual.hh:144
@ TM_ROTATION
Rotation mode.
Definition: gz/rendering/TransformType.hh:67
#define IGN_COMMON_WARN_RESUME__DLL_INTERFACE_MISSING
virtual void PreRender() override
Prepare this object and any of its children for rendering. This should be called for each object in a...
Definition: gz/rendering/base/BaseGizmoVisual.hh:213
@ TM_TRANSLATION
Translation mode.
Definition: gz/rendering/TransformType.hh:65