Main Page Class Hierarchy Alphabetical List Compound List File List Compound Members File Members
Renderer Class Reference#include <Renderer.h>
Inheritance diagram for Renderer::
List of all members.
Public Methods |
| Renderer (ColorMap &theMap) |
virtual | ~Renderer () |
void | setColorMap (ColorMap &theMap) |
| method to set the color map. More...
|
virtual int | clearImage (void)=0 |
| method to clear the current image. More...
|
virtual int | startImage (void)=0 |
| methods to be invoked when image processing is to start or is finished. More...
|
virtual int | doneImage (void)=0 |
virtual int | drawPoint (const Vector &, float V1, int width=1)=0 |
| methods invoked by the objects to display themselves. More...
|
virtual int | drawPoint (const Vector &, const Vector &rgb1, int width=1)=0 |
virtual int | drawLine (const Vector &, const Vector &, float V1, float V2, int width=1, int style=1)=0 |
virtual int | drawLine (const Vector &end1, const Vector &end2, const Vector &rgb1, const Vector &rgb2, int width=1, int style=1)=0 |
virtual int | drawPolygon (const Matrix &points, const Vector &values)=0 |
virtual int | drawPolygon (const Matrix &points, const Matrix &rgbValues)=0 |
virtual int | drawVector (const Vector &position, const Vector &value, double factor) |
virtual int | drawText (const Vector &posGlobal, char *string, int length, char horizontalJustify='l', char verticalJustify='b')=0 |
virtual int | setVRP (float x, float y, float z)=0 |
| the following are in world coordinates & define view coord system. More...
|
virtual int | setVPN (float x, float y, float z)=0 |
| point on view plane. More...
|
virtual int | setVUP (float x, float y, float z)=0 |
| view plane normal. More...
|
virtual int | setViewWindow (float, float, float, float)=0 |
| the following are in view coordinates. More...
|
virtual int | setPlaneDist (float, float)=0 |
| umin, umax, vmin, vmax. More...
|
virtual int | setProjectionMode (char *mode)=0 |
| near and far clipping planes from view plane. More...
|
virtual int | setFillMode (char *mode)=0 |
| parallel or perspective. More...
|
virtual int | setPRP (float u, float v, float n)=0 |
| wire or fill. More...
|
virtual int | setPortWindow (float, float, float, float)=0 |
| the following are in normalized coordinates. More...
|
Protected Attributes |
ColorMap* | theMap |
| left, right, bottom, top [-1,1,-1,1]. More...
|
Detailed Description
The Renderer class is an abstract class which is introduced to allow the graphical display of the 3d finite element model. The Renderer class is an abstract class, it defines the interface all concrete subclasses must provide. In common with most rendering packages, the interface allows only for the displaying of a few basic primitive objects, lines and polygons (commercial renderers offer others such as cubes, circles, cones). By providing only a few basic primitives, the interface will allow complicated scenes to be created (much like the ten digits 0-9 allows an infinite number of numbers to be created).
Unlike commercial renderers there is no concept of the optical properties of materials and light sources in the interface. This is because the image the analyst is looking for is not a photo realistic image of the model, rather an image indicating the basic model, stresses, and nodal displacements. \
}
Definition at line 66 of file Renderer.h.
Constructor & Destructor Documentation
Renderer::Renderer (
|
ColorMap & theMap )
|
|
Renderer::~Renderer (
|
) [virtual]
|
|
Member Function Documentation
int Renderer::clearImage (
|
void ) [pure virtual]
|
|
|
method to clear the current image.
Reimplemented in X11Renderer. |
int Renderer::doneImage (
|
void ) [pure virtual]
|
|
|
Invoked at the end of {displayModel()}, when the image is finished and ready to be displayed.
Reimplemented in X11Renderer. |
int Renderer::drawLine (
|
const Vector & end1,
|
|
const Vector & end2,
|
|
const Vector & rgb1,
|
|
const Vector & rgb2,
|
|
int width = 1,
|
|
int style = 1 ) [pure virtual]
|
|
int Renderer::drawLine (
|
const Vector & pos1,
|
|
const Vector & pos2,
|
|
float V1,
|
|
float V2,
|
|
int width = 1,
|
|
int style = 1 ) [pure virtual]
|
|
|
Reimplemented in X11Renderer.
Referenced by ZeroLengthSection::displaySelf(), ZeroLengthND::displaySelf(), ZeroLength::displaySelf(), TrussSection::displaySelf(), Truss::displaySelf(), NLBeamColumn3d::displaySelf(), NLBeamColumn2d::displaySelf(), ElasticBeam3d::displaySelf(), ElasticBeam2d::displaySelf(), EightNodeBrick::displaySelf(), DispBeamColumn3d::displaySelf(), DispBeamColumn2d::displaySelf(), CorotTruss::displaySelf(), BeamWithHinges3d::displaySelf(), and BeamWithHinges2d::displaySelf().
|
int Renderer::drawPoint (
|
const Vector & pos1,
|
|
const Vector & rgb1,
|
|
int width = 1 ) [pure virtual]
|
|
int Renderer::drawPoint (
|
const Vector & pos1,
|
|
float V1,
|
|
int width = 1 ) [pure virtual]
|
|
int Renderer::drawPolygon (
|
const Matrix & points,
|
|
const Matrix & rgbValues ) [pure virtual]
|
|
int Renderer::drawPolygon (
|
const Matrix & points,
|
|
const Vector & values ) [pure virtual]
|
|
int Renderer::drawText (
|
const Vector & posGlobal,
|
|
char * string,
|
|
int length,
|
|
char horizontalJustify = 'l',
|
|
char verticalJustify = 'b' ) [pure virtual]
|
|
int Renderer::drawVector (
|
const Vector & position,
|
|
const Vector & value,
|
|
double factor ) [virtual]
|
|
void Renderer::setColorMap (
|
ColorMap & theMap )
|
|
int Renderer::setFillMode (
|
char * newMode ) [pure virtual]
|
|
int Renderer::setPRP (
|
float u,
|
|
float v,
|
|
float n ) [pure virtual]
|
|
int Renderer::setPlaneDist (
|
float anear,
|
|
float afar ) [pure virtual]
|
|
int Renderer::setPortWindow (
|
float left,
|
|
float right,
|
|
float bottom,
|
|
float top ) [pure virtual]
|
|
|
the following are in normalized coordinates.
Reimplemented in X11Renderer. |
int Renderer::setProjectionMode (
|
char * mode ) [pure virtual]
|
|
|
near and far clipping planes from view plane.
Reimplemented in X11Renderer. |
int Renderer::setVPN (
|
float x,
|
|
float y,
|
|
float z ) [pure virtual]
|
|
int Renderer::setVRP (
|
float x,
|
|
float y,
|
|
float z ) [pure virtual]
|
|
|
the following are in world coordinates & define view coord system.
Reimplemented in X11Renderer. |
int Renderer::setVUP (
|
float x,
|
|
float y,
|
|
float z ) [pure virtual]
|
|
int Renderer::setViewWindow (
|
float umin,
|
|
float umax,
|
|
float vmin,
|
|
float vmax ) [pure virtual]
|
|
|
the following are in view coordinates.
Reimplemented in X11Renderer. |
int Renderer::startImage (
|
void ) [pure virtual]
|
|
|
methods to be invoked when image processing is to start or is finished.
Reimplemented in X11Renderer. |
Member Data Documentation
|
left, right, bottom, top [-1,1,-1,1].
Definition at line 151 of file Renderer.h. |
The documentation for this class was generated from the following files:
|