QWT API (English) 7.0.1
Qt Widget Library for Technical Applications - English API Documentation
Loading...
Searching...
No Matches
Public Member Functions | Protected Attributes | List of all members
Qwt3D::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 Qwt3D::StandardColor:
Qwt3D::Color

Public Member Functions

 StandardColor (Qwt3D::Plot3D *data, unsigned size=100)
 Constructs a StandardColor object.
 
Qwt3D::RGBA operator() (double x, double y, double z) const
 Returns the color for a given z value.
 
void setColorVector (Qwt3D::ColorVector const &cv)
 Assigns a new ColorVector.
 
void reset (unsigned size=100)
 Resets the color vector to a default gradient.
 
void setAlpha (double a)
 Sets the alpha value for all colors.
 
Qwt3D::ColorVector & createVector (Qwt3D::ColorVector &vec)
 
- Public Member Functions inherited from Qwt3D::Color
virtual Qwt3D::RGBA operator() (Qwt3D::Triple const &t) const
 
void destroy () const
 

Protected Attributes

Qwt3D::ColorVector colors_
 
Qwt3D::Plot3Ddata_
 

Detailed Description

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

Constructor & Destructor Documentation

◆ StandardColor()

StandardColor::StandardColor ( Qwt3D::Plot3D data,
unsigned  size = 100 
)
explicit

Constructs a StandardColor object.

Member Function Documentation

◆ createVector()

Qwt3D::ColorVector & Qwt3D::StandardColor::createVector ( Qwt3D::ColorVector &  vec)
inlinevirtual

Reimplemented from Qwt3D::Color.

◆ operator()()

RGBA StandardColor::operator() ( double  x,
double  y,
double  z 
) const
virtual

Returns the color for a given z value.

Implements Qwt3D::Color.

◆ reset()

void StandardColor::reset ( unsigned  size = 100)

Resets the color vector to a default gradient.

◆ setAlpha()

void StandardColor::setAlpha ( double  a)

Sets the alpha value for all colors.

◆ setColorVector()

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

Assigns a new ColorVector.


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