Public Member Functions | Static Public Member Functions | Static Public Attributes | Private Member Functions | Private Attributes | List of all members
PointType Class Reference

#include <point_type.h>

Public Member Functions

template<class T >
T * createPoint (const Point &P, unsigned int index=0)
 
template<class T >
Point createPoint (T *p)
 
template<typename T >
T * createPoint (unsigned int i, unsigned int index=0)
 Create a point with attributes via the DataPointers from the scan. More...
 
unsigned int getAmplitude ()
 
unsigned int getDeviation ()
 
unsigned int getIndex ()
 
unsigned int getPointDim ()
 
unsigned int getReflectance ()
 
unsigned int getTime ()
 
unsigned int getType ()
 
unsigned int getType (unsigned int type)
 
bool hasAmplitude ()
 
bool hasColor ()
 
bool hasDeviation ()
 
bool hasIndex ()
 
bool hasReflectance ()
 
bool hasTime ()
 
bool hasType ()
 
 PointType ()
 
 PointType (unsigned int _types)
 
void serialize (std::ofstream &f)
 
unsigned int toFlags () const
 

Static Public Member Functions

static PointType deserialize (std::ifstream &f)
 

Static Public Attributes

static const unsigned int USE_AMPLITUDE = 2
 
static const unsigned int USE_COLOR = 32
 
static const unsigned int USE_DEVIATION = 4
 
static const unsigned int USE_HEIGHT = 8
 
static const unsigned int USE_INDEX = 128
 
static const unsigned int USE_NONE = 0
 
static const unsigned int USE_REFLECTANCE = 1
 
static const unsigned int USE_TIME = 64
 
static const unsigned int USE_TYPE = 16
 

Private Member Functions

bool hasType (unsigned int type)
 

Private Attributes

int dimensionmap [8]
 
DataAmplitudem_amplitude
 
DataDeviationm_deviation
 
DataReflectancem_reflectance
 
DataRGBm_rgb
 
DataTypem_type
 
DataXYZm_xyz
 
unsigned int pointbytes
 
unsigned int pointdim
 
unsigned int types
 

Detailed Description

Definition at line 25 of file point_type.h.

Constructor & Destructor Documentation

◆ PointType() [1/2]

PointType::PointType ( )

Definition at line 33 of file point_type.cc.

◆ PointType() [2/2]

PointType::PointType ( unsigned int  _types)

Definition at line 40 of file point_type.cc.

Member Function Documentation

◆ createPoint() [1/3]

template<class T >
T * PointType::createPoint ( const Point P,
unsigned int  index = 0 
)

Definition at line 120 of file point_type.h.

◆ createPoint() [2/3]

template<class T >
Point PointType::createPoint ( T *  p)

Definition at line 154 of file point_type.h.

◆ createPoint() [3/3]

template<class T >
T * PointType::createPoint ( unsigned int  i,
unsigned int  index = 0 
)

Create a point with attributes via the DataPointers from the scan.

Definition at line 185 of file point_type.h.

◆ deserialize()

PointType PointType::deserialize ( std::ifstream &  f)
static

Definition at line 126 of file point_type.cc.

◆ getAmplitude()

unsigned int PointType::getAmplitude ( )

Definition at line 81 of file point_type.cc.

◆ getDeviation()

unsigned int PointType::getDeviation ( )

Definition at line 85 of file point_type.cc.

◆ getIndex()

unsigned int PointType::getIndex ( )

Definition at line 93 of file point_type.cc.

◆ getPointDim()

unsigned int PointType::getPointDim ( )

Definition at line 124 of file point_type.cc.

◆ getReflectance()

unsigned int PointType::getReflectance ( )

Definition at line 77 of file point_type.cc.

◆ getTime()

unsigned int PointType::getTime ( )

Definition at line 89 of file point_type.cc.

◆ getType() [1/2]

unsigned int PointType::getType ( )

Definition at line 97 of file point_type.cc.

◆ getType() [2/2]

unsigned int PointType::getType ( unsigned int  type)

Definition at line 101 of file point_type.cc.

◆ hasAmplitude()

bool PointType::hasAmplitude ( )

Definition at line 57 of file point_type.cc.

◆ hasColor()

bool PointType::hasColor ( )

Definition at line 66 of file point_type.cc.

◆ hasDeviation()

bool PointType::hasDeviation ( )

Definition at line 60 of file point_type.cc.

◆ hasIndex()

bool PointType::hasIndex ( )

Definition at line 73 of file point_type.cc.

◆ hasReflectance()

bool PointType::hasReflectance ( )

Definition at line 54 of file point_type.cc.

◆ hasTime()

bool PointType::hasTime ( )

Definition at line 69 of file point_type.cc.

◆ hasType() [1/2]

bool PointType::hasType ( )

Definition at line 63 of file point_type.cc.

◆ hasType() [2/2]

bool PointType::hasType ( unsigned int  type)
private

Definition at line 138 of file point_type.cc.

◆ serialize()

void PointType::serialize ( std::ofstream &  f)

Definition at line 132 of file point_type.cc.

◆ toFlags()

unsigned int PointType::toFlags ( ) const

Definition at line 136 of file point_type.cc.

Member Data Documentation

◆ dimensionmap

int PointType::dimensionmap[8]
private

Derived from types, to map type to the array index for each point

Definition at line 104 of file point_type.h.

◆ m_amplitude

DataAmplitude* PointType::m_amplitude
private

Definition at line 113 of file point_type.h.

◆ m_deviation

DataDeviation* PointType::m_deviation
private

Definition at line 115 of file point_type.h.

◆ m_reflectance

DataReflectance* PointType::m_reflectance
private

Definition at line 112 of file point_type.h.

◆ m_rgb

DataRGB* PointType::m_rgb
private

Definition at line 111 of file point_type.h.

◆ m_type

DataType* PointType::m_type
private

Definition at line 114 of file point_type.h.

◆ m_xyz

DataXYZ* PointType::m_xyz
private

Definition at line 110 of file point_type.h.

◆ pointbytes

unsigned int PointType::pointbytes
private

Stores the size of each point in bytes

Definition at line 99 of file point_type.h.

◆ pointdim

unsigned int PointType::pointdim
private

Derived from types: 3 spatial dimensions + 1 for each flag set

Definition at line 94 of file point_type.h.

◆ types

unsigned int PointType::types
private

collection of flags

Definition at line 90 of file point_type.h.

◆ USE_AMPLITUDE

const unsigned int PointType::USE_AMPLITUDE = 2
static

Definition at line 30 of file point_type.h.

◆ USE_COLOR

const unsigned int PointType::USE_COLOR = 32
static

Definition at line 34 of file point_type.h.

◆ USE_DEVIATION

const unsigned int PointType::USE_DEVIATION = 4
static

Definition at line 31 of file point_type.h.

◆ USE_HEIGHT

const unsigned int PointType::USE_HEIGHT = 8
static

Definition at line 32 of file point_type.h.

◆ USE_INDEX

const unsigned int PointType::USE_INDEX = 128
static

Definition at line 36 of file point_type.h.

◆ USE_NONE

const unsigned int PointType::USE_NONE = 0
static

Definition at line 28 of file point_type.h.

◆ USE_REFLECTANCE

const unsigned int PointType::USE_REFLECTANCE = 1
static

Definition at line 29 of file point_type.h.

◆ USE_TIME

const unsigned int PointType::USE_TIME = 64
static

Definition at line 35 of file point_type.h.

◆ USE_TYPE

const unsigned int PointType::USE_TYPE = 16
static

Definition at line 33 of file point_type.h.


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:26