Main Page   Class Hierarchy   Alphabetical List   Compound List   File List   Compound Members   File Members  

X11Renderer Class Reference

#include <X11Renderer.h>

Inheritance diagram for X11Renderer::

Renderer List of all members.

Public Methods

 X11Renderer (char *title, int xLoc, int yLoc, int width, int height, ColorMap &theMap)
 X11Renderer (char *title, int xLoc, int yLoc, int width, int height, ColorMap &theMap, char *fileName)
virtual ~X11Renderer ()
virtual int clearImage (void)
 method to clear the current image. More...

virtual int startImage (void)
 methods to be invoked when image processing is to start or is finished. More...

virtual int doneImage (void)
virtual int drawPoint (const Vector &, float V1, int width=1)
 methods invoked by the objects to display themselves. More...

virtual int drawPoint (const Vector &, const Vector &rgb1, int width=1)
virtual int drawLine (const Vector &, const Vector &, float V1, float V2, int width=1, int style=1)
virtual int drawLine (const Vector &end1, const Vector &end2, const Vector &rgb1, const Vector &rgb2, int width=1, int style=1)
virtual int drawPolygon (const Matrix &points, const Vector &values)
virtual int drawPolygon (const Matrix &points, const Matrix &rgbValues)
virtual int setVRP (float x, float y, float z)
 the following are in world coordinates & define view coord system. More...

virtual int setVPN (float x, float y, float z)
 point on view plane. More...

virtual int setVUP (float x, float y, float z)
 view plane normal. More...

virtual int setViewWindow (float, float, float, float)
 the following are in view coordinates. More...

virtual int setPlaneDist (float, float)
 umin, umax, vmin, vmax. More...

virtual int setProjectionMode (char *mode)
 near and far clipping planes. More...

virtual int setFillMode (char *)
 parallel or perspective. More...

virtual int setPRP (float u, float v, float n)
 1 = wire, otherwise fill. More...

virtual int setPortWindow (float, float, float, float)
 the following are in normalized coordinates. More...

virtual int drawText (const Vector &posGlobal, char *string, int length, char horizontalJustify='l', char verticalJustify='b')
 left, right, bottom, top [-1,1,-1,1]. More...


Protected Methods

int displayFace (FACE &)

Protected Attributes

View* theView
Projection* theProjection
Clipping* theClipping
Viewport* theViewport
ScanLineConverter* theScan
Device* theDevice

Constructor & Destructor Documentation

X11Renderer::X11Renderer ( char * title,
int xLoc,
int yLoc,
int width,
int height,
ColorMap & theMap )
 

Definition at line 57 of file X11Renderer.cpp.

X11Renderer::X11Renderer ( char * title,
int xLoc,
int yLoc,
int width,
int height,
ColorMap & theMap,
char * fileName )
 

Definition at line 79 of file X11Renderer.cpp.

X11Renderer::~X11Renderer ( ) [virtual]
 

Definition at line 118 of file X11Renderer.cpp.


Member Function Documentation

int X11Renderer::clearImage ( void ) [virtual]
 

method to clear the current image.

Reimplemented from Renderer.

Definition at line 133 of file X11Renderer.cpp.

int X11Renderer::displayFace ( FACE & theFace ) [protected]
 

Definition at line 571 of file X11Renderer.cpp.

int X11Renderer::doneImage ( void ) [virtual]
 

Invoked at the end of {displayModel()}, when the image is finished and ready to be displayed.

Reimplemented from Renderer.

Definition at line 168 of file X11Renderer.cpp.

int X11Renderer::drawLine ( const Vector & end1,
const Vector & end2,
const Vector & rgb1,
const Vector & rgb2,
int width = 1,
int style = 1 ) [virtual]
 

Reimplemented from Renderer.

Definition at line 295 of file X11Renderer.cpp.

int X11Renderer::drawLine ( const Vector & pos1,
const Vector & pos2,
float V1,
float V2,
int width = 1,
int style = 1 ) [virtual]
 

Reimplemented from Renderer.

