Main Page   Namespace List   Class Hierarchy   Alphabetical List   Compound List   File List   Namespace Members   Compound Members   File Members   Related Pages  

Teddy::Models::TriangleStrip Class Reference

#include <TriangleStrip.h>

Inheritance diagram for Teddy::Models::TriangleStrip:

Inheritance graph
[legend]
Collaboration diagram for Teddy::Models::TriangleStrip:

Collaboration graph
[legend]
List of all members.

Public Methods

 TriangleStrip ()
 Constructor. More...

virtual ~TriangleStrip ()
 Destructor. More...

virtual void draw (Projection *p)
 Draw TriangleStrip. More...

virtual void makeNormal ()
virtual unsigned long countCSGFaceElements ()

Protected Attributes

list< Vector * > normals

Constructor & Destructor Documentation

Teddy::Models::TriangleStrip::TriangleStrip  
 

Constructor.

Definition at line 38 of file TriangleStrip.cpp.

Teddy::Models::TriangleStrip::~TriangleStrip   [virtual]
 

Destructor.

Definition at line 43 of file TriangleStrip.cpp.


Member Function Documentation

unsigned long Teddy::Models::TriangleStrip::countCSGFaceElements   [virtual]
 

Definition at line 182 of file TriangleStrip.cpp.

References Teddy::Models::Element::vertices.

void Teddy::Models::TriangleStrip::draw Projection *    p [virtual]
 

Draw TriangleStrip.

Implements Teddy::Models::Element.

Definition at line 49 of file TriangleStrip.cpp.

References Teddy::SysSupport::dmsg, Teddy::SysSupport::dprint, Teddy::Models::Element::EL_HAS_ELEMENT_NORMAL, Teddy::Models::Element::EL_USE_ELEMENT_NORMAL, Teddy::MixIn::Options::isEnabled, Teddy::SysSupport::M_INIT, Teddy::SysSupport::M_WARN, Teddy::Models::Element::normal, normals, Vector, and Teddy::Models::Element::vertices.

void Teddy::Models::TriangleStrip::makeNormal   [virtual]
 

Calculate a normal for Element. This requires at least three vertices, and the vertices must not be on a single line.

Reimplemented from Teddy::Models::Element.

Definition at line 99 of file TriangleStrip.cpp.

References Teddy::SysSupport::dmsg, Teddy::Models::Element::EL_HAS_ELEMENT_NORMAL, Teddy::Models::Element::EL_USE_ELEMENT_NORMAL, Teddy::MixIn::Options::enable, Teddy::SysSupport::M_WARN, Teddy::Models::Element::normal, normals, Vector, and Teddy::Models::Element::vertices.


Member Data Documentation

list<Vector*> Teddy::Models::TriangleStrip::normals [protected]
 

Definition at line 53 of file TriangleStrip.h.

Referenced by draw, and makeNormal.


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