17 #ifndef GAZEBO_GUI_BUILDING_BUILDINGMODELMANIP_HH_
18 #define GAZEBO_GUI_BUILDING_BUILDINGMODELMANIP_HH_
21 #include <ignition/math/Color.hh>
36 class BuildingModelManipPrivate;
55 public: std::string Name()
const;
63 public:
double Transparency()
const;
67 public: ignition::math::Color Color()
const;
71 public: std::string Texture()
const;
75 public:
void SetName(
const std::string &_name);
92 public:
void SetPose(
double _x,
double _y,
double _z,
93 double _roll,
double _pitch,
double _yaw);
99 public:
void SetPosition(
double _x,
double _y,
double _z);
105 public:
void SetRotation(
double _roll,
double _pitch,
double _yaw);
111 public:
void SetSize(
double _width,
double _depth,
double _height);
115 public:
void SetColor(QColor _color);
119 public:
void SetTexture(QString _texture);
123 public:
void SetTransparency(
float _transparency);
127 public:
void SetVisible(
bool _visible);
131 public:
void SetLevel(
const int _level);
135 public:
int Level()
const;
140 Q_SIGNALS:
void ColorChanged(
const ignition::math::Color &_color);
145 Q_SIGNALS:
void TextureChanged(
const std::string &_texture);
155 private slots:
void OnPoseChanged(
double _x,
double _y,
double _z,
156 double _roll,
double _pitch,
double _yaw);
166 private slots:
void OnPoseOriginTransformed(
double _x,
double _y,
167 double _z,
double _roll,
double _pitch,
double _yaw);
174 private slots:
void OnPositionChanged(
double _x,
double _y,
double _z);
181 private slots:
void OnRotationChanged(
double _roll,
double _pitch,
189 private slots:
void OnSizeChanged(
double _width,
double _depth,
195 private slots:
void OnWidthChanged(
double _width);
200 private slots:
void OnHeightChanged(
double _height);
205 private slots:
void OnDepthChanged(
double _depth);
210 private slots:
void OnPosXChanged(
double _posX);
215 private slots:
void OnPosYChanged(
double _posY);
220 private slots:
void OnPosZChanged(
double _posZ);
225 private slots:
void OnYawChanged(
double _yaw);
230 private slots:
void OnLevelChanged(
int _level);
235 private slots:
void OnColorChanged(
const ignition::math::Color &_color);
240 private slots:
void OnTextureChanged(
const std::string &_texture);
245 private slots:
void OnTransparencyChanged(
float _transparency);
248 private slots:
void OnDeleted();
254 private:
void OnChangeLevel(
int _level);
258 private: std::unique_ptr<BuildingModelManipPrivate> dataPtr;
Create and manage 3D visuals of a building.
Definition: BuildingMaker.hh:48
A convenient structure for storing level information.
Definition: EditorView.hh:45
std::shared_ptr< Visual > VisualPtr
Definition: RenderTypes.hh:114
Manipulate a 3D visual associated to a 2D editor item.
Definition: BuildingModelManip.hh:43