COVISE Core
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros
Public Slots | Public Member Functions | Protected Member Functions | Properties | Private Member Functions | Private Attributes | Static Private Attributes | List of all members
covise::WSColormapChoiceParameter Class Reference

#include <WSColormapChoiceParameter.h>

Inheritance diagram for covise::WSColormapChoiceParameter:
Inheritance graph
[legend]
Collaboration diagram for covise::WSColormapChoiceParameter:
Collaboration graph
[legend]

Public Slots

bool setValue (const QList< WSColormap > &value, int selected=1)
 
bool setValue (int selected)
 
QList< WSColormapgetValue () const
 
const WSColormap getSelectedValue ()
 
bool setSelected (int index)
 
int getSelected () const
 
virtual int getComponentCount () const
 
- Public Slots inherited from covise::WSParameter
const QString & getName () const
 
const QString & getType () const
 
const QString & getDescription () const
 
void setEnabled (bool state)
 
bool isEnabled () const
 
void setMapped (bool mapped)
 
bool isMapped () const
 
virtual int getComponentCount () const
 
static WSParametercreate (covise::covise__Parameter *parameter)
 

Public Member Functions

 WSColormapChoiceParameter (const QString &name, const QString &description, const QList< WSColormap > &=QList< WSColormap >(), int selected=1)
 
virtual ~WSColormapChoiceParameter ()
 
virtual QString toString () const
 
virtual WSParameterclone () const
 
virtual const
covise::covise__Parameter * 
getSerialisable ()
 
- Public Member Functions inherited from covise::WSParameter
 WSParameter (const QString &name, const QString &description, const QString &type)
 
virtual ~WSParameter ()
 

Protected Member Functions

virtual bool setValueFromSerialisable (const covise::covise__Parameter *serialisable)
 
virtual QString toCoviseString () const
 
- Protected Member Functions inherited from covise::WSParameter
const covise::covise__Parameter * getSerialisable (covise::covise__Parameter *parameter) const
 
bool equals (const covise::covise__Parameter *, const covise::covise__Parameter *)
 
 WSParameter (const WSParameter &)
 

Properties

int selected
 
- Properties inherited from covise::WSParameter
QString name
 
QString type
 
QString description
 
bool enabled
 
bool mapped
 

Private Member Functions

bool setValue (int selected, bool changed)
 
 WSColormapChoiceParameter ()
 

Private Attributes

covise::covise__ColormapChoiceParameter parameter
 

Static Private Attributes

static WSColormapChoiceParameterprototype = new covise::WSColormapChoiceParameter()
 

Additional Inherited Members

- Signals inherited from covise::WSParameter
void parameterChanged (covise::WSParameter *parameter)
 
- Static Protected Member Functions inherited from covise::WSParameter
static WSParameteraddPrototype (QString className, WSParameter *prototype)
 

Constructor & Destructor Documentation

covise::WSColormapChoiceParameter::WSColormapChoiceParameter ( const QString &  name,
const QString &  description,
const QList< WSColormap > &  inValue = QList<WSColormap>(),
int  selected = 1 
)
covise::WSColormapChoiceParameter::~WSColormapChoiceParameter ( )
virtual
covise::WSColormapChoiceParameter::WSColormapChoiceParameter ( )
private

Member Function Documentation

covise::WSParameter * covise::WSColormapChoiceParameter::clone ( ) const
virtual

Implements covise::WSParameter.

int covise::WSColormapChoiceParameter::getComponentCount ( ) const
virtualslot
int covise::WSColormapChoiceParameter::getSelected ( ) const
slot
const covise::WSColormap covise::WSColormapChoiceParameter::getSelectedValue ( )
slot

Get the selected colormap

const covise::covise__Parameter * covise::WSColormapChoiceParameter::getSerialisable ( )
virtual

Implements covise::WSParameter.

QList< covise::WSColormap > covise::WSColormapChoiceParameter::getValue ( ) const
slot

Get the list of colormaps

Returns
value
bool covise::WSColormapChoiceParameter::setSelected ( int  index)
slot

Set the selected colormap

Parameters
indexThe selected colormap
Returns
true if the parameter was changed
bool covise::WSColormapChoiceParameter::setValue ( const QList< WSColormap > &  value,
int  selected = 1 
)
slot

Set the values and selected value of the parameter

Parameters
valueA new list of colormaps
selectedThe currently selected colormap
Returns
true if the parameter was changed
bool covise::WSColormapChoiceParameter::setValue ( int  selected)
slot

Set the selected value of the parameter

Parameters
inValueThe new value of value
Returns
true if the parameter was changed
bool covise::WSColormapChoiceParameter::setValue ( int  selected,
bool  changed 
)
private
bool covise::WSColormapChoiceParameter::setValueFromSerialisable ( const covise::covise__Parameter *  serialisable)
protectedvirtual

Sets the value from a native WS parameter

Returns
true, if the parameter was changed, false if the parameter did not change.

Implements covise::WSParameter.

QString covise::WSColormapChoiceParameter::toCoviseString ( ) const
protectedvirtual

Reimplemented from covise::WSParameter.

QString covise::WSColormapChoiceParameter::toString ( ) const
virtual

Get the value as string

Returns
QString: string representation of the value

Implements covise::WSParameter.

Member Data Documentation

covise::covise__ColormapChoiceParameter covise::WSColormapChoiceParameter::parameter
private
covise::WSColormapChoiceParameter * covise::WSColormapChoiceParameter::prototype = new covise::WSColormapChoiceParameter()
staticprivate

Property Documentation

int covise::WSColormapChoiceParameter::selected
readwrite

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