18 #ifndef _EDITOR_ITEM_HH_
19 #define _EDITOR_ITEM_HH_
46 public:
virtual QVector3D GetSize()
const;
50 public:
virtual QVector3D GetScenePosition()
const;
54 public:
virtual double GetSceneRotation()
const;
58 public:
virtual std::string GetType()
const;
62 public:
virtual std::string GetName()
const;
65 public:
int GetLevel()
const;
69 public:
double GetLevelBaseHeight()
const;
73 public:
virtual QColor Get3dColor()
const;
77 public:
virtual QString Get3dTexture()
const;
81 public:
virtual void SetName(
const std::string &_name);
85 public:
void SetLevel(
int _level);
90 public:
void SetLevelBaseHeight(
double _height);
94 public:
void Set3dColor(QColor _color);
98 public:
void Set3dTexture(QString _texture);
102 public:
void Set3dTransparency(
float _transparency);
106 public:
virtual void SetHighlighted(
bool _highlighted);
112 Q_SIGNALS:
void SizeChanged(
double _width,
double _depth,
122 Q_SIGNALS:
void PoseChanged(
double _x,
double _y,
double _z,
123 double _roll,
double _pitch,
double _yaw);
132 Q_SIGNALS:
void PoseOriginTransformed(
double _x,
double _y,
double _z,
133 double _roll,
double _pitch,
double _yaw);
139 Q_SIGNALS:
void PositionChanged(
double _x,
double _y,
double _z);
145 Q_SIGNALS:
void RotationChanged(
double _roll,
double _pitch,
double _yaw);
149 Q_SIGNALS:
void WidthChanged(
double _width);
153 Q_SIGNALS:
void DepthChanged(
double _depth);
157 Q_SIGNALS:
void HeightChanged(
double _height);
162 Q_SIGNALS:
void PosXChanged(
double _posX);
167 Q_SIGNALS:
void PosYChanged(
double _posY);
172 Q_SIGNALS:
void PosZChanged(
double _posZ);
177 Q_SIGNALS:
void YawChanged(
double _yaw);
181 Q_SIGNALS:
void LevelChanged(
int _level);
186 Q_SIGNALS:
void ColorChanged(QColor _color);
191 Q_SIGNALS:
void TextureChanged(QString _texture);
196 Q_SIGNALS:
void TransparencyChanged(
float _transparency);
199 Q_SIGNALS:
void ItemDeleted();
203 private slots:
void OnColorChanged(QColor _color);
207 private slots:
void OnTextureChanged(QString _texture);
int level
Level that this item is on.
Definition: EditorItem.hh:222
double levelBaseHeight
Vertical distance from the building's base to the base of the level this editor is in...
Definition: EditorItem.hh:226
Base class of an item in the editor.
Definition: EditorItem.hh:34
QColor visual3dColor
Color of the associated 3D visual.
Definition: EditorItem.hh:229
int zValueIdle
Z ordering of the rect item when idle (unselected.)
Definition: EditorItem.hh:210
int zValueSelected
Z ordering of the rect item when selected.
Definition: EditorItem.hh:213
std::string editorType
Type of editor item.
Definition: EditorItem.hh:216
bool highlighted
Flag to indicate whether this item is currently highlighted or not.
Definition: EditorItem.hh:239
QString visual3dTexture
Texture of the associated 3D visual.
Definition: EditorItem.hh:232
double itemScale
Scale for converting from pixel to metric units.
Definition: EditorItem.hh:242
std::string name
Name of editor item.
Definition: EditorItem.hh:219
#define GAZEBO_VISIBLE
Use to represent "symbol visible" if supported.
Definition: system.hh:48
float visual3dTransparency
Transparency of the associated 3D visual.
Definition: EditorItem.hh:235