18 #ifndef _GAZEBO_GUI_BUILDING_EDITORITEM_HH_
19 #define _GAZEBO_GUI_BUILDING_EDITORITEM_HH_
33 class EditorItemPrivate;
52 public:
virtual QVector3D GetSize()
const;
56 public:
virtual QVector3D GetScenePosition()
const;
60 public:
virtual double GetSceneRotation()
const;
64 public:
virtual std::string GetType()
const;
68 public:
virtual std::string GetName()
const;
71 public:
int GetLevel()
const;
75 public:
double GetLevelBaseHeight()
const;
79 public:
virtual QColor Get3dColor()
const;
83 public:
virtual QString Get3dTexture()
const;
87 public:
virtual void SetName(
const std::string &_name);
91 public:
void SetLevel(
int _level);
96 public:
void SetLevelBaseHeight(
double _height);
100 public:
void Set3dColor(QColor _color);
104 public:
void Set3dTexture(QString _texture);
108 public:
void Set3dTransparency(
float _transparency);
112 public:
virtual void SetHighlighted(
bool _highlighted);
116 public:
int ZValueIdle()
const;
120 public:
int ZValueSelected()
const;
126 Q_SIGNALS:
void SizeChanged(
double _width,
double _depth,
136 Q_SIGNALS:
void PoseChanged(
double _x,
double _y,
double _z,
137 double _roll,
double _pitch,
double _yaw);
146 Q_SIGNALS:
void PoseOriginTransformed(
double _x,
double _y,
double _z,
147 double _roll,
double _pitch,
double _yaw);
153 Q_SIGNALS:
void PositionChanged(
double _x,
double _y,
double _z);
159 Q_SIGNALS:
void RotationChanged(
double _roll,
double _pitch,
double _yaw);
163 Q_SIGNALS:
void WidthChanged(
double _width);
167 Q_SIGNALS:
void DepthChanged(
double _depth);
171 Q_SIGNALS:
void HeightChanged(
double _height);
176 Q_SIGNALS:
void PosXChanged(
double _posX);
181 Q_SIGNALS:
void PosYChanged(
double _posY);
186 Q_SIGNALS:
void PosZChanged(
double _posZ);
191 Q_SIGNALS:
void YawChanged(
double _yaw);
195 Q_SIGNALS:
void LevelChanged(
int _level);
200 Q_SIGNALS:
void ColorChanged(QColor _color);
205 Q_SIGNALS:
void TextureChanged(QString _texture);
210 Q_SIGNALS:
void TransparencyChanged(
float _transparency);
213 Q_SIGNALS:
void ItemDeleted();
217 private slots:
void OnColorChanged(QColor _color);
221 private slots:
void OnTextureChanged(QString _texture);
260 private: std::unique_ptr<EditorItemPrivate> dataPtr;
int level
Level that this item is on.
Definition: EditorItem.hh:236
double levelBaseHeight
Vertical distance from the building's base to the base of the level this editor is in...
Definition: EditorItem.hh:240
Base class of an item in the editor.
Definition: EditorItem.hh:40
QColor visual3dColor
Color of the associated 3D visual.
Definition: EditorItem.hh:243
#define GZ_GUI_VISIBLE
Definition: system.hh:284
int zValueIdle
Z ordering of the rect item when idle (unselected.)
Definition: EditorItem.hh:224
int zValueSelected
Z ordering of the rect item when selected.
Definition: EditorItem.hh:227
std::string editorType
Type of editor item.
Definition: EditorItem.hh:230
bool highlighted
Flag to indicate whether this item is currently highlighted or not.
Definition: EditorItem.hh:253
QString visual3dTexture
Texture of the associated 3D visual.
Definition: EditorItem.hh:246
double itemScale
Scale for converting from pixel to metric units.
Definition: EditorItem.hh:256
std::string name
Name of editor item.
Definition: EditorItem.hh:233
float visual3dTransparency
Transparency of the associated 3D visual.
Definition: EditorItem.hh:249