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

Teddy::Models::QuadStrip Class Reference

Q uadStrip Element builds up a quad strip from its vertices. More...

#include <QuadStrip.h>

Inheritance diagram for Teddy::Models::QuadStrip:

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

Collaboration graph
[legend]
List of all members.

Public Methods

 QuadStrip ()
 Default constructor. More...

virtual ~QuadStrip ()
 Destructor. More...

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

virtual void reverse ()
virtual void makeNormal ()
virtual unsigned long countCSGFaceElements ()

Protected Attributes

list< Vector * > normals

Detailed Description

Q uadStrip Element builds up a quad strip from its vertices.

Definition at line 41 of file QuadStrip.h.


Constructor & Destructor Documentation

Teddy::Models::QuadStrip::QuadStrip  
 

Default constructor.

Definition at line 38 of file QuadStrip.cpp.

Teddy::Models::QuadStrip::~QuadStrip   [virtual]
 

Destructor.

Definition at line 43 of file QuadStrip.cpp.


Member Function Documentation

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

Definition at line 170 of file QuadStrip.cpp.

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

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

Draw QuadStrip.

Implements Teddy::Models::Element.

Definition at line 49 of file QuadStrip.cpp.

References Teddy::SysSupport::dmsg, Teddy::Models::Element::EL_HAS_ELEMENT_NORMAL, Teddy::Models::Element::EL_USE_ELEMENT_NORMAL, Teddy::MixIn::Options::isEnabled, Teddy::SysSupport::M_VERT, Teddy::Models::Element::normal, and Teddy::Models::Element::vertices.

void Teddy::Models::QuadStrip::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 83 of file QuadStrip.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.

void Teddy::Models::QuadStrip::reverse   [virtual]
 

Reverse order of vertices in Face. Remember to update normal as well if needed - that is not done by this.

Reimplemented from Teddy::Models::Element.

Definition at line 130 of file QuadStrip.cpp.

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


Member Data Documentation

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

Definition at line 55 of file QuadStrip.h.

Referenced by makeNormal.


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