Main Page   Class Hierarchy   Compound List   File List   Compound Members  

PLib::RenderMeshVRML Class Template Reference

a mesh renderer for VRML files. More...

#include <nurbsSub.h>

Inheritance diagram for PLib::RenderMeshVRML:

PLib::RenderMesh List of all members.

Public Methods

 RenderMeshVRML (ostream &os, const Color &col)
virtual ~RenderMeshVRML ()
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

int size
ostream & out
Color color

Detailed Description

template<class T>
class PLib::RenderMeshVRML< T >

a mesh renderer for VRML files.

Author:
Philippe Lavoie
Date:
20 January, 1999

Definition at line 170 of file nurbsSub.h.


Member Function Documentation

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

write the footer information for a VRML file.

Write the footer information for a VRML file

Author:
Philippe Lavoie
Date:
20 January 1999

Implements PLib::RenderMesh.

Definition at line 613 of file nurbsSub.cpp.

References drawFooter.

Referenced by drawFooter.

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

write the header information for a VRML file.

Author:
Philippe Lavoie
Date:
20 January 1999

Implements PLib::RenderMesh.

Definition at line 593 of file nurbsSub.cpp.

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

draws the triangle.

This function draws the triangle points to the ostream.

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 644 of file nurbsSub.cpp.

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

projects from world to screen coordinates.

In the case of a VRML file, 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 VRML coordinate
Author:
Philippe Lavoie
Date:
20 January 1999

Implements PLib::RenderMesh.

Definition at line 382 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