OpenGLRenderer Class Reference

#include <OpenGLRenderer.h>

Inheritance diagram for OpenGLRenderer:

Renderer List of all members.

Public Member Functions

 OpenGLRenderer (const char *title, int xLoc, int yLoc, int width, int height, ColorMap &theMap)
 OpenGLRenderer (const char *title, int xLoc, int yLoc, int width, int height, ColorMap &theMap, const char *texFileName, const char *bmpFileName)
virtual ~OpenGLRenderer ()
virtual int clearImage (void)
virtual int saveImage (const char *imageName)
virtual int startImage (void)
virtual int doneImage (void)
virtual int drawPoint (const Vector &, float V1, int width=1)
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 drawText (const Vector &posGlobal, char *string, int length, char horizontalJustify= 'l', char verticalJustify= 'b')
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 (const char *mode)
virtual int setFillMode (const char *mode)
virtual int setPRP (float u, float v, float n)
virtual int setPortWindow (float, float, float, float)

Detailed Description

Definition at line 59 of file OpenGLRenderer.h.


Constructor & Destructor Documentation

OpenGLRenderer::OpenGLRenderer ( const char *  title,
int  xLoc,
int  yLoc,
int  width,
int  height,
ColorMap theMap 
)

OpenGLRenderer::OpenGLRenderer ( const char *  title,
int  xLoc,
int  yLoc,
int  width,
int  height,
ColorMap theMap,
const char *  texFileName,
const char *  bmpFileName 
)

OpenGLRenderer::~OpenGLRenderer (  )  [virtual]

Definition at line 158 of file OpenGlRenderer.cpp.


Member Function Documentation

int OpenGLRenderer::clearImage ( void   )  [virtual]

Implements Renderer.

Definition at line 174 of file OpenGlRenderer.cpp.

References OpenGlDevice::CLEAR(), and OpenGlDevice::ENDIMAGE().

int OpenGLRenderer::saveImage ( const char *  imageName  )  [virtual]

Reimplemented from Renderer.

Definition at line 191 of file OpenGlRenderer.cpp.

References OpenGlDevice::saveImage().

int OpenGLRenderer::startImage ( void   )  [virtual]

int OpenGLRenderer::doneImage ( void   )  [virtual]

Implements Renderer.

Definition at line 404 of file OpenGlRenderer.cpp.

References OpenGlDevice::ENDIMAGE().

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

Implements Renderer.

Definition at line 419 of file OpenGlRenderer.cpp.

References endln, ColorMap::getRGB(), and Renderer::theMap.

int OpenGLRenderer::drawPoint ( const Vector ,
const Vector rgb1,
int  width = 1 
) [virtual]

Implements Renderer.

Definition at line 442 of file OpenGlRenderer.cpp.

References endln.

int OpenGLRenderer::drawLine ( const Vector ,
const Vector ,
float  V1,
float  V2,
int  width = 1,
int  style = 1 
) [virtual]

Implements Renderer.

Definition at line 468 of file OpenGlRenderer.cpp.

References endln, ColorMap::getRGB(), and Renderer::theMap.

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

Implements Renderer.

Definition at line 507 of file OpenGlRenderer.cpp.

References endln.

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

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

Implements Renderer.

Definition at line 590 of file OpenGlRenderer.cpp.

References endln, Matrix::noCols(), Matrix::noRows(), and opserr.

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

Implements Renderer.

Definition at line 633 of file OpenGlRenderer.cpp.

References OpenGlDevice::drawText(), and Vector::Size().

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

Implements Renderer.

Definition at line 659 of file OpenGlRenderer.cpp.

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

Implements Renderer.

Definition at line 669 of file OpenGlRenderer.cpp.

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

Implements Renderer.

Definition at line 679 of file OpenGlRenderer.cpp.

int OpenGLRenderer::setViewWindow ( float  ,
float  ,
float  ,
float   
) [virtual]

Implements Renderer.

Definition at line 689 of file OpenGlRenderer.cpp.

References endln, and opserr.

int OpenGLRenderer::setPlaneDist ( float  ,
float   
) [virtual]

Implements Renderer.

Definition at line 706 of file OpenGlRenderer.cpp.

References endln, and opserr.

int OpenGLRenderer::setProjectionMode ( const char *  mode  )  [virtual]

Implements Renderer.

Definition at line 721 of file OpenGlRenderer.cpp.

References PARALLEL_MODE, and PERSPECTIVE_MODE.

int OpenGLRenderer::setFillMode ( const char *  mode  )  [virtual]

Implements Renderer.

Definition at line 731 of file OpenGlRenderer.cpp.

References FILL_MODE, and WIRE_MODE.

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

Implements Renderer.

Definition at line 743 of file OpenGlRenderer.cpp.

int OpenGLRenderer::setPortWindow ( float  ,
float  ,
float  ,
float   
) [virtual]

Implements Renderer.

Definition at line 752 of file OpenGlRenderer.cpp.

References endln, and opserr.


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

Generated on Mon Oct 23 15:05:47 2006 for OpenSees by doxygen 1.5.0