Public Types | Public Member Functions | Public Attributes | List of all members
lvr2::ColorVertex< T, ColorT > Class Template Reference

A color vertex. More...

#include <ColorVertex.hpp>

Inheritance diagram for lvr2::ColorVertex< T, ColorT >:
Inheritance graph
[legend]

Public Types

using CoordType = T
 
- Public Types inherited from lvr2::BaseVector< T >
using CoordType = T
 

Public Member Functions

 ColorVertex ()
 Default constructor. All coordinates and the color are initialized with zeros. More...
 
 ColorVertex (const CoordType &_x, const CoordType &_y, const CoordType &_z)
 Builds a ColorVertex with the given coordinates. More...
 
 ColorVertex (const CoordType &_x, const CoordType &_y, const CoordType &_z, const unsigned char _r, const unsigned char _g, const unsigned char _b,...)
 Builds a Vertex with the given coordinates. More...
 
 ColorVertex (const ColorVertex &o)
 Copy Ctor. More...
 
 ColorVertex (const T &o)
 Copy Ctor. More...
 
CoordType operator[] (const int &index) const
 
CoordTypeoperator[] (const int &index)
 
- Public Member Functions inherited from lvr2::BaseVector< T >
 BaseVector ()
 Default constructs a null-vector. More...
 
 BaseVector (const T &x, const T &y, const T &z)
 Builds a BaseVector with the given coordinates. More...
 
 BaseVector (const BaseVector &o)
 
BaseVector< T > cross (const BaseVector &other) const
 Calculates the cross product between this and the given vector. Returns a new BaseVector instance. More...
 
distance (const BaseVector &other) const
 Calculates the distance to another vector. More...
 
distance2 (const BaseVector &other) const
 Calculates the squared distance to another vector. More...
 
CoordType distanceFrom (const BaseVector< T > &other) const
 
dot (const BaseVector &other) const
 Calculates the dot product between this and the given vector. More...
 
length () const
 Returns the length of this vector. More...
 
length2 () const
 Returns the squared length of this vector. More...
 
void normalize ()
 
Normal< T > normalized () const
 Returns a normalized version of this vector. More...
 
bool operator!= (const BaseVector &other) const
 
BaseVector< T > operator* (const T &scale) const
 Scalar multiplication. More...
 
operator* (const BaseVector< CoordType > &other) const
 
BaseVector< T > & operator*= (const T &scale)
 Scalar multiplication. More...
 
BaseVector< T > operator+ (const BaseVector &other) const
 Element-wise addition. More...
 
BaseVector< T > & operator+= (const BaseVector< T > &other)
 Element-wise addition. More...
 
BaseVector< T > operator- (const BaseVector &other) const
 Element-wise subtraction. More...
 
BaseVector< T > & operator-= (const BaseVector< T > &other)
 Element-wise subtraction. More...
 
BaseVector< T > operator/ (const T &scale) const
 Scalar division. More...
 
BaseVector< T > & operator/= (const T &scale)
 Scalar division. More...
 
bool operator== (const BaseVector &other) const
 
operator[] (const unsigned &index) const
 Indexed coordinate access (reading) More...
 
T & operator[] (const unsigned &index)
 Indexed coordinate access (writing) More...
 
BaseVector< T > rotated (const BaseVector &n, const double &alpha) const
 Calculates the rotated vector around an normal vector n with the rotation angle alpha. More...
 
CoordType squaredDistanceFrom (const BaseVector< CoordType > &other) const
 

Public Attributes

ColorT b
 
bool fusion
 
ColorT g
 
ColorT r
 
- Public Attributes inherited from lvr2::BaseVector< T >
x
 
y
 
z
 

Additional Inherited Members

- Static Public Member Functions inherited from lvr2::BaseVector< T >
static BaseVector< T > average (const CollectionT &vecs)
 Returns the average of all vectors in the given collection. More...
 
static BaseVector< T > centroid (const CollectionT &points)
 Returns the centroid of all points in the given collection. More...
 

Detailed Description

template<typename T, typename ColorT>
class lvr2::ColorVertex< T, ColorT >

A color vertex.

Definition at line 50 of file ColorVertex.hpp.

Member Typedef Documentation

◆ CoordType

template<typename T , typename ColorT >
using lvr2::ColorVertex< T, ColorT >::CoordType = T

Definition at line 54 of file ColorVertex.hpp.

Constructor & Destructor Documentation

◆ ColorVertex() [1/5]

template<typename T , typename ColorT >
lvr2::ColorVertex< T, ColorT >::ColorVertex ( )
inline

Default constructor. All coordinates and the color are initialized with zeros.

Definition at line 59 of file ColorVertex.hpp.

◆ ColorVertex() [2/5]

template<typename T , typename ColorT >
lvr2::ColorVertex< T, ColorT >::ColorVertex ( const CoordType _x,
const CoordType _y,
const CoordType _z 
)
inline

Builds a ColorVertex with the given coordinates.

Definition at line 69 of file ColorVertex.hpp.

◆ ColorVertex() [3/5]

template<typename T , typename ColorT >
lvr2::ColorVertex< T, ColorT >::ColorVertex ( const CoordType _x,
const CoordType _y,
const CoordType _z,
const unsigned char  _r,
const unsigned char  _g,
const unsigned char  _b,
  ... 
)
inline

Builds a Vertex with the given coordinates.

Definition at line 83 of file ColorVertex.hpp.

◆ ColorVertex() [4/5]

template<typename T , typename ColorT >
lvr2::ColorVertex< T, ColorT >::ColorVertex ( const ColorVertex< T, ColorT > &  o)
inline

Copy Ctor.

Definition at line 98 of file ColorVertex.hpp.

◆ ColorVertex() [5/5]

template<typename T , typename ColorT >
lvr2::ColorVertex< T, ColorT >::ColorVertex ( const T &  o)
inline

Copy Ctor.

Definition at line 112 of file ColorVertex.hpp.

Member Function Documentation

◆ operator[]() [1/2]

template<typename T , typename ColorT >
CoordType lvr2::ColorVertex< T, ColorT >::operator[] ( const int &  index) const
inline

Definition at line 123 of file ColorVertex.hpp.

◆ operator[]() [2/2]

template<typename T , typename ColorT >
CoordType& lvr2::ColorVertex< T, ColorT >::operator[] ( const int &  index)
inline

Definition at line 141 of file ColorVertex.hpp.

Member Data Documentation

◆ b

template<typename T , typename ColorT >
ColorT lvr2::ColorVertex< T, ColorT >::b

Definition at line 158 of file ColorVertex.hpp.

◆ fusion

template<typename T , typename ColorT >
bool lvr2::ColorVertex< T, ColorT >::fusion

Definition at line 159 of file ColorVertex.hpp.

◆ g

template<typename T , typename ColorT >
ColorT lvr2::ColorVertex< T, ColorT >::g

Definition at line 158 of file ColorVertex.hpp.

◆ r

template<typename T , typename ColorT >
ColorT lvr2::ColorVertex< T, ColorT >::r

Definition at line 158 of file ColorVertex.hpp.


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


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