Go to the documentation of this file.
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;
ignition::math::Color Color() const
Get the color of the manip.
void SetRotation(double _roll, double _pitch, double _yaw)
Set the rotation of the manip.
double Transparency() const
Get the transparency of the manip.
void TextureChanged(const std::string &_texture)
Qt signal emitted when the manip's texture has changed from the 3D view.
void SetVisible(bool _visible)
Set the visibility of the manip.
rendering::VisualPtr Visual() const
Get the visual this manip manages.
Forward declarations for the common classes.
Definition: Animation.hh:26
void SetVisual(const rendering::VisualPtr &_visual)
Set the visual this manip manages.
A convenient structure for storing level information.
Definition: EditorView.hh:45
void SetSize(double _width, double _depth, double _height)
Set the size of the manip.
void SetMaker(BuildingMaker *_maker)
Set the maker that the manip is managed by.
int Level() const
Get the level for this manip.
void SetTexture(QString _texture)
Set the texture of the manip.
std::string Name() const
Get the name of the manip object.
void SetName(const std::string &_name)
Set the name of the manip object.
virtual ~BuildingModelManip()
Destructor.
void SetPose(double _x, double _y, double _z, double _roll, double _pitch, double _yaw)
Set the pose of the manip.
Create and manage 3D visuals of a building.
Definition: BuildingMaker.hh:48
std::string Texture() const
Get the texture of the manip.
void SetColor(QColor _color)
Set the color of the manip.
Manipulate a 3D visual associated to a 2D editor item.
Definition: BuildingModelManip.hh:43
void SetTransparency(float _transparency)
Set the transparency of the manip.
void SetPosition(double _x, double _y, double _z)
Set the position of the manip.
void ColorChanged(const ignition::math::Color &_color)
Qt signal emitted when the manip's color has changed from the 3D view.
std::shared_ptr< Visual > VisualPtr
Definition: RenderTypes.hh:114
BuildingModelManip()
Constructor.
void SetLevel(const int _level)
Set the level for this manip.