MIRA
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
Public Types | Public Member Functions | Static Public Member Functions | Protected Attributes | List of all members
Point< T, 3 > Class Template Reference

Specialization of Point for 3 dimensions with specialized constructors and converters. More...

#include <geometry/Point.h>

Inheritance diagram for Point< T, 3 >:
Inheritance graph
[legend]

Public Types

enum  
 
typedef T Type
 
typedef class Eigen::Map
< Matrix, Aligned > 
AlignedMapType
 
typedef class Eigen::Map
< Matrix, Unaligned > 
UnalignedMapType
 

Public Member Functions

 Point ()
 Default-constructor. More...
 
 Point (T x, T y, T z)
 Creates point from its three coordinates. More...
 
template<typename DerivedMatrix >
 Point (const Eigen::MatrixBase< DerivedMatrix > &other)
 Creates Point from Eigen matrix. More...
 
 Point (const boost::geometry::model::point< T, 3, boost::geometry::cs::cartesian > &other)
 Creates Point from boost::geometry::point. More...
 
 Point (const cv::Point3_< T > &other)
 Creates Point from OpenCV point. More...
 
Pointoperator= (const cv::Point3_< T > &other)
 converts from OpenCV point More...
 
 operator cv::Point3_< T > () const
 converts to OpenCV point More...
 
template<typename Reflector >
void reflect (Reflector &reflector)
 the reflect method for 3D point serialization More...
 
 operator boost::geometry::model::point< T, D, boost::geometry::cs::cartesian > () const
 converts to native boost::geometry::point More...
 
const Basebase () const
 
Basebase ()
 
const Scalar & coeff (int index) const
 
const Scalar & coeff (int row, int col) const
 
Scalar & coeffRef (int index)
 
Scalar & coeffRef (int row, int col)
 
int cols () const
 
Scalar * data ()
 
const Scalar * data () const
 
PacketScalar packet (int index) const
 
PacketScalar packet (int row, int col) const
 
void resize (int size)
 
void resize (int rows, int cols)
 
int rows () const
 
MatrixsetConstant (int rows, int cols, const Scalar &value)
 
MatrixsetConstant (int size, const Scalar &value)
 
MatrixsetIdentity (int rows, int cols)
 
MatrixsetOnes (int rows, int cols)
 
MatrixsetOnes (int size)
 
MatrixsetRandom (int rows, int cols)
 
MatrixsetRandom (int size)
 
MatrixsetZero (int rows, int cols)
 
MatrixsetZero (int size)
 
int stride (void) const
 
void swap (const MatrixBase< OtherDerived > &other)
 
void writePacket (int index, const PacketScalar &x)
 
void writePacket (int row, int col, const PacketScalar &x)
 

Static Public Member Functions

static UnalignedMapType Map (Scalar *data, int rows, int cols)
 
static const UnalignedMapType Map (const Scalar *data, int rows, int cols)
 
static UnalignedMapType Map (Scalar *data, int size)
 
static const UnalignedMapType Map (const Scalar *data, int size)
 
static UnalignedMapType Map (Scalar *data)
 
static const UnalignedMapType Map (const Scalar *data)
 
static AlignedMapType MapAligned (Scalar *data, int rows, int cols)
 
static const AlignedMapType MapAligned (const Scalar *data, int rows, int cols)
 
static AlignedMapType MapAligned (Scalar *data, int size)
 
static const AlignedMapType MapAligned (const Scalar *data, int size)
 
static AlignedMapType MapAligned (Scalar *data)
 
static const AlignedMapType MapAligned (const Scalar *data)
 

Protected Attributes

ei_matrix_storage< Scalar,
MaxSizeAtCompileTime,
RowsAtCompileTime,
ColsAtCompileTime, Options > 
m_storage
 

Detailed Description

template<typename T>
class mira::Point< T, 3 >

Specialization of Point for 3 dimensions with specialized constructors and converters.

Member Typedef Documentation

