Go to the documentation of this file.
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;
70 public:
virtual std::string
Name()
const;
81 public:
virtual ignition::math::Color
Color3d()
const;
89 public:
virtual void SetName(
const std::string &_name);
102 public:
void SetColor3d(
const ignition::math::Color &_color);
128 Q_SIGNALS:
void SizeChanged(
const double _width,
const double _depth,
129 const double _height);
139 const double _z,
const double _roll,
const double _pitch,
150 const double _z,
const double _roll,
const double _pitch,
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;
std::string editorType
Type of editor item.
Definition: EditorItem.hh:236
Forward declarations for the common classes.
Definition: Animation.hh:27
Base class of an item in the editor.
Definition: EditorItem.hh:43
void Set3dTransparency(const float _transparency)
Set the transparency of the associated 3D visual.
virtual ignition::math::Color Color3d() const
Get the associated 3D visual's color.
void SizeChanged(const double _width, const double _depth, const double _height)
Qt signal emitted when the editor item size has changed.
void SetLevelBaseHeight(const double _height)
Set the base height of this level relative to the ground plane.
int zValueSelected
Z ordering of the rect item when selected.
Definition: EditorItem.hh:233
virtual double SceneRotation() const
Get the scene rotation of the editor item.
void PosXChanged(const double _posX)
Qt signal emitted when the editor item's X position has changed.
virtual std::string Name() const
Get the name of the editor item.
void LevelChanged(const int _level)
Qt signal emitted when the editor item's level has changed.
void SetLevel(const int _level)
Set the level of this building item.
virtual void SetHighlighted(const bool _highlighted)
Set whether this item should be highlighted or not.
int ZValueIdle() const
Get the z value of this item when in idle state.
int level
Level that this item is on.
Definition: EditorItem.hh:242
double levelBaseHeight
Vertical distance from the building's base to the base of the level this editor is in.
Definition: EditorItem.hh:246
void PoseOriginTransformed(const double _x, const double _y, const double _z, const double _roll, const double _pitch, const double _yaw)
Qt signal emitted when the editor item pose origin has changed.
virtual void SetName(const std::string &_name)
Set the name of this editor item.
void YawChanged(const double _yaw)
Qt signal emitted when the editor item yaw rotation has changed.
int Level() const
Get the level in which this building item is located.
double itemScale
Scale for converting from pixel to metric units.
Definition: EditorItem.hh:262
float visual3dTransparency
Transparency of the associated 3D visual.
Definition: EditorItem.hh:255
std::string visual3dTexture
Texture of the associated 3D visual.
Definition: EditorItem.hh:252
void PosYChanged(const double _posY)
Qt signal emitted when the editor item's Y position has changed.
void ItemDeleted()
Qt signal emitted when the editor item is being deleted.
virtual std::string Texture3d() const
Get the associated 3D visual's texture.
double LevelBaseHeight() const
Get the base height of this level relative to the ground plane.
void SetColor3d(const ignition::math::Color &_color)
Set the associated 3D visual's color.
int zValueIdle
Z ordering of the rect item when idle (unselected.)
Definition: EditorItem.hh:230
void DepthChanged(const double _depth)
Qt signal emitted when the editor item depth has changed.
gui
Definition: KeyEventHandler.hh:29
int ZValueSelected() const
Get the z value of this item when in selected state.
void TextureChanged(const std::string &_texture)
Qt signal emitted when the editor item's 3D texture has changed.
void PositionChanged(const double _x, const double _y, const double _z)
Qt signal emitted when the editor item position has changed.
void ColorChanged(const ignition::math::Color &_color)
Qt signal emitted when the editor item's 3D color has changed.
ignition::math::Color visual3dColor
Color of the associated 3D visual.
Definition: EditorItem.hh:249
void RotationChanged(const double _roll, const double _pitch, const double _yaw)
Qt signal emitted when the editor item rotation has changed.
virtual std::string ItemType() const
Get the type of the editor item.
bool highlighted
Flag to indicate whether this item is currently highlighted or not.
Definition: EditorItem.hh:259
std::string name
Name of editor item.
Definition: EditorItem.hh:239
void PoseChanged(const double _x, const double _y, const double _z, const double _roll, const double _pitch, const double _yaw)
Qt signal emitted when the editor item pose has changed.
virtual ignition::math::Vector3d Size() const
Get the size of the item in pixels.
void PosZChanged(const double _posZ)
Qt signal emitted when the editor item's Z position has changed.
void TransparencyChanged(const float _transparency)
Qt signal emitted when the editor item's 3D transparency has changed.
virtual ignition::math::Vector3d ScenePosition() const
Get the scene position of editor item.
void SetTexture3d(const std::string &_texture)
Set the associated 3D visual's texture.
void HeightChanged(const double _height)
Qt signal emitted when the editor item height has changed.
void WidthChanged(const double _width)
Qt signal emitted when the editor item width has changed.