Main Page | Namespace List | Class Hierarchy | Alphabetical List | Class List | Directories | Namespace Members | Class Members | Related Pages

StandardColor Class Reference

Standard color model for Plot3D - implements the data driven operator()(double x, double y, double z). More...

#include <qwt3d_color.h>

Inheritance diagram for StandardColor:

Color List of all members.

Public Member Functions

 StandardColor (Qwt3D::Plot3D *data, unsigned size=100)
Qwt3D::RGBA operator() (double x, double y, double z) const
void setColorVector (Qwt3D::ColorVector const &cv)
void reset (unsigned size=100)
void setAlpha (double a)
Qwt3D::ColorVectorcreateVector (Qwt3D::ColorVector &vec)

Protected Attributes

Qwt3D::ColorVector colors_
Qwt3D::Plot3Ddata_

Detailed Description

The class has a ColorVector representing z values, which will be used by operator()(double x, double y, double z)


Constructor & Destructor Documentation

StandardColor Qwt3D::Plot3D data,
unsigned  size = 100
[explicit]
 

Initializes with data and set up a ColorVector with a size of 100 z values (default);.


Member Function Documentation

RGBA operator() double  x,
double  y,
double  z
const [virtual]
 

Receives z-dependend color from ColorVector.

Implements Color.

void setColorVector Qwt3D::ColorVector const &  cv  ) 
 

Assigns a new ColorVector (Also overwrites the constructors size argument)

void reset unsigned  size = 100  ) 
 

Resets the standard colors;.

void setAlpha double  a  ) 
 

Sets unitary alpha value for all colors.

Qwt3D::ColorVector& createVector Qwt3D::ColorVector vec  )  [inline, virtual]
 

Creates color vector.

Creates a color vector used by ColorLegend. This is essentially a copy from the internal used vector.

Returns:
The vector created

Reimplemented from Color.


The documentation for this class was generated from the following files:
Generated on Mon Sep 5 19:23:02 2005 for QwtPlot3D API by  doxygen 1.4.3