Definition at line 216 of file X11Renderer.cpp.

int X11Renderer::drawPoint ( const Vector & pos1,
const Vector & rgb1,
int width = 1 ) [virtual]
 

Reimplemented from Renderer.

Definition at line 197 of file X11Renderer.cpp.

int X11Renderer::drawPoint ( const Vector & pos1,
float V1,
int width = 1 ) [virtual]
 

methods invoked by the objects to display themselves.

Reimplemented from Renderer.

Definition at line 180 of file X11Renderer.cpp.

int X11Renderer::drawPolygon ( const Matrix & points,
const Matrix & rgbValues ) [virtual]
 

Reimplemented from Renderer.

Definition at line 438 of file X11Renderer.cpp.

int X11Renderer::drawPolygon ( const Matrix & points,
const Vector & values ) [virtual]
 

Reimplemented from Renderer.

Definition at line 379 of file X11Renderer.cpp.

int X11Renderer::drawText ( const Vector & posGlobal,
char * string,
int length,
char horizontalJustify = 'l',
char verticalJustify = 'b' ) [virtual]
 

left, right, bottom, top [-1,1,-1,1].

Reimplemented from Renderer.

Definition at line 496 of file X11Renderer.cpp.

int X11Renderer::setFillMode ( char * newMode ) [virtual]
 

parallel or perspective.

Reimplemented from Renderer.

Definition at line 665 of file X11Renderer.cpp.

int X11Renderer::setPRP ( float u,
float v,
float n ) [virtual]
 

1 = wire, otherwise fill.

Reimplemented from Renderer.

Definition at line 679 of file X11Renderer.cpp.

int X11Renderer::setPlaneDist ( float anear,
float afar ) [virtual]
 

umin, umax, vmin, vmax.

Reimplemented from Renderer.

Definition at line 637 of file X11Renderer.cpp.

int X11Renderer::setPortWindow ( float left,
float right,
float bottom,
float top ) [virtual]
 

the following are in normalized coordinates.

Reimplemented from Renderer.

Definition at line 688 of file X11Renderer.cpp.

int X11Renderer::setProjectionMode ( char * mode ) [virtual]
 

near and far clipping planes.

Reimplemented from Renderer.

Definition at line 653 of file X11Renderer.cpp.

int X11Renderer::setVPN ( float x,
float y,
float z ) [virtual]
 

point on view plane.

Reimplemented from Renderer.

Definition at line 600 of file X11Renderer.cpp.

int X11Renderer::setVRP ( float x,
float y,
float z ) [virtual]
 

the following are in world coordinates & define view coord system.

Reimplemented from Renderer.

Definition at line 590 of file X11Renderer.cpp.

int X11Renderer::setVUP ( float x,
float y,
float z ) [virtual]
 

view plane normal.

Reimplemented from Renderer.

Definition at line 610 of file X11Renderer.cpp.

int X11Renderer::setViewWindow ( float umin,
float umax,
float vmin,
float vmax ) [virtual]
 

the following are in view coordinates.

Reimplemented from Renderer.

Definition at line 620 of file X11Renderer.cpp.

int X11Renderer::startImage ( void ) [virtual]
 

methods to be invoked when image processing is to start or is finished.

Reimplemented from Renderer.

Definition at line 140 of file X11Renderer.cpp.


Member Data Documentation

Clipping * X11Renderer::theClipping [protected]
 

Definition at line 132 of file X11Renderer.h.

Device * X11Renderer::theDevice [protected]
 

Definition at line 138 of file X11Renderer.h.

Projection * X11Renderer::theProjection [protected]
 

Definition at line 130 of file X11Renderer.h.

ScanLineConverter * X11Renderer::theScan [protected]
 

Definition at line 136 of file X11Renderer.h.

View * X11Renderer::theView [protected]
 

Definition at line 128 of file X11Renderer.h.

Viewport * X11Renderer::theViewport [protected]
 

Definition at line 134 of file X11Renderer.h.


The documentation for this class was generated from the following files:
Copyright Contact Us