ParaView
Public Slots | Signals | Public Member Functions | Protected Slots | Protected Attributes | Properties
pqSignalAdaptorColor Class Reference

signal adaptor to allow getting/setting/observing of an rgba (0.0 - 1.0 range) More...

#include <pqSignalAdaptors.h>

List of all members.

Public Slots

void setColor (const QVariant &)
 set the red component

Signals

void colorChanged (const QVariant &)
 signal the color changed

Public Member Functions

 pqSignalAdaptorColor (QObject *p, const char *colorProperty, const char *signal, bool enableAlpha)
 constructor requires a QObject, the name of the QColor property, and a signal for property changes
QVariant color () const
 get the color components

Protected Slots

void handleColorChanged ()

Protected Attributes

QByteArray PropertyName
bool EnableAlpha

Properties

QVariant color

Detailed Description

signal adaptor to allow getting/setting/observing of an rgba (0.0 - 1.0 range)

Definition at line 85 of file pqSignalAdaptors.h.


Constructor & Destructor Documentation

pqSignalAdaptorColor::pqSignalAdaptorColor ( QObject *  p,
const char *  colorProperty,
const char *  signal,
bool  enableAlpha 
)

constructor requires a QObject, the name of the QColor property, and a signal for property changes


Member Function Documentation

QVariant pqSignalAdaptorColor::color ( ) const

get the color components

void pqSignalAdaptorColor::colorChanged ( const QVariant &  ) [signal]

signal the color changed

void pqSignalAdaptorColor::setColor ( const QVariant &  ) [slot]

set the red component

void pqSignalAdaptorColor::handleColorChanged ( ) [protected, slot]

Member Data Documentation

QByteArray pqSignalAdaptorColor::PropertyName [protected]

Definition at line 105 of file pqSignalAdaptors.h.

Definition at line 106 of file pqSignalAdaptors.h.


Property Documentation

QVariant pqSignalAdaptorColor::color [read, write]

Definition at line 88 of file pqSignalAdaptors.h.


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