34 #ifndef LVRPOINTBUFFERBRIDGE_HPP_ 35 #define LVRPOINTBUFFERBRIDGE_HPP_ 40 #include <vtkPolyData.h> 41 #include <vtkSmartPointer.h> 43 #include <vtkDoubleArray.h> 45 #include <boost/shared_ptr.hpp> void useGradient(bool useGradient)
switch between spectral mapping and gradient
boost::shared_ptr< LVRPointBufferBridge > PointBufferBridgePtr
void computePointCloudActor(PointBufferPtr pc)
void setPointSize(int pointSize)
void getSpectralColorGradient(GradientType &gradient, size_t &channel, bool &normalized, bool &useNDVI) const
get the gradienttype, channel, normalizend and ndvi flags
vtkSmartPointer< vtkPolyData > getPolyIDData()
void setVisibility(bool visible)
void setOpacity(float opacityValue)
color< bool > m_useSpectralChannel
vtkSmartPointer< vtkDoubleArray > m_vtk_normals
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...
std::shared_ptr< PointBuffer > PointBufferPtr
vtkSmartPointer< vtkActor > m_pointCloudActor
void setBaseColor(float r, float g, float b)
color< size_t > m_spectralChannels
__kf_device__ float3 normalized(const float3 &v)
void refreshSpectralChannel()
update the view with channel mappings
void getSpectralChannels(color< size_t > &channels, color< bool > &use_channel) const
get spectral channel mappings
GradientType
Identifies a color gradient.
void refreshSpectralGradient()
update the view with gradient information
void setSpectralChannels(color< size_t > channels, color< bool > use_channel)
set the spectral channel for (r, g, b) and set if it is used
size_t m_spectralGradientChannel
void setColorsVisibility(bool visible)
PointBufferPtr m_pointBuffer
virtual ~LVRPointBufferBridge()
void setNormalsVisibility(bool visible)
vtkSmartPointer< vtkPolyData > getPolyData()
vtkSmartPointer< vtkPolyData > m_vtk_polyData
LVRPointBufferBridge(PointBufferPtr pointcloud)
vtkSmartPointer< vtkActor > getPointCloudActor()
bool m_useNormalizedGradient
vtkSmartPointer< vtkPolyData > m_id_polyData
GradientType m_spectralGradient
PointBufferPtr getPointBuffer()
get the point buffer