Go to the documentation of this file.
30 #ifndef OGRE_TOOLS_OGRE_POINT_CLOUD_H
31 #define OGRE_TOOLS_OGRE_POINT_CLOUD_H
33 #include <OgreSimpleRenderable.h>
34 #include <OgreMovableObject.h>
35 #include <OgreString.h>
36 #include <OgreAxisAlignedBox.h>
38 #include <OgreMaterial.h>
39 #include <OgreColourValue.h>
41 #include <OgreHardwareBufferManager.h>
42 #include <OgreSharedPtr.h>
48 #include <boost/shared_ptr.hpp>
70 using Ogre::SimpleRenderable::getRenderOperation;
77 Ogre::HardwareVertexBufferSharedPtr
getBuffer();
86 const Ogre::LightList&
getLights()
const override;
135 inline void setColor(
float r,
float g,
float b,
float a = 1.0)
137 color = Ogre::ColourValue(r, g, b, a);
186 void setAlpha(
float alpha,
bool per_point_alpha =
false);
205 void _notifyAttached(Ogre::Node* parent,
bool isTagPoint =
false)
override;
206 void visitRenderables(Ogre::Renderable::Visitor* visitor,
bool debugRenderables)
override;
A visual representation of a set of points.
void setAlpha(float alpha, bool per_point_alpha=false)
uint32_t point_count_
The number of points currently in points_.
Ogre::RenderOperation * getRenderOperation()
void addPoints(Point *points, uint32_t num_points)
Add points to this point cloud.
virtual void setName(const std::string &name)
Ogre::MaterialPtr sphere_material_
virtual void getWorldTransforms(Ogre::Matrix4 *xform) const
unsigned short getNumWorldTransforms() const override
void visitRenderables(Ogre::Renderable::Visitor *visitor, bool debugRenderables) override
Ogre::ColourValue pick_color_
Ogre::AxisAlignedBox bounding_box_
The bounding box of this point cloud.
void popPoints(uint32_t num_points)
Remove a number of points from this point cloud.
PointCloudRenderable(PointCloud *parent, int num_points, bool use_tex_coords)
Representation of a point, with x/y/z position and r/g/b color.
V_Point points_
The list of points we're displaying. Allocates to a high-water-mark.
void setAutoSize(bool auto_size)
void getWorldTransforms(Ogre::Matrix4 *xform) const override
void _notifyAttached(Ogre::Node *parent, bool isTagPoint=false) override
static Ogre::String sm_Type
The "renderable type" used by Ogre.
float getBoundingRadius() const override
Ogre::MaterialPtr current_material_
Ogre::MaterialPtr box_material_
bool current_mode_supports_geometry_shader_
void setColor(float r, float g, float b, float a=1.0)
void setPickColor(const Ogre::ColourValue &color)
float bounding_radius_
The bounding radius of this point cloud.
Ogre::MaterialPtr tile_material_
boost::shared_ptr< PointCloudRenderable > PointCloudRenderablePtr
void setDimensions(float width, float height, float depth)
Set the dimensions of the billboards used to render each point.
void setRenderMode(RenderMode mode)
Set what type of rendering primitives should be used, currently points, billboards and boxes are supp...
Ogre::Real getBoundingRadius() const override
uint32_t getVerticesPerPoint()
Ogre::MaterialPtr point_material_
Ogre::MaterialPtr material_
Ogre::Vector3 common_up_vector_
See Ogre::BillboardSet::setCommonUpVector.
Ogre::HardwareVertexBufferSharedPtr getBuffer()
void clear()
Clear all the points.
void setColorByIndex(bool set)
Ogre::MaterialPtr flat_square_material_
const Ogre::String & getMovableType() const override
const Ogre::LightList & getLights() const override
~PointCloudRenderable() override
void setHighlightColor(float r, float g, float b)
PointCloudRenderablePtr createRenderable(int num_points)
const Ogre::AxisAlignedBox & getBoundingBox() const override
std::vector< PointCloudRenderablePtr > V_PointCloudRenderable
Ogre::Vector3 common_direction_
See Ogre::BillboardSet::setCommonDirection.
virtual unsigned short getNumWorldTransforms() const
Ogre::MaterialPtr square_material_
V_PointCloudRenderable renderables_
void _updateRenderQueue(Ogre::RenderQueue *queue) override
void setCommonDirection(const Ogre::Vector3 &vec)
See Ogre::BillboardSet::setCommonDirection.
void setCommonUpVector(const Ogre::Vector3 &vec)
See Ogre::BillboardSet::setCommonUpVector.
std::vector< Point > V_Point
Ogre::Real getSquaredViewDepth(const Ogre::Camera *cam) const override
rviz
Author(s): Dave Hershberger, David Gossow, Josh Faust, William Woodall
autogenerated on Fri Dec 13 2024 03:31:02