Public Types | Public Member Functions | Public Attributes | Private Member Functions | Private Attributes | List of all members
lvr2::PointCloud Class Reference

#include <PointCloud.hpp>

Inheritance diagram for lvr2::PointCloud:
Inheritance graph
[legend]

Public Types

using uColorVertex = ColorVertex< float, unsigned char >
 
- Public Types inherited from lvr2::Renderable
using Vec = BaseVector< float >
 

Public Member Functions

void addPoint (float x, float y, float z, unsigned char r, unsigned char g, unsigned char b)
 
void addPoint (const uColorVertex &v)
 
void clear ()
 
vector< uColorVertexgetPoints ()
 
 PointCloud ()
 
 PointCloud (ModelPtr loader, string name="<unamed cloud>")
 
 PointCloud (PointBufferPtr buffer, string name="<unamed cloud>")
 
virtual void render ()
 
void setPoints ()
 
void setRenderMode (int mode)
 
void updateBuffer (PointBufferPtr buffer)
 
void updateDisplayLists ()
 
virtual ~PointCloud ()
 
- Public Member Functions inherited from lvr2::Renderable
void accel (bool invert=0)
 
BoundingBox< Vec > * boundingBox ()
 
void compileAxesList ()
 
Matrix4< VecgetTransformation ()
 
bool isActive ()
 
bool isSelected ()
 
void lift (bool invert=0)
 
float lineWidth ()
 
virtual ModelPtr model ()
 
void moveX (bool invert=0)
 
void moveY (bool invert=0)
 
void moveZ (bool invert=0)
 
string Name ()
 
void pitch (bool invert=0)
 
float pointSize ()
 
 Renderable ()
 
 Renderable (const Renderable &other)
 
 Renderable (string name)
 
 Renderable (Matrix4< Vec > m, string name)
 
void roll (bool invert=0)
 
void rotX (bool invert=0)
 
void rotY (bool invert=0)
 
void rotZ (bool invert=0)
 
void scale (float s)
 
void setActive (bool a)
 
void setLineWidth (float width)
 
virtual void setName (string s)
 
void setPointSize (float size)
 
void setRotationSpeed (float s)
 
void setSelected (bool s)
 
void setTransformationMatrix (Matrix4< Vec > m)
 
void setTranslationSpeed (float s)
 
void setVisible (bool s)
 
void showAxes (bool on)
 
void strafe (bool invert=0)
 
void toggle ()
 
void yaw (bool invert=0)
 
virtual ~Renderable ()
 

Public Attributes

vector< uColorVertexm_points
 

Private Member Functions

int getFieldsPerLine (string filename)
 
void init (PointBufferPtr buffer)
 

Private Attributes

GLuint m_normalListIndex
 
floatArr m_normals
 
size_t m_numNormals
 
int m_renderMode
 

Additional Inherited Members

- Protected Member Functions inherited from lvr2::Renderable
void computeMatrix ()
 
virtual void transform ()
 
- Protected Attributes inherited from lvr2::Renderable
bool m_active
 
int m_activeListIndex
 
int m_axesListIndex
 
BoundingBox< Vec > * m_boundingBox
 
float m_lineWidth
 
int m_listIndex
 
ModelPtr m_model
 
string m_name
 
float m_pointSize
 
Vec m_position
 
float m_rotationSpeed
 
float m_scaleFactor
 
bool m_selected
 
bool m_showAxes
 
Matrix4< Vecm_transformation
 
float m_translationSpeed
 
bool m_visible
 
Normal< typename Vec::CoordTypem_xAxis
 
Normal< typename Vec::CoordTypem_yAxis
 
Normal< typename Vec::CoordTypem_z_Axis
 

Detailed Description

Definition at line 59 of file PointCloud.hpp.

Member Typedef Documentation

◆ uColorVertex

using lvr2::PointCloud::uColorVertex = ColorVertex<float, unsigned char>

Definition at line 61 of file PointCloud.hpp.

Constructor & Destructor Documentation

◆ PointCloud() [1/3]

lvr2::PointCloud::PointCloud ( )

Definition at line 43 of file PointCloud.cpp.

◆ PointCloud() [2/3]

lvr2::PointCloud::PointCloud ( ModelPtr  loader,
string  name = "<unamed cloud>" 
)

Definition at line 56 of file PointCloud.cpp.

◆ PointCloud() [3/3]

lvr2::PointCloud::PointCloud ( PointBufferPtr  buffer,
string  name = "<unamed cloud>" 
)

Definition at line 50 of file PointCloud.cpp.

◆ ~PointCloud()

lvr2::PointCloud::~PointCloud ( )
virtual

Definition at line 206 of file PointCloud.cpp.

Member Function Documentation

◆ addPoint() [1/2]

void lvr2::PointCloud::addPoint ( float  x,
float  y,
float  z,
unsigned char  r,
unsigned char  g,
unsigned char  b 
)
inline

Definition at line 72 of file PointCloud.hpp.

◆ addPoint() [2/2]

void lvr2::PointCloud::addPoint ( const uColorVertex v)
inline

Definition at line 78 of file PointCloud.hpp.

◆ clear()

void lvr2::PointCloud::clear ( )
inline

Definition at line 84 of file PointCloud.hpp.

◆ getFieldsPerLine()

int lvr2::PointCloud::getFieldsPerLine ( string  filename)
private

◆ getPoints()

vector<uColorVertex> lvr2::PointCloud::getPoints ( )
inline

Definition at line 69 of file PointCloud.hpp.

◆ init()

void lvr2::PointCloud::init ( PointBufferPtr  buffer)
private

Definition at line 69 of file PointCloud.cpp.

◆ render()

void lvr2::PointCloud::render ( )
inlinevirtual

Implements lvr2::Renderable.

Definition at line 110 of file PointCloud.hpp.

◆ setPoints()

void lvr2::PointCloud::setPoints ( )
inline

Definition at line 70 of file PointCloud.hpp.

◆ setRenderMode()

void lvr2::PointCloud::setRenderMode ( int  mode)
inline

Definition at line 96 of file PointCloud.hpp.

◆ updateBuffer()

void lvr2::PointCloud::updateBuffer ( PointBufferPtr  buffer)

Definition at line 63 of file PointCloud.cpp.

◆ updateDisplayLists()

void lvr2::PointCloud::updateDisplayLists ( )

Definition at line 134 of file PointCloud.cpp.

Member Data Documentation

◆ m_normalListIndex

GLuint lvr2::PointCloud::m_normalListIndex
private

Definition at line 104 of file PointCloud.hpp.

◆ m_normals

floatArr lvr2::PointCloud::m_normals
private

Definition at line 105 of file PointCloud.hpp.

◆ m_numNormals

size_t lvr2::PointCloud::m_numNormals
private

Definition at line 106 of file PointCloud.hpp.

◆ m_points

vector<uColorVertex> lvr2::PointCloud::m_points

Definition at line 94 of file PointCloud.hpp.

◆ m_renderMode

int lvr2::PointCloud::m_renderMode
private

Definition at line 103 of file PointCloud.hpp.


The documentation for this class was generated from the following files:


lvr2
Author(s): Thomas Wiemann , Sebastian Pütz , Alexander Mock , Lars Kiesow , Lukas Kalbertodt , Tristan Igelbrink , Johan M. von Behren , Dominik Feldschnieders , Alexander Löhr
autogenerated on Mon Feb 28 2022 22:46:12