gr::Point3D< _Scalar > Class Template Reference

The basic 3D point structure. A point potentially contains also directional information and color. More...

#include <shared.h>

+ Inheritance diagram for gr::Point3D< _Scalar >:
+ Collaboration diagram for gr::Point3D< _Scalar >:

Public Types

using Scalar = _Scalar
 
using VectorType = Eigen::Matrix< Scalar, 3, 1 >
 
- Public Types inherited from gr::PointConcept
enum  { Dim = 3 }
 Defines the ambient space dimension. More...
 
typedef float Scalar
 Defines the type used ton encode scalar values. More...
 
typedef Eigen::Matrix< Scalar, Dim, 1 > VectorType
 Defines type used to encode vector values. More...
 

Public Member Functions

bool hasColor () const
 
const VectorType & normal () const
 
void normalize ()
 
 Point3D (Scalar x, Scalar y, Scalar z)
 
 Point3D (const Point3D &other)
 
template<typename Scalar >
 Point3D (const Eigen::Matrix< Scalar, 3, 1 > &other)
 
 Point3D ()
 
VectorType & pos ()
 
const VectorType & pos () const
 
const VectorType & rgb () const
 
void set_normal (const VectorType &normal)
 
void set_rgb (const VectorType &rgb)
 
Scalar & x ()
 
Scalar x () const
 
Scalar & y ()
 
Scalar y () const
 
Scalar & z ()
 
Scalar z () const
 
- Public Member Functions inherited from gr::PointConcept
 PointConcept (const ExternalPoint &)
 Constructor using external point type that is wrapped. More...
 
const VectorType & pos () const
 Read access to the position property. More...
 

Detailed Description

template<typename _Scalar>
class gr::Point3D< _Scalar >

The basic 3D point structure. A point potentially contains also directional information and color.

Member Typedef Documentation

template<typename _Scalar >
using gr::Point3D< _Scalar >::Scalar = _Scalar
template<typename _Scalar >
using gr::Point3D< _Scalar >::VectorType = Eigen::Matrix<Scalar, 3, 1>

Constructor & Destructor Documentation

template<typename _Scalar >
gr::Point3D< _Scalar >::Point3D ( Scalar  x,
Scalar  y,
Scalar  z 
)
inline
template<typename _Scalar >
gr::Point3D< _Scalar >::Point3D ( const Point3D< _Scalar > &  other)
inline

+ Here is the call graph for this function:

template<typename _Scalar >
template<typename Scalar >
gr::Point3D< _Scalar >::Point3D ( const Eigen::Matrix< Scalar, 3, 1 > &  other)
inlineexplicit

+ Here is the call graph for this function:

template<typename _Scalar >
gr::Point3D< _Scalar >::Point3D ( )
inline

Member Function Documentation

template<typename _Scalar >
bool gr::Point3D< _Scalar >::hasColor ( ) const
inline
template<typename _Scalar >
const VectorType& gr::Point3D< _Scalar >::normal ( ) const
inline
template<typename _Scalar >
void gr::Point3D< _Scalar >::normalize ( )
inline
template<typename _Scalar >
VectorType& gr::Point3D< _Scalar >::pos ( )
inline
template<typename _Scalar >
const VectorType& gr::Point3D< _Scalar >::pos ( ) const
inline
template<typename _Scalar >
const VectorType& gr::Point3D< _Scalar >::rgb ( ) const
inline
template<typename _Scalar >
void gr::Point3D< _Scalar >::set_normal ( const VectorType &  normal)
inline
template<typename _Scalar >
void gr::Point3D< _Scalar >::set_rgb ( const VectorType &  rgb)
inline
template<typename _Scalar >
Scalar& gr::Point3D< _Scalar >::x ( )
inline
template<typename _Scalar >
Scalar gr::Point3D< _Scalar >::x ( ) const
inline
template<typename _Scalar >
Scalar& gr::Point3D< _Scalar >::y ( )
inline
template<typename _Scalar >
Scalar gr::Point3D< _Scalar >::y ( ) const
inline
template<typename _Scalar >
Scalar& gr::Point3D< _Scalar >::z ( )
inline
template<typename _Scalar >
Scalar gr::Point3D< _Scalar >::z ( ) const
inline

The documentation for this class was generated from the following file:
  • /home/travis/build/STORM-IRIT/OpenGR/src/gr/utils/shared.h