Main MRPT website > C++ reference
MRPT logo
Public Member Functions | Public Attributes | Private Member Functions
mrpt::opengl::CGeneralizedCylinder::TQuadrilateral Struct Reference

Detailed Description

Auxiliary struct holding any quadrilateral, represented by foour points.

#include <mrpt/opengl/CGeneralizedCylinder.h>

List of all members.

Public Member Functions

void getAsPolygonUnsafe (mrpt::math::TPolygon3D &vec) const
 Given a polygon with 4 already positions allocated, this method fills it with the quadrilateral points.
 TQuadrilateral (const TPoint3D &p1, const TPoint3D &p2, const TPoint3D &p3, const TPoint3D &p4)
 Constructor from 4 points.
template<class T >
 TQuadrilateral (const T(&p)[4])
 Construction from any array of four compatible objects.
 TQuadrilateral ()
 Empty constructor.
 ~TQuadrilateral ()
 Destructor.

Public Attributes

TPoint3D points [4]
 Quadrilateral`'s points.
double normal [3]
 Normal vector.

Private Member Functions

void calculateNormal ()
 Automatically compute a vector normal to this quadrilateral.

Constructor & Destructor Documentation

mrpt::opengl::CGeneralizedCylinder::TQuadrilateral::TQuadrilateral ( const TPoint3D p1,
const TPoint3D p2,
const TPoint3D p3,
const TPoint3D p4 
) [inline]

Constructor from 4 points.

Definition at line 82 of file CGeneralizedCylinder.h.

template<class T >
mrpt::opengl::CGeneralizedCylinder::TQuadrilateral::TQuadrilateral ( const T(&)  p[4]) [inline]

Construction from any array of four compatible objects.

Definition at line 92 of file CGeneralizedCylinder.h.

mrpt::opengl::CGeneralizedCylinder::TQuadrilateral::TQuadrilateral ( ) [inline]

Empty constructor.

Initializes to garbage.

Definition at line 99 of file CGeneralizedCylinder.h.

mrpt::opengl::CGeneralizedCylinder::TQuadrilateral::~TQuadrilateral ( ) [inline]

Destructor.

Definition at line 103 of file CGeneralizedCylinder.h.


Member Function Documentation

void mrpt::opengl::CGeneralizedCylinder::TQuadrilateral::calculateNormal ( ) [private]

Automatically compute a vector normal to this quadrilateral.

void mrpt::opengl::CGeneralizedCylinder::TQuadrilateral::getAsPolygonUnsafe ( mrpt::math::TPolygon3D vec) const [inline]

Given a polygon with 4 already positions allocated, this method fills it with the quadrilateral points.

See also:
mrpt::math::TPolygon3D

Definition at line 73 of file CGeneralizedCylinder.h.


Member Data Documentation

Normal vector.

Definition at line 68 of file CGeneralizedCylinder.h.

Quadrilateral`'s points.

Definition at line 64 of file CGeneralizedCylinder.h.




Page generated by Doxygen 1.7.5 for MRPT 0.9.5 SVN: at Thu Oct 13 21:25:36 UTC 2011