Main Page   Class Hierarchy   Compound List   File List   Compound Members  

PLib::RenderMeshPS Class Template Reference

a mesh renderer for PS files. More...

#include <nurbsSub.hh>

Inheritance diagram for PLib::RenderMeshPS::

PLib::RenderMesh List of all members.

Public Methods

 RenderMeshPS (ostream &os)
virtual ~RenderMeshPS ()
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

Reimplemented from PLib::RenderMesh.

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

write the header of a PS file.

Author:
Philippe Lavoie
Date:
20 January 1999

Reimplemented from PLib::RenderMesh.

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

Reimplemented from PLib::RenderMesh.

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

Reimplemented from PLib::RenderMesh.


The documentation for this class was generated from the following files:
Generated on Sun Jan 27 00:50:48 2002 for NURBS++ by doxygen1.2.11.1 written by Dimitri van Heesch, © 1997-2001