typedef T Type
inherited
typedef class Eigen::Map< Matrix, Aligned > AlignedMapType
inherited
typedef class Eigen::Map< Matrix, Unaligned > UnalignedMapType
inherited

Member Enumeration Documentation

anonymous enum
inherited

Constructor & Destructor Documentation

Point ( )
inline

Default-constructor.

Point ( x,
y,
z 
)
inline

Creates point from its three coordinates.

Point ( const Eigen::MatrixBase< DerivedMatrix > &  other)
inline

Creates Point from Eigen matrix.

Point ( const boost::geometry::model::point< T, 3, boost::geometry::cs::cartesian > &  other)
inline

Creates Point from boost::geometry::point.

Point ( const cv::Point3_< T > &  other)
inlineexplicit

Creates Point from OpenCV point.

Member Function Documentation

Point& operator= ( const cv::Point3_< T > &  other)
inline

converts from OpenCV point

operator cv::Point3_< T > ( ) const
inline

converts to OpenCV point

void reflect ( Reflector &  reflector)
inline

the reflect method for 3D point serialization

operator boost::geometry::model::point< T, D, boost::geometry::cs::cartesian > ( ) const
inlineinherited

converts to native boost::geometry::point

const Base & base ( ) const
inherited
Base & base ( )
inherited
const Scalar & coeff ( int  index) const
inherited
const Scalar & coeff ( int  row,
int  col 
) const
inherited
Scalar & coeffRef ( int  index)
inherited
Scalar & coeffRef ( int  row,
int  col 
)
inherited
int cols ( ) const
inherited
Scalar * data ( )
inherited
const Scalar * data ( ) const
inherited
PacketScalar packet ( int  index) const
inherited
PacketScalar packet ( int  row,
int  col 
) const
inherited
void resize ( int  size)
inherited
void resize ( int  rows,
int  cols 
)
inherited
int rows ( ) const
inherited
Matrix & setConstant ( int  rows,
int  cols,
const Scalar &  value 
)
inherited
Matrix & setConstant ( int  size,
const Scalar &  value 
)
inherited
Matrix & setIdentity ( int  rows,
int  cols 
)
inherited
Matrix & setOnes ( int  rows,
int  cols 
)
inherited
Matrix & setOnes ( int  size)
inherited
Matrix & setRandom ( int  rows,
int  cols 
)
inherited
Matrix & setRandom ( int  size)
inherited
Matrix & setZero ( int  rows,
int  cols 
)
inherited
Matrix & setZero ( int  size)
inherited
int stride ( void  ) const
inherited
void swap ( const MatrixBase< OtherDerived > &  other)
inherited
void writePacket ( int  index,
const PacketScalar &  x 
)
inherited
void writePacket ( int  row,
int  col,
const PacketScalar &  x 
)
inherited
static UnalignedMapType Map ( Scalar *  data,
int  rows,
int  cols 
)
staticinherited
static const UnalignedMapType Map ( const Scalar *  data,
int  rows,
int  cols 
)
staticinherited
static UnalignedMapType Map ( Scalar *  data,
int  size 
)
staticinherited
static const UnalignedMapType Map ( const Scalar *  data,
int  size 
)
staticinherited
static UnalignedMapType Map ( Scalar *  data)
staticinherited
static const UnalignedMapType Map ( const Scalar *  data)
staticinherited
static AlignedMapType MapAligned ( Scalar *  data,
int  rows,
int  cols 
)
staticinherited
static const AlignedMapType MapAligned ( const Scalar *  data,
int  rows,
int  cols 
)
staticinherited
static AlignedMapType MapAligned ( Scalar *  data,
int  size 
)
staticinherited
static const AlignedMapType MapAligned ( const Scalar *  data,
int  size 
)
staticinherited
static AlignedMapType MapAligned ( Scalar *  data)
staticinherited
static const AlignedMapType MapAligned ( const Scalar *  data)
staticinherited

Member Data Documentation

ei_matrix_storage< Scalar, MaxSizeAtCompileTime, RowsAtCompileTime, ColsAtCompileTime, Options > m_storage
protectedinherited

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