UCdriverEx Class Reference

Inherits UCdriver.

Inherited by GLDriverQt.

List of all members.

Public Member Functions

virtual void lineEx (double x1, double y1, double x2, double y2, int dash_pattern, unsigned user_pattern, double width, int color, double *RGB)=0
virtual void lineEx (double x1, double y1, double z1, double x2, double y2, double z2, int dash_pattern, unsigned int user_pattern, double width, int color, double *RGB)=0
virtual void linesEx (double *X, double *Y, long npoints, int dash_pattern, unsigned user_pattern, double width, int color, double *RGB)=0
virtual void linesEx (double *X, double *Y, double *Z, long npoints, int dash_pattern, unsigned int user_pattern, double width, int color, double *RGB)=0
virtual void textEx (double x, double y, double z, double nx, double ny, double nz, const char *s, const char *font, double size, double rotation, double horiz_just, double vert_just, int color, double *RGB)=0
virtual void pointEx (double x, double y, char chr, const char *font, double size, int color, double *RGB)=0
virtual void pointEx (double x, double y, double z, char chr, const char *font, double size, int color, double *RGB)=0
virtual double alphaEx (double alpha)=0


Detailed Description

This class is an extension of the UCdriver class and provides additional three dimensional plotting capablities.

The input coordinates to the graphics routines are assumed to be in the "normalized" drawing range [0,1]x[0,1] in two dimensions and [0,1]x[0,1]x[0,1] in three dimensions.

Source: ucdriverex.h

Author:
Byron Ellis with modifications by Chris Anderson (C) UCLA 2000-09
See also:
UCdriver

Definition at line 37 of file ucdriverex.h.


Member Function Documentation

virtual void UCdriverEx::lineEx ( double  x1,
double  y1,
double  x2,
double  y2,
int  dash_pattern,
unsigned  user_pattern,
double  width,
int  color,
double *  RGB 
) [pure virtual]

Draw a line between two points with a given pattern and color in two dimensions

Parameters:
x1 the x location of an end point
y1 the y location of an end point
x2 the x location of the other end point
y2 the y location of the other end point
dash_pattern a predefined dash pattern
user_pattern the user defined pattern used when dash pattern is set to USER_DASH
width the width of the line
color the predefined color or USER_RGB
RGB an array of 3 doubles [0,255] that define an RGB color

virtual void UCdriverEx::lineEx ( double  x1,
double  y1,
double  z1,
double  x2,
double  y2,
double  z2,
int  dash_pattern,
unsigned int  user_pattern,
double  width,
int  color,
double *  RGB 
) [pure virtual]

Draw a line between two points with a given pattern and color in three dimensions

Parameters:
x1 the x location of an end point
y1 the y location of an end point
z1 the z location of an end point
x2 the x location of the other end point
y2 the y location of the other end point z2 the z location of the other end point
dash_pattern a predefined dash pattern
user_pattern the user defined pattern used when dash pattern is set to USER_DASH
width the width of the line
color the predefined color or USER_RGB
RGB an array of 3 doubles [0,255] that define an RGB color

Implemented in GLDriverQt.

virtual void UCdriverEx::linesEx ( double *  X,
double *  Y,
long  npoints,
int  dash_pattern,
unsigned  user_pattern,
double  width,
int  color,
double *  RGB 
) [pure virtual]

Draw a line between a set of points in two dimensions

Parameters:
X an array of x locations
Y an array of y locations
npoints the number of elements in the X and Y arrays
dash_pattern a predefined dash pattern
user_pattern the user defined pattern used when dash pattern is set to USER_DASH
width the width of the line
color the predefined color or USER_RGB
RGB an array of 3 doubles [0,255] that define an RGB color

virtual void UCdriverEx::linesEx ( double *  X,
double *  Y,
double *  Z,
long  npoints,
int  dash_pattern,
unsigned int  user_pattern,
double  width,
int  color,
double *  RGB 
) [pure virtual]

Draw a line between a set of points in three dimensions

Parameters:
X an array of x locations
Y an array of y locations
Z an array of z locations
npoints the number of elements in the X,Y and Z arrays
dash_pattern a predefined dash pattern
user_pattern the user defined pattern used when dash pattern is set to USER_DASH
width the width of the line
color the predefined color or USER_RGB
RGB an array of 3 doubles [0,255] that define an RGB color

Implemented in GLDriverQt.

virtual void UCdriverEx::textEx ( double  x,
double  y,
double  z,
double  nx,
double  ny,
double  nz,
const char *  s,
const char *  font,
double  size,
double  rotation,
double  horiz_just,
double  vert_just,
int  color,
double *  RGB 
) [pure virtual]

Places text

Parameters:
x the x coordinate of the text
y the y coordinate of the text
z the z coordinate of the text
nx the nx normal to the text plane
ny the ny normal to the text plane
nz the nz normal to the text plane
s the string to output
font the font to use when printing the string (platform specific)
size the size in points
rotation the number of degrees to rotate the text
horiz_just The horizontal alignment of the string about the reference point.
vert_just The vertical alignment of the string about the reference point.
color the predefined color or USER_RGB
RGB an array of 3 doubles [0,255] that define an RGB color

Implemented in GLDriverQt.

virtual void UCdriverEx::pointEx ( double  x,
double  y,
char  chr,
const char *  font,
double  size,
int  color,
double *  RGB 
) [pure virtual]

Draw a point at a set of coordinates.

Parameters:
x the x coordinate of the point
y the y coordinate of the point
chr the 'point' to draw
font the font used to draw the point
color the predefined color or USER_RGB
RGB an array of 3 doubles [0,255] that define an RGB color

Implemented in GLDriverQt.

virtual void UCdriverEx::pointEx ( double  x,
double  y,
double  z,
char  chr,
const char *  font,
double  size,
int  color,
double *  RGB 
) [pure virtual]

Draw a point at a set of coordinates. Since this is an explicitly 3D point the point character is interpreted to mean some three dimensional symbol that is specific to the driver being used.

Parameters:
x the x coordinate of the point
y the y coordinate of the point
z the z coordinate of the point
chr the 'point' to draw
font the font used to draw the point
color the predefined color or USER_RGB
RGB an array of 3 doubles [0,255] that define an RGB color

Implemented in GLDriverQt.

virtual double UCdriverEx::alphaEx ( double  alpha  )  [pure virtual]

Sets the alpha value of any command executed in the current driver instance. This is to avoid collision with the original UCdriver calls while still allowing for transparency in your graphics

Parameters:
alpha the new alpha value (between 0.0 and 1.0)
Returns:
the old alpha value

Implemented in GLDriverQt.


The documentation for this class was generated from the following file:
Generated on Tue Feb 17 11:57:14 2009 for QtGLgraphics by  doxygen 1.5.1-p1