LTI-Lib latest version v1.9 - last update 10 Apr 2010

lti::draw3D< T >::triangle Class Reference

Triangle is the base for all other polygons. More...

#include <ltiDraw3D.h>

Collaboration diagram for lti::draw3D< T >::triangle:
Collaboration graph
[legend]

List of all members.

Public Member Functions

 triangle ()
dpoint3Doperator[] (const int idx)
const dpoint3Doperator[] (const int idx) const
dpoint3D getNormal () const
bool visible (const hmatrix &cam) const

Protected Attributes

dpoint3D pts [3]

Detailed Description

template<class T>
class lti::draw3D< T >::triangle

Triangle is the base for all other polygons.

It is assumed, that the points are given in a "right system", to define the normal of the triangle. The color of the hidden face of the triangle can be specified at construct time.


Constructor & Destructor Documentation

template<class T>
lti::draw3D< T >::triangle::triangle (  )  [inline]

default constructor


Member Function Documentation

template<class T>
dpoint3D lti::draw3D< T >::triangle::getNormal (  )  const [inline]
template<class T>
const dpoint3D& lti::draw3D< T >::triangle::operator[] ( const int  idx  )  const [inline]

Access operator to the three points.

References lti::draw3D< T >::triangle::pts.

template<class T>
dpoint3D& lti::draw3D< T >::triangle::operator[] ( const int  idx  )  [inline]

Access operator to the three points.

References lti::draw3D< T >::triangle::pts.

template<class T>
bool lti::draw3D< T >::triangle::visible ( const hmatrix cam  )  const [inline]

returns true if the triangle "positive" face is visible for the given camera configuration

References lti::draw3D< T >::hmatrix::at(), lti::draw3D< T >::triangle::getNormal(), lti::tpoint3D< T >::x, lti::tpoint3D< T >::y, and lti::tpoint3D< T >::z.


Member Data Documentation

template<class T>
dpoint3D lti::draw3D< T >::triangle::pts[3] [protected]

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

Generated on Sat Apr 10 15:27:14 2010 for LTI-Lib by Doxygen 1.6.1