COPASI API  4.40.278
BarColor Class Reference

#include <qwt3dColor.h>

Inheritance diagram for BarColor:
[legend]

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);. More...
 
Qwt3D::ColorVector & createVector (Qwt3D::ColorVector &vec)
 
Qwt3D::RGBA operator() (double x, double y, double z) const
 Receives z-dependend color from ColorVector. More...
 
void reset (unsigned size=100)
 Resets the standard colors;. More...
 
void setAlpha (double a)
 Sets unitary alpha value for all colors. More...
 
void setColorVector (Qwt3D::ColorVector const &cv)
 

Public Attributes

double maxZ
 
double minZ
 

Protected Attributes

Qwt3D::ColorVector colors_
 
Qwt3D::Plot3D * data_
 

Constructor & Destructor Documentation

◆ BarColor()

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);.

References data_, max, maxZ, min, minZ, and reset().

Member Function Documentation

◆ createVector()

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

◆ operator()()

Qwt3D::RGBA BarColor::operator() ( double  x,
double  y,
double  z 
) const

Receives z-dependend color from ColorVector.

References colors_, data_, maxZ, and minZ.

◆ reset()

void BarColor::reset ( unsigned  size = 100)

Resets the standard colors;.

References colors_.

Referenced by BarColor().

◆ setAlpha()

void BarColor::setAlpha ( double  a)

Sets unitary alpha value for all colors.

References colors_.

◆ setColorVector()

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

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

References colors_.

Referenced by CQBarChart::setColors().

Member Data Documentation

◆ colors_

Qwt3D::ColorVector BarColor::colors_
protected

◆ data_

Qwt3D::Plot3D* BarColor::data_
protected

Referenced by BarColor(), and operator()().

◆ maxZ

double BarColor::maxZ

Referenced by BarColor(), and operator()().

◆ minZ

double BarColor::minZ

Referenced by BarColor(), and operator()().


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