18 #ifndef _GAZEBO_GUI_BUILDING_EDITORITEM_HH_ 19 #define _GAZEBO_GUI_BUILDING_EDITORITEM_HH_ 23 #include <ignition/math/Vector3.hh> 36 class EditorItemPrivate;
55 public:
virtual ignition::math::Vector3d Size()
const;
59 public:
virtual ignition::math::Vector3d ScenePosition()
const;
63 public:
virtual double SceneRotation()
const;
67 public:
virtual std::string ItemType()
const;
71 public:
virtual std::string Name()
const;
74 public:
int Level()
const;
78 public:
double LevelBaseHeight()
const;
86 public:
virtual std::string Texture3d()
const;
90 public:
virtual void SetName(
const std::string &_name);
94 public:
void SetLevel(
const int _level);
99 public:
void SetLevelBaseHeight(
const double _height);
107 public:
void SetTexture3d(
const std::string &_texture);
111 public:
void Set3dTransparency(
const float _transparency);
115 public:
virtual void SetHighlighted(
const bool _highlighted);
119 public:
int ZValueIdle()
const;
123 public:
int ZValueSelected()
const;
129 Q_SIGNALS:
void SizeChanged(
const double _width,
const double _depth,
130 const double _height);
139 Q_SIGNALS:
void PoseChanged(
const double _x,
const double _y,
140 const double _z,
const double _roll,
const double _pitch,
150 Q_SIGNALS:
void PoseOriginTransformed(
const double _x,
const double _y,
151 const double _z,
const double _roll,
const double _pitch,
158 Q_SIGNALS:
void PositionChanged(
const double _x,
const double _y,
165 Q_SIGNALS:
void RotationChanged(
const double _roll,
const double _pitch,
170 Q_SIGNALS:
void WidthChanged(
const double _width);
174 Q_SIGNALS:
void DepthChanged(
const double _depth);
178 Q_SIGNALS:
void HeightChanged(
const double _height);
183 Q_SIGNALS:
void PosXChanged(
const double _posX);
188 Q_SIGNALS:
void PosYChanged(
const double _posY);
193 Q_SIGNALS:
void PosZChanged(
const double _posZ);
198 Q_SIGNALS:
void YawChanged(
const double _yaw);
202 Q_SIGNALS:
void LevelChanged(
const int _level);
212 Q_SIGNALS:
void TextureChanged(
const std::string &_texture);
217 Q_SIGNALS:
void TransparencyChanged(
const float _transparency);
220 Q_SIGNALS:
void ItemDeleted();
224 private slots:
void OnColorChanged(
const common::Color &_color);
228 private slots:
void OnTextureChanged(
const std::string &_texture);
267 private: std::unique_ptr<EditorItemPrivate> dataPtr;
int zValueIdle
Z ordering of the rect item when idle (unselected.)
Definition: EditorItem.hh:231
Base class of an item in the editor.
Definition: EditorItem.hh:43
int level
Level that this item is on.
Definition: EditorItem.hh:243
Forward declarations for the common classes.
Definition: Animation.hh:33
std::string name
Name of editor item.
Definition: EditorItem.hh:240
bool highlighted
Flag to indicate whether this item is currently highlighted or not.
Definition: EditorItem.hh:260
common::Color visual3dColor
Color of the associated 3D visual.
Definition: EditorItem.hh:250
std::string visual3dTexture
Texture of the associated 3D visual.
Definition: EditorItem.hh:253
float visual3dTransparency
Transparency of the associated 3D visual.
Definition: EditorItem.hh:256
A convenient structure for storing level information.
Definition: EditorView.hh:45
double levelBaseHeight
Vertical distance from the building's base to the base of the level this editor is in...
Definition: EditorItem.hh:247
Defines a color.
Definition: Color.hh:36
int zValueSelected
Z ordering of the rect item when selected.
Definition: EditorItem.hh:234
double itemScale
Scale for converting from pixel to metric units.
Definition: EditorItem.hh:263
std::string editorType
Type of editor item.
Definition: EditorItem.hh:237