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.

Definition at line 53 of file CGeneralizedCylinder.h.

#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 81 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 91 of file CGeneralizedCylinder.h.

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

Empty constructor.

Initializes to garbage.

Definition at line 98 of file CGeneralizedCylinder.h.

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

Destructor.

Definition at line 102 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 72 of file CGeneralizedCylinder.h.


Member Data Documentation

Normal vector.

Definition at line 67 of file CGeneralizedCylinder.h.

Quadrilateral`'s points.

Definition at line 63 of file CGeneralizedCylinder.h.




Page generated by Doxygen 1.7.1 for MRPT 0.9.4 SVN: at Mon Jan 10 23:33:19 UTC 2011