18 #ifndef GAZEBO_GUI_BUILDING_EDITORITEM_HH_ 19 #define GAZEBO_GUI_BUILDING_EDITORITEM_HH_ 23 #include <ignition/math/Color.hh> 24 #include <ignition/math/Vector3.hh> 35 class EditorItemPrivate;
54 public:
virtual ignition::math::Vector3d Size()
const;
58 public:
virtual ignition::math::Vector3d ScenePosition()
const;
62 public:
virtual double SceneRotation()
const;
66 public:
virtual std::string ItemType()
const;
70 public:
virtual std::string Name()
const;
73 public:
int Level()
const;
77 public:
double LevelBaseHeight()
const;
81 public:
virtual ignition::math::Color Color3d()
const;
85 public:
virtual std::string Texture3d()
const;
89 public:
virtual void SetName(
const std::string &_name);
93 public:
void SetLevel(
const int _level);
98 public:
void SetLevelBaseHeight(
const double _height);
102 public:
void SetColor3d(
const ignition::math::Color &_color);
106 public:
void SetTexture3d(
const std::string &_texture);
110 public:
void Set3dTransparency(
const float _transparency);
114 public:
virtual void SetHighlighted(
const bool _highlighted);
118 public:
int ZValueIdle()
const;
122 public:
int ZValueSelected()
const;
128 Q_SIGNALS:
void SizeChanged(
const double _width,
const double _depth,
129 const double _height);
138 Q_SIGNALS:
void PoseChanged(
const double _x,
const double _y,
139 const double _z,
const double _roll,
const double _pitch,
149 Q_SIGNALS:
void PoseOriginTransformed(
const double _x,
const double _y,
150 const double _z,
const double _roll,
const double _pitch,
157 Q_SIGNALS:
void PositionChanged(
const double _x,
const double _y,
164 Q_SIGNALS:
void RotationChanged(
const double _roll,
const double _pitch,
169 Q_SIGNALS:
void WidthChanged(
const double _width);
173 Q_SIGNALS:
void DepthChanged(
const double _depth);
177 Q_SIGNALS:
void HeightChanged(
const double _height);
182 Q_SIGNALS:
void PosXChanged(
const double _posX);
187 Q_SIGNALS:
void PosYChanged(
const double _posY);
192 Q_SIGNALS:
void PosZChanged(
const double _posZ);
197 Q_SIGNALS:
void YawChanged(
const double _yaw);
201 Q_SIGNALS:
void LevelChanged(
const int _level);
206 Q_SIGNALS:
void ColorChanged(
const ignition::math::Color &_color);
211 Q_SIGNALS:
void TextureChanged(
const std::string &_texture);
216 Q_SIGNALS:
void TransparencyChanged(
const float _transparency);
219 Q_SIGNALS:
void ItemDeleted();
223 private slots:
void OnColorChanged(
const ignition::math::Color &_color);
227 private slots:
void OnTextureChanged(
const std::string &_texture);
266 private: std::unique_ptr<EditorItemPrivate> dataPtr;
int zValueIdle
Z ordering of the rect item when idle (unselected.)
Definition: EditorItem.hh:230
Base class of an item in the editor.
Definition: EditorItem.hh:42
int level
Level that this item is on.
Definition: EditorItem.hh:242
Forward declarations for the common classes.
Definition: Animation.hh:26
std::string name
Name of editor item.
Definition: EditorItem.hh:239
bool highlighted
Flag to indicate whether this item is currently highlighted or not.
Definition: EditorItem.hh:259
ignition::math::Color visual3dColor
Color of the associated 3D visual.
Definition: EditorItem.hh:249
std::string visual3dTexture
Texture of the associated 3D visual.
Definition: EditorItem.hh:252
float visual3dTransparency
Transparency of the associated 3D visual.
Definition: EditorItem.hh:255
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:246
gui
Definition: KeyEventHandler.hh:29
int zValueSelected
Z ordering of the rect item when selected.
Definition: EditorItem.hh:233
double itemScale
Scale for converting from pixel to metric units.
Definition: EditorItem.hh:262
std::string editorType
Type of editor item.
Definition: EditorItem.hh:236