Public Member Functions | Protected Member Functions | Protected Attributes | Private Member Functions | List of all members
lvr2::LVRPointBufferBridge Class Reference

#include <LVRPointBufferBridge.hpp>

Public Member Functions

size_t getNumPoints ()
 
PointBufferPtr getPointBuffer ()
 get the point buffer More...
 
vtkSmartPointer< vtkActor > getPointCloudActor ()
 
vtkSmartPointer< vtkPolyData > getPolyData ()
 
vtkSmartPointer< vtkPolyData > getPolyIDData ()
 
void getSpectralChannels (color< size_t > &channels, color< bool > &use_channel) const
 get spectral channel mappings More...
 
void getSpectralColorGradient (GradientType &gradient, size_t &channel, bool &normalized, bool &useNDVI) const
 get the gradienttype, channel, normalizend and ndvi flags More...
 
bool hasColors ()
 
bool hasNormals ()
 
 LVRPointBufferBridge (const LVRPointBufferBridge &b)
 
 LVRPointBufferBridge (PointBufferPtr pointcloud)
 
void setBaseColor (float r, float g, float b)
 
void setColorsVisibility (bool visible)
 
void setNormalsVisibility (bool visible)
 
void setOpacity (float opacityValue)
 
void setPointSize (int pointSize)
 
void setSpectralChannels (color< size_t > channels, color< bool > use_channel)
 set the spectral channel for (r, g, b) and set if it is used More...
 
void setSpectralColorGradient (GradientType gradient, size_t channel, bool normalized=false, bool ndvi=false)
 set the gradienttype, desired channel, if the outputcolor should be normalized and if the NDVI should be used instead of the channel More...
 
void setVisibility (bool visible)
 
void useGradient (bool useGradient)
 switch between spectral mapping and gradient More...
 
virtual ~LVRPointBufferBridge ()
 

Protected Member Functions

void computePointCloudActor (PointBufferPtr pc)
 

Protected Attributes

bool m_hasColors
 
bool m_hasNormals
 
vtkSmartPointer< vtkPolyData > m_id_polyData
 
size_t m_numPoints
 
PointBufferPtr m_pointBuffer
 
vtkSmartPointer< vtkActor > m_pointCloudActor
 
color< size_t > m_spectralChannels
 
GradientType m_spectralGradient
 
size_t m_spectralGradientChannel
 
bool m_useGradient
 
bool m_useNDVI
 
bool m_useNormalizedGradient
 
color< bool > m_useSpectralChannel
 
vtkSmartPointer< vtkDoubleArray > m_vtk_normals
 
vtkSmartPointer< vtkPolyData > m_vtk_polyData
 

Private Member Functions

void refreshSpectralChannel ()
 update the view with channel mappings More...
 
void refreshSpectralGradient ()
 update the view with gradient information More...
 

Detailed Description

Definition at line 52 of file LVRPointBufferBridge.hpp.

Constructor & Destructor Documentation

◆ LVRPointBufferBridge() [1/2]

lvr2::LVRPointBufferBridge::LVRPointBufferBridge ( PointBufferPtr  pointcloud)

Definition at line 54 of file LVRPointBufferBridge.cpp.

◆ LVRPointBufferBridge() [2/2]

lvr2::LVRPointBufferBridge::LVRPointBufferBridge ( const LVRPointBufferBridge b)

Definition at line 521 of file LVRPointBufferBridge.cpp.

◆ ~LVRPointBufferBridge()

lvr2::LVRPointBufferBridge::~LVRPointBufferBridge ( )
virtual

Definition at line 356 of file LVRPointBufferBridge.cpp.

Member Function Documentation

◆ computePointCloudActor()

void lvr2::LVRPointBufferBridge::computePointCloudActor ( PointBufferPtr  pc)
protected

Definition at line 360 of file LVRPointBufferBridge.cpp.

◆ getNumPoints()

size_t lvr2::LVRPointBufferBridge::getNumPoints ( )

Definition at line 341 of file LVRPointBufferBridge.cpp.

◆ getPointBuffer()

PointBufferPtr lvr2::LVRPointBufferBridge::getPointBuffer ( )

get the point buffer

Definition at line 336 of file LVRPointBufferBridge.cpp.

◆ getPointCloudActor()

vtkSmartPointer< vtkActor > lvr2::LVRPointBufferBridge::getPointCloudActor ( )

Definition at line 589 of file LVRPointBufferBridge.cpp.

◆ getPolyData()

vtkSmartPointer< vtkPolyData > lvr2::LVRPointBufferBridge::getPolyData ( )

Definition at line 580 of file LVRPointBufferBridge.cpp.

◆ getPolyIDData()

vtkSmartPointer< vtkPolyData > lvr2::LVRPointBufferBridge::getPolyIDData ( )

Definition at line 585 of file LVRPointBufferBridge.cpp.

◆ getSpectralChannels()

void lvr2::LVRPointBufferBridge::getSpectralChannels ( color< size_t > &  channels,
color< bool > &  use_channel 
) const

get spectral channel mappings

Definition at line 159 of file LVRPointBufferBridge.cpp.

◆ getSpectralColorGradient()

void lvr2::LVRPointBufferBridge::getSpectralColorGradient ( GradientType gradient,
size_t &  channel,
bool &  normalized,
bool &  useNDVI 
) const

get the gradienttype, channel, normalizend and ndvi flags

Definition at line 313 of file LVRPointBufferBridge.cpp.

◆ hasColors()

bool lvr2::LVRPointBufferBridge::hasColors ( )

