Main Page   Packages   Namespace List   Class Hierarchy   Alphabetical List   Compound List   File List   Compound Members   File Members   Search  

normalVertex Class Reference

#include <jtriangle.hpp>

List of all members.

Public Methods

 normalVertex ()
 normalVertex (const normalVertex &obj)
void draw ()
void tform ()

Public Attributes

vect3f pos
vect3f normal
vect3f color


Constructor & Destructor Documentation

normalVertex::normalVertex   [inline]
 

Definition at line 78 of file jtriangle.hpp.

00079    {
00080       color(1,1,1);
00081    }

normalVertex::normalVertex const normalVertex &    obj [inline]
 

Definition at line 83 of file jtriangle.hpp.

00084    {
00085       color = obj.color;
00086       normal = obj.normal;
00087       pos = obj.pos;
00088    }


Member Function Documentation

void normalVertex::draw   [inline]
 

Definition at line 92 of file jtriangle.hpp.

Referenced by triangle::draw(), triangle::drawmesh(), and triangle::drawnormals().

00093    {
00094       glColor3fv(color.v);
00095       glNormal3fv(normal.v);
00096       glVertex3fv(pos.v);
00097    }

void normalVertex::tform   [inline]
 

Definition at line 99 of file jtriangle.hpp.

Referenced by triangle::draw(), triangle::drawmesh(), triangle::drawnormals(), and triangle::tform().

00100    {
00101       normal += pos;
00102       mstack.tform(normal);
00103       mstack.tform(pos);
00104       normal -= pos;
00105    }


Member Data Documentation

vect3f normalVertex::color
 

Definition at line 76 of file jtriangle.hpp.

Referenced by normalVertex().

vect3f normalVertex::normal
 

Definition at line 75 of file jtriangle.hpp.

Referenced by triangle::drawnormals(), normalVertex(), and triangle::syncnormals().

vect3f normalVertex::pos
 

Definition at line 74 of file jtriangle.hpp.

Referenced by triangle::drawnormals(), normalVertex(), and triangle::normalize().


The documentation for this class was generated from the following file:
Generated on Sun Oct 14 18:49:26 2001 for Standard J2K Library by doxygen1.2.11.1 written by Dimitri van Heesch, © 1997-2001