ParaView
Public Types | Signals | Public Member Functions | Static Public Member Functions
pqColorMapModel Class Reference

#include <pqColorMapModel.h>

List of all members.

Public Types

enum  ColorSpace {
  RgbSpace, HsvSpace, WrappedHsvSpace, LabSpace,
  DivergingSpace
}

Signals

void colorSpaceChanged ()
 Emitted when the color space changes.
void tableSizeChanged ()
 Emitted when the table size changes.
void colorChanged (int index, const QColor &color)
 Emitted when the color for a point changes.
void nanColorChanged (const QColor &color)
 Emitted when the NaN color changes.
void pointsReset ()
 Emitted when all or many of the points have changed.
void pointAdded (int index)
 Emitted after a point has been added.
void removingPoint (int index)
 Emitted before a point is removed.
void pointRemoved (int index)
 Emitted after a point is removed.
void valueChanged (int index, const pqChartValue &value)
 Emitted when the value of a point has been changed.
void opacityChanged (int index, const pqChartValue &opacity)
 Emitted when the opacity of a point has been changed.

Public Member Functions

 pqColorMapModel (QObject *parent=0)
 pqColorMapModel (const pqColorMapModel &other)
virtual ~pqColorMapModel ()
ColorSpace getColorSpace () const
void setColorSpace (ColorSpace space)
int getColorSpaceAsInt () const
void setColorSpaceFromInt (int space)
int getNumberOfPoints () const
void addPoint (const pqChartValue &value, const QColor &color)
void addPoint (const pqChartValue &value, const QColor &color, const pqChartValue &opacity)
void removePoint (int index)
void removeAllPoints ()
void startModifyingData ()
bool isDataBeingModified () const
void finishModifyingData ()
void getPointValue (int index, pqChartValue &value) const
void setPointValue (int index, const pqChartValue &value)
void getPointColor (int index, QColor &color) const
void setPointColor (int index, const QColor &color)
void getPointOpacity (int index, pqChartValue &opacity) const
void setPointOpacity (int index, const pqChartValue &opacity)
bool isRangeNormalized () const
void getValueRange (pqChartValue &min, pqChartValue &max) const
void getNanColor (QColor &color) const
void setNanColor (const QColor &color)
void setValueRange (const pqChartValue &min, const pqChartValue &max)
 Scales the current points to fit in the given range.
QPixmap generateGradient (const QSize &size) const
pqColorMapModeloperator= (const pqColorMapModel &other)

Static Public Member Functions

static void RGBToLab (double red, double green, double blue, double *L, double *a, double *b)
static void LabToRGB (double L, double a, double b, double *red, double *green, double *blue)
static void RGBToMsh (double red, double green, double blue, double *M, double *s, double *h)
static void MshToRGB (double M, double s, double h, double *red, double *green, double *blue)

Detailed Description

Definition at line 50 of file pqColorMapModel.h.


Member Enumeration Documentation

Enumerator:
RgbSpace 
HsvSpace 
WrappedHsvSpace 
LabSpace 
DivergingSpace 

Definition at line 55 of file pqColorMapModel.h.


Constructor & Destructor Documentation

pqColorMapModel::pqColorMapModel ( QObject *  parent = 0)
pqColorMapModel::pqColorMapModel ( const pqColorMapModel other)
virtual pqColorMapModel::~pqColorMapModel ( ) [virtual]

Member Function Documentation

ColorSpace pqColorMapModel::getColorSpace ( ) const [inline]

Definition at line 69 of file pqColorMapModel.h.

void pqColorMapModel::setColorSpace ( ColorSpace  space)
int pqColorMapModel::getColorSpaceAsInt ( ) const
void pqColorMapModel::setColorSpaceFromInt ( int  space)
int pqColorMapModel::getNumberOfPoints ( ) const
void pqColorMapModel::addPoint ( const pqChartValue value,
const QColor &  color 
)
void pqColorMapModel::addPoint ( const pqChartValue value,
const QColor &  color,
const pqChartValue opacity 
)
void pqColorMapModel::removePoint ( int  index)
void pqColorMapModel::removeAllPoints ( )
void pqColorMapModel::startModifyingData ( )
bool pqColorMapModel::isDataBeingModified ( ) const [inline]

Definition at line 82 of file pqColorMapModel.h.

void pqColorMapModel::finishModifyingData ( )
void pqColorMapModel::getPointValue ( int  index,
pqChartValue value 
) const
void pqColorMapModel::setPointValue ( int  index,
const pqChartValue value 
)
void pqColorMapModel::getPointColor ( int  index,
QColor &  color 
) const
void pqColorMapModel::setPointColor ( int  index,
const QColor &  color 
)
void pqColorMapModel::getPointOpacity ( int  index,
pqChartValue opacity 
) const
void pqColorMapModel::setPointOpacity ( int  index,
const pqChartValue opacity 
)
bool pqColorMapModel::isRangeNormalized ( ) const
void pqColorMapModel::getValueRange ( pqChartValue min,
pqChartValue max 
) const
void pqColorMapModel::getNanColor ( QColor &  color) const
void pqColorMapModel::setNanColor ( const QColor &  color)
void pqColorMapModel::setValueRange ( const pqChartValue min,
const pqChartValue max 
)

Scales the current points to fit in the given range.

Note:
If there are no points, this method does nothing.
Parameters:
minThe minimum value.
maxThe maximum value.
QPixmap pqColorMapModel::generateGradient ( const QSize &  size) const
pqColorMapModel& pqColorMapModel::operator= ( const pqColorMapModel other)
static void pqColorMapModel::RGBToLab ( double  red,
double  green,
double  blue,
double L,
double a,
double b 
) [static]
static void pqColorMapModel::LabToRGB ( double  L,
double  a,
double  b,
double red,
double green,
double blue 
) [static]
static void pqColorMapModel::RGBToMsh ( double  red,
double  green,
double  blue,
double M,
double s,
double h 
) [static]
static void pqColorMapModel::MshToRGB ( double  M,
double  s,
double  h,
double red,
double green,
double blue 
) [static]
void pqColorMapModel::colorSpaceChanged ( ) [signal]

Emitted when the color space changes.

void pqColorMapModel::tableSizeChanged ( ) [signal]

Emitted when the table size changes.

void pqColorMapModel::colorChanged ( int  index,
const QColor &  color 
) [signal]

Emitted when the color for a point changes.

Parameters:
indexThe point index.
colorThe point's new color.
void pqColorMapModel::nanColorChanged ( const QColor &  color) [signal]

Emitted when the NaN color changes.

Parameters:
colorThe new NaN color.
void pqColorMapModel::pointsReset ( ) [signal]

Emitted when all or many of the points have changed.

void pqColorMapModel::pointAdded ( int  index) [signal]

Emitted after a point has been added.

Parameters:
indexThe index of the new point.
void pqColorMapModel::removingPoint ( int  index) [signal]

Emitted before a point is removed.

Parameters:
indexThe index of the point to be removed.
void pqColorMapModel::pointRemoved ( int  index) [signal]

Emitted after a point is removed.

Parameters:
indexThe index of the removed point.
void pqColorMapModel::valueChanged ( int  index,
const pqChartValue value 
) [signal]

Emitted when the value of a point has been changed.

Parameters:
indexThe index of the point.
valueThe new value for the point.
void pqColorMapModel::opacityChanged ( int  index,
const pqChartValue opacity 
) [signal]

Emitted when the opacity of a point has been changed.

Parameters:
indexThe index of the point.
opacityThe new opacity for the point.

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