Definition at line 351 of file LVRPointBufferBridge.cpp.

◆ hasNormals()

bool lvr2::LVRPointBufferBridge::hasNormals ( )

Definition at line 346 of file LVRPointBufferBridge.cpp.

◆ refreshSpectralChannel()

void lvr2::LVRPointBufferBridge::refreshSpectralChannel ( )
private

update the view with channel mappings

Definition at line 120 of file LVRPointBufferBridge.cpp.

◆ refreshSpectralGradient()

void lvr2::LVRPointBufferBridge::refreshSpectralGradient ( )
private

update the view with gradient information

Definition at line 184 of file LVRPointBufferBridge.cpp.

◆ setBaseColor()

void lvr2::LVRPointBufferBridge::setBaseColor ( float  r,
float  g,
float  b 
)

Definition at line 536 of file LVRPointBufferBridge.cpp.

◆ setColorsVisibility()

void lvr2::LVRPointBufferBridge::setColorsVisibility ( bool  visible)

Definition at line 553 of file LVRPointBufferBridge.cpp.

◆ setNormalsVisibility()

void lvr2::LVRPointBufferBridge::setNormalsVisibility ( bool  visible)

Definition at line 563 of file LVRPointBufferBridge.cpp.

◆ setOpacity()

void lvr2::LVRPointBufferBridge::setOpacity ( float  opacityValue)

Definition at line 547 of file LVRPointBufferBridge.cpp.

◆ setPointSize()

void lvr2::LVRPointBufferBridge::setPointSize ( int  pointSize)

Definition at line 541 of file LVRPointBufferBridge.cpp.

◆ setSpectralChannels()

void lvr2::LVRPointBufferBridge::setSpectralChannels ( color< size_t >  channels,
color< bool >  use_channel 
)

set the spectral channel for (r, g, b) and set if it is used

Definition at line 103 of file LVRPointBufferBridge.cpp.

◆ setSpectralColorGradient()

void lvr2::LVRPointBufferBridge::setSpectralColorGradient ( GradientType  gradient,
size_t  channel,
bool  normalized = false,
bool  ndvi = false 
)

set the gradienttype, desired channel, if the outputcolor should be normalized and if the NDVI should be used instead of the channel

Definition at line 165 of file LVRPointBufferBridge.cpp.

◆ setVisibility()

void lvr2::LVRPointBufferBridge::setVisibility ( bool  visible)

Definition at line 558 of file LVRPointBufferBridge.cpp.

◆ useGradient()

void lvr2::LVRPointBufferBridge::useGradient ( bool  useGradient)

switch between spectral mapping and gradient

Definition at line 321 of file LVRPointBufferBridge.cpp.

Member Data Documentation

◆ m_hasColors

bool lvr2::LVRPointBufferBridge::m_hasColors
protected

Definition at line 104 of file LVRPointBufferBridge.hpp.

◆ m_hasNormals

bool lvr2::LVRPointBufferBridge::m_hasNormals
protected

Definition at line 103 of file LVRPointBufferBridge.hpp.

◆ m_id_polyData

vtkSmartPointer<vtkPolyData> lvr2::LVRPointBufferBridge::m_id_polyData
protected

Definition at line 99 of file LVRPointBufferBridge.hpp.

◆ m_numPoints

size_t lvr2::LVRPointBufferBridge::m_numPoints
protected

Definition at line 102 of file LVRPointBufferBridge.hpp.

◆ m_pointBuffer

PointBufferPtr lvr2::LVRPointBufferBridge::m_pointBuffer
protected

Definition at line 105 of file LVRPointBufferBridge.hpp.

◆ m_pointCloudActor

vtkSmartPointer<vtkActor> lvr2::LVRPointBufferBridge::m_pointCloudActor
protected

Definition at line 101 of file LVRPointBufferBridge.hpp.

◆ m_spectralChannels

color<size_t> lvr2::LVRPointBufferBridge::m_spectralChannels
protected

Definition at line 108 of file LVRPointBufferBridge.hpp.

◆ m_spectralGradient

GradientType lvr2::LVRPointBufferBridge::m_spectralGradient
protected

Definition at line 110 of file LVRPointBufferBridge.hpp.

◆ m_spectralGradientChannel

size_t lvr2::LVRPointBufferBridge::m_spectralGradientChannel
protected

Definition at line 111 of file LVRPointBufferBridge.hpp.

◆ m_useGradient

bool lvr2::LVRPointBufferBridge::m_useGradient
protected

Definition at line 106 of file LVRPointBufferBridge.hpp.

◆ m_useNDVI

bool lvr2::LVRPointBufferBridge::m_useNDVI
protected

Definition at line 112 of file LVRPointBufferBridge.hpp.

◆ m_useNormalizedGradient

bool lvr2::LVRPointBufferBridge::m_useNormalizedGradient
protected

Definition at line 107 of file LVRPointBufferBridge.hpp.

◆ m_useSpectralChannel

color<bool> lvr2::LVRPointBufferBridge::m_useSpectralChannel
protected

Definition at line 109 of file LVRPointBufferBridge.hpp.

◆ m_vtk_normals

vtkSmartPointer<vtkDoubleArray> lvr2::LVRPointBufferBridge::m_vtk_normals
protected

Definition at line 113 of file LVRPointBufferBridge.hpp.

◆ m_vtk_polyData

vtkSmartPointer<vtkPolyData> lvr2::LVRPointBufferBridge::m_vtk_polyData
protected

Definition at line 96 of file LVRPointBufferBridge.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 Wed Mar 2 2022 00:37:27