class Renderer


Inheritance:


Public Methods

Renderer(ColorMap &theMap)
virtual ~Renderer()
void setColorMap(ColorMap &theMap)
virtual int clearImage(void)
virtual int startImage(void)
virtual int doneImage(void)
virtual int drawLine(const Vector &, const Vector &, float V1, float V2)
virtual int drawLine(const Vector &end1, const Vector &end2, const Vector &rgb1, const Vector &rgb2)
virtual int drawTriangle(const Vector &, const Vector &, const Vector &, float V1, float V2, float V3)
virtual int drawVector(const Vector &position, const Vector &value)
virtual int drawGText(const Vector &posGlobal, char *string, int length)
virtual int drawLText(const Vector &posLocal, char *string, int length)
virtual int setVRP(float x, float y, float z)
virtual int setVPN(float x, float y, float z)
virtual int setVUP(float x, float y, float z)
virtual int setViewWindow(float, float, float, float)
virtual int setPlaneDist(float, float)
virtual int setProjectionMode(int)
virtual int setFillMode(int)
virtual int setPRP(float u, float v, float n)
virtual int setPortWindow(float, float, float, float)

Protected Fields

ColorMap* theMap

Documentation

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.

Renderer(ColorMap &theMap)

Keeps a pointer to Domain object theDomain and the ColorMap object theMap

virtual ~Renderer()

Does Noting

void setColorMap(ColorMap &theMap)

To set the ColorMap used in the draw() routines. The ColorMap object is used to convert scalar quantities into rgb values.

virtual int setVRP(float x, float y, float z) =0;

virtual int clearImage(void)

virtual int startImage(void)

virtual int doneImage(void)

virtual int drawLine(const Vector &, const Vector &, float V1, float V2)

virtual int drawLine(const Vector &end1, const Vector &end2, const Vector &rgb1, const Vector &rgb2)

virtual int drawTriangle(const Vector &, const Vector &, const Vector &, float V1, float V2, float V3)

virtual int drawVector(const Vector &position, const Vector &value)

virtual int drawGText(const Vector &posGlobal, char *string, int length)

virtual int drawLText(const Vector &posLocal, char *string, int length)

virtual int setVRP(float x, float y, float z)

virtual int setVPN(float x, float y, float z)

virtual int setVUP(float x, float y, float z)

virtual int setViewWindow(float, float, float, float)

virtual int setPlaneDist(float, float)

virtual int setProjectionMode(int)

virtual int setFillMode(int)

virtual int setPRP(float u, float v, float n)

virtual int setPortWindow(float, float, float, float)

ColorMap* theMap


Direct child classes:
X11Renderer

alphabetic index Contents

this page has been generated automatically by a slightly modified version of doc++ for OpenSees

Copyright Contact Us