Main Page | Class Hierarchy | Class List | File List | Class Members

PLib::RenderMeshPS< T > Class Template Reference

a mesh renderer for PS files More...

#include <nurbsSub.h>

Inheritance diagram for PLib::RenderMeshPS< T >:

PLib::RenderMesh< T > List of all members.

Public Member Functions

 RenderMeshPS (ostream &os)
virtual void drawHeader ()
virtual void drawTriangle (const SurfSample< T > &v0, const SurfSample< T > &v1, const SurfSample< T > &v2)
void drawLine (const SurfSample< T > &v0, const SurfSample< T > &v1)
virtual void drawFooter ()
virtual void screenProject (const HPoint_nD< T, 3 > &worldPt, Point_nD< T, 3 > &screenPt)

Protected Attributes

ostream & out

Detailed Description

template<class T>
class PLib::RenderMeshPS< T >

a mesh renderer for PS files

Author:
Philippe Lavoie
Date:
20 January, 1999


Member Function Documentation

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

write the footer of a PS file

Author:
Philippe Lavoie
Date:
20 January 1999

Implements PLib::RenderMesh< T >.

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

write the header of a PS file

Author:
Philippe Lavoie
Date:
20 January 1999

Implements PLib::RenderMesh< T >.

template<class T>
void PLib::RenderMeshPS< T >::drawLine const SurfSample< T > &  v0,
const SurfSample< T > &  v1
 

Draw a line.

Parameters:
v0 
v1 
Author:
Philippe Lavoie
Date:
18 may 1999

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

Draw a triangle.

Parameters:
v0 
v1 
v2 
Author:
Philippe Lavoie
Date:
20 January 1999

Implements PLib::RenderMesh< T >.

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

projects from world to screen coordinates

A Post Script point is the projection of the point from the homogenous space to the 2D paper surface with the axis multiplied by 100 and with an offset of 200.

There is no perspective projection performed.

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

Implements PLib::RenderMesh< T >.


The documentation for this class was generated from the following files:
Generated on Mon Dec 29 08:25:26 2003 for NURBS++ by doxygen 1.3.4