Go to the documentation of this file.
17 #ifndef GAZEBO_PHYSICS_POLYLINESHAPE_HH_
18 #define GAZEBO_PHYSICS_POLYLINESHAPE_HH_
42 public:
virtual void Init();
49 public: std::vector<std::vector<ignition::math::Vector2d> >
54 public:
double GetHeight()
const;
58 public:
void FillMsg(msgs::Geometry &_msg);
62 public:
virtual void ProcessMsg(
const msgs::Geometry &_msg);
66 private:
virtual void SetScale(
const ignition::math::Vector3d &_scale);
75 private:
virtual void SetVertices(
76 const std::vector<std::vector<ignition::math::Vector2d> >
81 private:
virtual void SetVertices(
const msgs::Geometry &_msg);
87 private:
void SetPolylineShape(
const double &_height,
88 const std::vector<std::vector<ignition::math::Vector2d> >
94 private:
virtual void SetHeight(
const double &_height);
const common::Mesh * mesh
Pointer to the mesh data.
Definition: PolylineShape.hh:97
Polyline geometry primitive.
Definition: PolylineShape.hh:32
Forward declarations for the common classes.
Definition: Animation.hh:26
void FillMsg(msgs::Geometry &_msg)
Fill in the values for a geomertry message.
virtual ~PolylineShape()
Destructor.
double GetHeight() const
Get the height of the polylines.
PolylineShape(CollisionPtr _parent)
Constructor.
std::vector< std::vector< ignition::math::Vector2d > > Vertices() const
Get the vertices of the polylines.
GAZEBO_VISIBLE void Init(google::protobuf::Message &_message, const std::string &_id="")
Initialize a message.
A 3D mesh.
Definition: Mesh.hh:42
boost::shared_ptr< Collision > CollisionPtr
Definition: PhysicsTypes.hh:114
virtual void ProcessMsg(const msgs::Geometry &_msg)
Process a geometry message.
virtual void Init()
Initialize the polyLine.
Base class for all shapes.
Definition: Shape.hh:39