Main Page   Class Hierarchy   Compound List   File List   Compound Members  

PLib::RenderMeshPoints Class Template Reference

a mesh renderer to a vector of points. More...

#include <nurbsSub.h>

Inheritance diagram for PLib::RenderMeshPoints:

PLib::RenderMesh List of all members.

Public Methods

 RenderMeshPoints (BasicArray< Point_nD< T, 3 > > &pts)
virtual ~RenderMeshPoints ()
virtual void drawHeader ()
virtual void drawTriangle (const SurfSample< T > &v0, const SurfSample< T > &v1, const SurfSample< T > &v2)
virtual void drawFooter ()
virtual void screenProject (const HPoint_nD< T, 3 > &worldPt, Point_nD< T, 3 > &screenPt)

Protected Attributes

BasicArray< Point_nD< T, 3 > > & points

Detailed Description

template<class T>
class PLib::RenderMeshPoints< T >

a mesh renderer to a vector of points.

The triangle points are written the the vector specified in the constructor call. The points composing the triangle n are at 3n, 3n+1 and 3n+2 in the vector.

Author:
Philippe Lavoie
Date:
20 January, 1999

Definition at line 219 of file nurbsSub.h.


Member Function Documentation

template<class T>
void PLib::RenderMeshPoints< T >::drawFooter   [virtual]
 

empty function.

Author:
Philippe Lavoie
Date:
20 January 1999

Implements PLib::RenderMesh.

Definition at line 695 of file nurbsSub.cpp.

template<class T>
void PLib::RenderMeshPoints< T >::drawHeader   [virtual]
 

write the header information for a mesh file.

Author:
Philippe Lavoie
Date:
20 January 1999

Implements PLib::RenderMesh.

Definition at line 682 of file nurbsSub.cpp.

template<class T>
void PLib::RenderMeshPoints< T >::drawTriangle const SurfSample< T > &    v0,
const SurfSample< T > &    v1,
const SurfSample< T > &    v2
[virtual]
 

draws the triangle.

Adds the triangle points to the point vector.

Parameters:
v0  a corner point of the triangle
v1  a corner point of the triangle
v2  a corner point of the triangle
Author:
Philippe Lavoie
Date:
20 January 1999

Implements PLib::RenderMesh.

Definition at line 712 of file nurbsSub.cpp.

template<class T>
void PLib::RenderMeshPoints< T >::screenProject const HPoint_nD< T, 3 > &    worldPt,
Point_nD< T, 3 > &    screenPt
[virtual]
 

projects from world to screen coordinates.

The world and screen coordinate are the same. Except that one is in homogenous space and the other in normal space.

Parameters:
worldPt  the point in world coordinate
screenPt  the point in the normal space
Author:
Philippe Lavoie
Date:
20 January 1999

Implements PLib::RenderMesh.

Definition at line 430 of file nurbsSub.cpp.


The documentation for this class was generated from the following files:
Generated on Tue Jun 24 13:27:01 2003 for NURBS++ by doxygen1.2.14 written by Dimitri van Heesch, © 1997-2002