copasi API  0.1
Public Member Functions | Public Attributes | Protected Attributes
BarColor Class Reference

#include <qwt3dColor.h>

List of all members.

Public Member Functions

 BarColor (Qwt3D::Plot3D *data, unsigned size=100, double min=0, double max=0)
 Initializes with data and set up a ColorVector with a size of 100 z values (default);.
Qwt3D::RGBA operator() (double x, double y, double z) const
 Receives z-dependend color from ColorVector.
void setColorVector (Qwt3D::ColorVector const &cv)
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)

Public Attributes

double maxZ
double minZ

Protected Attributes

Qwt3D::ColorVector colors_
Qwt3D::Plot3D * data_

Constructor & Destructor Documentation

BarColor::BarColor ( Qwt3D::Plot3D *  data,
unsigned  size = 100,
double  min = 0,
double  max = 0 
) [explicit]

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


Member Function Documentation

Qwt3D::ColorVector& BarColor::createVector ( Qwt3D::ColorVector &  vec) [inline]

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

Returns:
The vector created
Qwt3D::RGBA BarColor::operator() ( double  x,
double  y,
double  z 
) const

Receives z-dependend color from ColorVector.

void BarColor::reset ( unsigned  size = 100)

Resets the standard colors;.

void BarColor::setAlpha ( double  a)

Sets unitary alpha value for all colors.

void BarColor::setColorVector ( Qwt3D::ColorVector const &  cv)

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


Member Data Documentation

Qwt3D::ColorVector BarColor::colors_ [protected]
Qwt3D::Plot3D* BarColor::data_ [protected]

The documentation for this class was generated from the following files:
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Defines