Parameter Class Reference

Class representing a parameter of a Node. More...

#include <Parameter.h>

Inheritance diagram for Parameter:

Inheritance graph
[legend]
Collaboration diagram for Parameter:

Collaboration graph
[legend]

List of all members.

Public Types

enum  Type {
  T_Unknown = -1, T_Bool, T_Int, T_UnsignedInt,
  T_Float, T_String, T_Filename, T_Color,
  T_Enumeration, T_TextInfo, T_Command, T_Geometry,
  T_Light, T_Camera, T_Image, T_Group,
  T_PlugIn, T_NumTypes
}
 Nested enumeration for the different types of parameters. More...
enum  Multiplicity { M_Invalid = -1, M_OneOrMore }
 Nested enumeration for special types of multiplicity. More...
enum  PinType { PT_None = -1, PT_Input, PT_Output }
 Nested enumeration for the different types of pins to represent parameters. More...
typedef unsigned char Size
 Type definition for the size of a parameter, specifying how many values of the given type the parameter can store.

Signals

void dirtied ()
 Signal that is emitted when the value of the parameter becomes dirty.
void valueChanged ()
 Signal that is emitted when the parameter's value has changed.
void valueChanged (int index)
 Signal that is emitted when the parameter's value with the given index has changed.
void processingRequested ()
 Signal that is emitted when the value of the parameter should be processed.
void auxProcessingRequested ()
 Signal that is emitted when auxiliary changes in combination with the value happen.
void commandExecutionRequested ()
 Signal that is emitted when a command parameter is triggered.

Public Member Functions

 Parameter (const QString &name, Type type, const QVariant &value)
 Constructor of the Parameter class.
 Parameter (const Parameter &parameter)
 Copy constructor of the Parameter class.
virtual ~Parameter ()
 Destructor of the Parameter class.
virtual AbstractParameterclone ()
 Creates an exact copy of the parameter.
virtual bool isGroup () const
 Returns whether the parameter object derived from this class is a parameter group.
virtual void setEnabled (bool enabled)
 Sets whether the controls for editing the parameter or parameter group in the UI should be enabled.
Type getType () const
 Returns the parameter's type.
Size getSize () const
 Returns the parameter's size specifying how many values of the given type it stores.
void setSize (Size size)
 Sets the parameter's size specifying how many values of the given type it stores.
int getMultiplicity () const
 Returns the parameter's multiplicity specifying how many parameters of the given type can be connected to it.
void setMultiplicity (int multiplicity)
 Sets the parameter's multiplicity specifying how many parameters of the given type can be connected to it.
int getNumberOfConnections () const
 Returns the parameter's number of connections.
virtual QVariant getValue (bool triggerEvaluation=false)
 Returns the parameter's value while optionally triggering the evaluation chain.
virtual const QVariantList & getValueList () const
 Returns the parameter's value list. Which contains the values of all connected parameters.
void setValue (const QVariant &value)
 Sets the parameter's value to the given value.
void setValue (int index, const QVariant &value)
 Sets the parameter's value with the given index to the given value.
bool hasDefaultValue () const
 Returns whether the parameter's current value is the default value.
void setDefaultValue (const QVariant &defaultValue)
 Sets the parameter's default value to the given value.
virtual void reset ()
 Resets the parameter to its default value.
List getAffectedParameters () const
 Returns the list of parameters that are affected when the value of this parameter is changed.
void addAffectedParameter (Parameter *affectedParameter)
 Adds a parameter to the list of parameters that are affected when the value of this parameter is changed.
void removeAffectedParameter (Parameter *affectedParameter)
 Removes a parameter from the list of parameters that are affected when the value of this parameter is changed.
List getAffectingParameters () const
 Returns the list of parameters that affect this parameter when their value is changed.
void addAffectingParameter (Parameter *affectingParameter)
 Adds a parameter to the list of parameters that are affected when the value of this parameter is changed.
void removeAffectingParameter (Parameter *affectingParameter)
 Removes a parameter from the list of parameters that are affected when the value of this parameter is changed.
QString getDescription () const
 Returns the description of the parameter.
void setDescription (const QString &description)
 Sets the description for the parameter.
PinType getPinType () const
 Returns the type of pin that should be created to represent the parameter.
void setPinType (PinType pinType)
 Sets the type of pin that should be created to represent the parameter.
Connection::Map getConnectionMap () const
 Returns all connections currently connected to this parameter.
void addConnection (Connection *connection)
 Adds the given connection to the list of connections.
void removeConnection (Connection::ID id)
 Removes the given connection from the list of connections.
bool isConnected () const
 Returns whether the parameter is connected to at least one other parameter.
ParametergetConnectedParameter () const
 Returns the first parameter connected to this parameter.
bool isDirty ()
 Returns whether the parameter's value has changed.
virtual void setDirty (bool dirty)
 Sets whether the parameter's value has changed.
bool isAuxDirty ()
 Returns the auxiliary dirty flag.
virtual void setAuxDirty (bool dirty)
 Sets the auxiliary dirty flag.
bool isVisible () const
 Returns the visibility for this parameter.
void setVisible (bool visible)
 Sets the visibility for this parameter.
bool isReadOnly () const
 Returns whether the parameter can not be modified using a control in the UI.
void setReadOnly (bool readOnly)
 Sets whether the parameter can not be modified using a control in the UI.
void setSelfEvaluating (bool selfEvaluating)
 Sets whether the parameter is self-evaluating.
bool isSelfEvaluating () const
 Returns wether the parameter is self-evaluating.
void propagateDirty (Node *callingNode)
 Sets the dirty flag for all parameters that are affected by this parameter.
void propagateAuxDirty ()
 Sets the aux dirty flag for all parameters that are affecting this parameter..
void propagateEvaluation (Node *callingNode)
 Propagates the evaluation of nodes.
void setChangeFunction (const char *changeFunction)
 Sets the function to call when the parameter's value changes.
void setProcessingFunction (const char *processingFunction)
 Sets the function to use for computing the parameter's value.
void setAuxProcessingFunction (const char *processingFunction)
 Sets the function to use for computing auxiliary value dependant things.
void setCommandFunction (const char *commandFunction)
 Sets the function to use for executing the command represented by the parameter.
void executeCommand ()
 Emits the commandExecutionRequested signal to notify connected objects that the command represented by the parameter should be executed.
QString getValueString ()
 Returns the parameter's value as a character string.

Static Public Member Functions

static QString getTypeName (Type type)
 Returns the name of the given parameter type.
static QColor getTypeColor (Type type)
 Returns the color of the given parameter type.
static Type getTypeByName (const QString &typeName)
 Returns the parameter type corresponding to the given name.
static QVariant getDefaultValue (Type type)
 Returns the default value for parameters of the given type.
static QColor decodeIntColor (const QString &color)
 Converts the given string to a color value. The string should contain comma-separated integer values for the red, green and blue channels respectively.
static QColor decodeDoubleColor (const QString &color)
 Converts the given string to a color value. The string should contain comma-separated double-precision floating point values for the red, green and blue channels respectively.
static Size decodeSize (const QString &size)
 Converts the given string to a size value.
static int decodeMultiplicity (const QString &multiplicity)
 Converts the given string to a multiplicity value.
static PinType decodePinType (const QString &pinTypeString)
 Converts the given string to a pin type value.
static Parametercreate (const QString &name, Type type, QVariant defaultValue=QVariant())
 Creates a parameter with the given name and type.
static Parametercreate (const QDomElement &element)
 Creates a parameter from the given XML element.
static Parameterclone (const Parameter &parameter)
 Creates a copy of the given parameter.
static QString extractFirstGroupName (QString *path)
 Extracts the name of first group found in the given parameter path.
static ParametercreateImageParameter (const QString &name, Ogre::TexturePtr texturePointer=Ogre::TexturePtr(0))
 Creates an image parameter with the given name.
static ParametercreateGroupParameter (const QString &name, ParameterGroup *parameterGroup=0)
 Creates a group parameter with the given name.

Static Public Attributes

static const QString PathSeparator = " > "
 The string that separates parts in parameter paths.
static const QString EnumerationSeparator = "---"
 The string that identifies enumeration separators.

Protected Attributes

QMutex m_mutex
 Mutex for threaded programming.
QStringList m_mutexList
Type m_type
 The type of the parameter's value.
int m_size
 The parameter's size specifying how many values of the given type it stores.
int m_multiplicity
 The parameter's multiplicity specifying how many parameters of the given type can be connected to it.
QVariant m_defaultValue
 The parameter's default value.
QVariant m_value
 The parameter's value.
QVariantList m_valueList
 The parameter's value.
QString m_description
 A description of the parameter.
PinType m_pinType
 The type of pin that should be created to represent the parameter.
Connection::Map m_connectionMap
 The map of connections that are connected to this connector with connection IDs as keys.
List m_affectedParameters
 A list of parameter names that are affected when the value of this parameter is changed.
List m_affectingParameters
 A list of parameter names that affect this parameter.
bool m_dirty
 Flag that states whether the parameter's value has changed.
bool m_auxDirty
 Auxiliary dirty flag.
bool m_visible
 Flag that states whether the parameter's should be visible in e.g. ParameterPanel or not.
bool m_readOnly
 Flag that states whether the parameter's value can not be changed using an input control in the UI.
bool m_selfEvaluating
 Flag that states whether the parameter is self-evaluating.


Detailed Description

Class representing a parameter of a Node.

Member Typedef Documentation

typedef unsigned char Parameter::Size

Type definition for the size of a parameter, specifying how many values of the given type the parameter can store.


Member Enumeration Documentation

Nested enumeration for the different types of parameters.

Enumerator:
T_Unknown 
T_Bool 
T_Int 
T_UnsignedInt 
T_Float 
T_String 
T_Filename 
T_Color 
T_Enumeration 
T_TextInfo 
T_Command 
T_Geometry 
T_Light 
T_Camera 
T_Image 
T_Group 
T_PlugIn 
T_NumTypes 

Reimplemented in FilenameParameter.

Nested enumeration for special types of multiplicity.

Enumerator:
M_Invalid 
M_OneOrMore 

Nested enumeration for the different types of pins to represent parameters.

Enumerator:
PT_None 
PT_Input 
PT_Output 


Constructor & Destructor Documentation

Parameter::Parameter ( const QString &  name,
Parameter::Type  type,
const QVariant &  value 
)

Constructor of the Parameter class.

Constructors and Destructors.

Parameters:
name The name of the parameter.
type The type of the parameter's value(s).
value The parameter's value.
Constructor of the Parameter class.

Parameters:
name The name of the parameter.
type The type of the parameter's value(s).
value The parameter's value.

Parameter::Parameter ( const Parameter parameter  ) 

Copy constructor of the Parameter class.

Parameters:
parameter The parameter to copy.

Parameter::~Parameter (  )  [virtual]

Destructor of the Parameter class.


Member Function Documentation

QString Parameter::getTypeName ( Parameter::Type  type  )  [static]

Returns the name of the given parameter type.

Public Static Functions.

Parameters:
type The type for which to return the name.
Returns:
The name of the given parameter type.
Returns the name of the given parameter type.

Parameters:
type The type for which to return the name.
Returns:
The name of the given parameter type.

QColor Parameter::getTypeColor ( Parameter::Type  type  )  [static]

Returns the color of the given parameter type.

Parameters:
type The type for which to return the color.
Returns:
The color of the given parameter type.

Parameter::Type Parameter::getTypeByName ( const QString &  typeName  )  [static]

Returns the parameter type corresponding to the given name.

Parameters:
typeName The name of a parameter type.
Returns:
The parameter type corresponding to the given name.

QVariant Parameter::getDefaultValue ( Parameter::Type  type  )  [static]

Returns the default value for parameters of the given type.

Parameters:
type The parameter type for which to return the default value.
Returns:
The default value for parameters of the given type.

QColor Parameter::decodeIntColor ( const QString &  color  )  [static]

Converts the given string to a color value. The string should contain comma-separated integer values for the red, green and blue channels respectively.

Parameters:
color The string to convert to a color.
Returns:
A color value corresponding to the given string, or Black when an error occured during conversion.
Parameters:
color The string to convert to a color.
Returns:
A color value corresponding to the given string, or an invalid color when an error occured during conversion.

QColor Parameter::decodeDoubleColor ( const QString &  color  )  [static]

Converts the given string to a color value. The string should contain comma-separated double-precision floating point values for the red, green and blue channels respectively.

Parameters:
color The string to convert to a color.
Returns:
A color value corresponding to the given string, or Black when an error occured during conversion.
Parameters:
color The string to convert to a color.
Returns:
A color value corresponding to the given string, or an invalid color when an error occured during conversion.

Parameter::Size Parameter::decodeSize ( const QString &  size  )  [static]

Converts the given string to a size value.

Parameters:
size The string to convert to a size value.
Returns:
A size value corresponding to the given string.

int Parameter::decodeMultiplicity ( const QString &  multiplicity  )  [static]

Converts the given string to a multiplicity value.

Parameters:
multiplicity The string to convert to a multiplicity value.
Returns:
A multiplicity value corresponding to the given string.

Parameter::PinType Parameter::decodePinType ( const QString &  pinTypeString  )  [static]

Converts the given string to a pin type value.

Parameters:
pinTypeString The string to convert to a pin type value.
Returns:
A pin type value corresponding to the given string.

Parameter * Parameter::create ( const QString &  name,
Parameter::Type  type,
QVariant  defaultValue = QVariant() 
) [static]

Creates a parameter with the given name and type.

Depending on the given type an instance of a Parameter-derived class may be returned, e.g. a NumberParameter object if type equals T_Float.

Parameters:
name The name to use for the new parameter.
type The type to use for the new parameter.
defaultValue The default value to use for the new parameter.
Returns:
A new parameter with the given name and type.

Parameter * Parameter::create ( const QDomElement &  element  )  [static]

Creates a parameter from the given XML element.

Depending on the type described in the XML element an instance of a Parameter-derived class may be returned, e.g. a NumberParameter object if the type equals T_Float.

Parameters:
element The element in a DOM tree containing information about the parameter to create.
Returns:
A new parameter corresponding to the given XML element, or 0 if the parameter description is invalid.

Parameter * Parameter::clone ( const Parameter parameter  )  [static]

Creates a copy of the given parameter.

Parameters:
parameter The parameter to clone.
Returns:
A new parameter with data corresponding to the given parameter.

QString Parameter::extractFirstGroupName ( QString *  name  )  [static]

Extracts the name of first group found in the given parameter path.

Extracts the name of first group found in the given parameter name.

Parameters:
path The parameter path to extract the first group name from.
Returns:
The name of the first group found in the given path, or an empty string if the path is a simple parameter name.
Parameters:
name The parameter name to extract the first group name from.
Returns:
The name of the first group found in the given name, or an empty string if the name contains no group name.

Parameter * Parameter::createImageParameter ( const QString &  name,
Ogre::TexturePtr  texturePointer = Ogre::TexturePtr(0) 
) [static]

Creates an image parameter with the given name.

Parameters:
name The name to use for the parameter.
texturePointer The texture pointer to use as the parameter's value.
Returns:
A new image parameter with the given name.

Parameter * Parameter::createGroupParameter ( const QString &  name,
ParameterGroup parameterGroup = 0 
) [static]

Creates a group parameter with the given name.

Parameters:
name The name to use for the parameter.
parameterGroup The parameter group pointer to be contained in the parameter.
Returns:
A new group parameter with the given name.
Parameters:
name The name to use for the parameter.
parameterGroup The parameter group to use as the parameter's value.
Returns:
A new group parameter with the given name.

AbstractParameter * Parameter::clone (  )  [virtual]

Creates an exact copy of the parameter.

Public Functions.

Returns:
An exact copy of the parameter.
Creates an exact copy of the parameter.

Returns:
An exact copy of the parameter.

Implements AbstractParameter.

Reimplemented in EnumerationParameter, FilenameParameter, NumberParameter, and SceneNodeParameter< T >.

bool Parameter::isGroup (  )  const [virtual]

Returns whether the parameter object derived from this class is a parameter group.

Returns:
True if the parameter object is a parameter group, otherwise False.

Implements AbstractParameter.

void Parameter::setEnabled ( bool  enabled  )  [virtual]

Sets whether the controls for editing the parameter or parameter group in the UI should be enabled.

Parameters:
enabled The value for the parameter's enabled flag.

Reimplemented from AbstractParameter.

Reimplemented in NumberParameter.

Parameter::Type Parameter::getType (  )  const

Returns the parameter's type.

Returns:
The parameter's type.

Reimplemented in FilenameParameter.

Parameter::Size Parameter::getSize (  )  const

Returns the parameter's size specifying how many values of the given type it stores.

Returns:
The parameter's size value.

void Parameter::setSize ( Parameter::Size  size  ) 

Sets the parameter's size specifying how many values of the given type it stores.

Parameters:
size The parameter's size value.

int Parameter::getMultiplicity (  )  const

Returns the parameter's multiplicity specifying how many parameters of the given type can be connected to it.

Returns:
The parameter's multiplicity value.

void Parameter::setMultiplicity ( int  multiplicity  ) 

Sets the parameter's multiplicity specifying how many parameters of the given type can be connected to it.

Parameters:
multiplicity The parameter's multiplicity value.

int Parameter::getNumberOfConnections (  )  const

Returns the parameter's number of connections.

Returns:
The parameter's number of connections.

QVariant Parameter::getValue ( bool  triggerEvaluation = false  )  [virtual]

Returns the parameter's value while optionally triggering the evaluation chain.

Parameters:
triggerEvaluation Flag to control whether to trigger the evaluation chain.
Returns:
The parameter's value.
Parameters:
Trigger evaluation.
triggerEvaluation Flag to control whether to trigger the evaluation chain.
Returns:
The parameter's value.

Reimplemented in NumberParameter.

const QVariantList & Parameter::getValueList (  )  const [virtual]

Returns the parameter's value list. Which contains the values of all connected parameters.

Returns:
The parameter's value list.

void Parameter::setValue ( const QVariant &  value  ) 

Sets the parameter's value to the given value.

Parameters:
value The new value for the parameter.

void Parameter::setValue ( int  index,
const QVariant &  value 
)

Sets the parameter's value with the given index to the given value.

Convenience function that works on a list of values.

Parameters:
index The index of the value to set.
value The new value for the parameter.

bool Parameter::hasDefaultValue (  )  const

Returns whether the parameter's current value is the default value.

Returns:
True if the parameter's current value is the default value, otherwise False.

void Parameter::setDefaultValue ( const QVariant &  defaultValue  ) 

Sets the parameter's default value to the given value.

Parameters:
defaultValue The default value to use for the parameter.

void Parameter::reset (  )  [virtual]

Resets the parameter to its default value.

Implements AbstractParameter.

AbstractParameter::List Parameter::getAffectedParameters (  )  const

Returns the list of parameters that are affected when the value of this parameter is changed.

Returns:
The list of parameters affected by this parameter.

void Parameter::addAffectedParameter ( Parameter affectedParameter  ) 

Adds a parameter to the list of parameters that are affected when the value of this parameter is changed.

Parameters:
affectedParameter Parameter that is affected when the value of this parameter is changed.

void Parameter::removeAffectedParameter ( Parameter affectedParameter  ) 

Removes a parameter from the list of parameters that are affected when the value of this parameter is changed.

Parameters:
affectedParameter Parameter that is affected when the value of this parameter is changed.

AbstractParameter::List Parameter::getAffectingParameters (  )  const

Returns the list of parameters that affect this parameter when their value is changed.

Returns:
List of parameters that affect this parameter when their value is changed.

void Parameter::addAffectingParameter ( Parameter affectingParameter  ) 

Adds a parameter to the list of parameters that are affected when the value of this parameter is changed.

Parameters:
affectingParameter Parameter that affects this parameter when its value is changed.

void Parameter::removeAffectingParameter ( Parameter affectingParameter  ) 

Removes a parameter from the list of parameters that are affected when the value of this parameter is changed.

Parameters:
affectingParameter Parameter that affects this parameter when its value is changed.

QString Parameter::getDescription (  )  const

Returns the description of the parameter.

Returns:
The description of the parameter.

void Parameter::setDescription ( const QString &  description  ) 

Sets the description for the parameter.

Parameters:
description The description for the parameter.

Parameter::PinType Parameter::getPinType (  )  const

Returns the type of pin that should be created to represent the parameter.

Returns:
the type of pin that should be created to represent the parameter.

void Parameter::setPinType ( PinType  pinType  ) 

Sets the type of pin that should be created to represent the parameter.

Parameters:
pinType The type of pin that should be created to represent the parameter.

Connection::Map Parameter::getConnectionMap (  )  const

Returns all connections currently connected to this parameter.

Returns:
All connections currently connected to this parameter.

void Parameter::addConnection ( Connection connection  ) 

Adds the given connection to the list of connections.

Parameters:
connection The connection to add to the list of connections.

void Parameter::removeConnection ( Connection::ID  id  ) 

Removes the given connection from the list of connections.

Parameters:
id The ID of the connection to remove from the list of connections.

bool Parameter::isConnected (  )  const

Returns whether the parameter is connected to at least one other parameter.

Returns:
True if the parameter is connected to another parameter, otherwise False.

Parameter * Parameter::getConnectedParameter (  )  const

Returns the first parameter connected to this parameter.

Returns:
The first parameter connected to this parameter or Null if no parameter is connected to this parameter.

bool Parameter::isDirty (  ) 

Returns whether the parameter's value has changed.

Returns:
True if the parameter's value has changed, otherwise False.

void Parameter::setDirty ( bool  dirty  )  [virtual]

Sets whether the parameter's value has changed.

Parameters:
dirty The new value for the parameter's dirty flag.

Reimplemented in NumberParameter.

bool Parameter::isAuxDirty (  ) 

Returns the auxiliary dirty flag.

Returns:
The auxiliary dirty flag.

void Parameter::setAuxDirty ( bool  dirty  )  [virtual]

Sets the auxiliary dirty flag.

Parameters:
dirty The new value for the parameter auxiliary dirty flag.

bool Parameter::isVisible (  )  const

Returns the visibility for this parameter.

Returns:
The visibility of the parameter.

The visibility of th parameter.

void Parameter::setVisible ( bool  visible  ) 

Sets the visibility for this parameter.

Parameters:
visible The visibility of the parameter.
visible The visibility of th parameter.

bool Parameter::isReadOnly (  )  const

Returns whether the parameter can not be modified using a control in the UI.

Returns:
True if the parameter is read-only, otherwise False.

void Parameter::setReadOnly ( bool  readOnly  ) 

Sets whether the parameter can not be modified using a control in the UI.

Parameters:
readOnly The value for the parameter's read-only flag.

void Parameter::setSelfEvaluating ( bool  selfEvaluating  ) 

Sets whether the parameter is self-evaluating.

Parameters:
selfEvaluating True if the parameter is self-evaluating.

bool Parameter::isSelfEvaluating (  )  const

Returns wether the parameter is self-evaluating.

Returns:
True if the parameter is self-evaluating.

void Parameter::propagateDirty ( Node callingNode  ) 

Sets the dirty flag for all parameters that are affected by this parameter.

Parameters:
callingNode The node calling this function.

void Parameter::propagateAuxDirty (  ) 

Sets the aux dirty flag for all parameters that are affecting this parameter..

Sets the aux dirty flag for all parameters that are affecting this parameter.

Parameters:
callingNode The node calling this function.

void Parameter::propagateEvaluation ( Node callingNode  ) 

Propagates the evaluation of nodes.

Parameters:
callingNode The node calling this function.

void Parameter::setChangeFunction ( const char *  changeFunction  ) 

Sets the function to call when the parameter's value changes.

Should only be called after the parameter has been added to a parameter group of a node so that the m_node member is already set.

Parameters:
changeFunction The name of the function to call when the parameter's value changes.

void Parameter::setProcessingFunction ( const char *  processingFunction  ) 

Sets the function to use for computing the parameter's value.

Should only be called after the parameter has been added to a parameter group of a node so that the m_node member is already set.

Parameters:
processingFunction The name of the function to use for computing the parameter's value.
Should only be called after the parameter has been added to a parameter group of a node so that the m_node member is already set.

Parameters:
processingFunction The function to use for computing the parameter's value.

void Parameter::setAuxProcessingFunction ( const char *  processingFunction  ) 

Sets the function to use for computing auxiliary value dependant things.

Should only be called after the parameter has been added to a parameter group of a node so that the m_node member is already set.

Parameters:
processingFunction The name of the function to use for computing the parameter's value.

void Parameter::setCommandFunction ( const char *  commandFunction  ) 

Sets the function to use for executing the command represented by the parameter.

Should only be called after the parameter has been added to a parameter group of a node so that the m_node member is already set.

Parameters:
commandFunction The function to use for executing the command represented by the parameter.

void Parameter::executeCommand (  ) 

Emits the commandExecutionRequested signal to notify connected objects that the command represented by the parameter should be executed.

QString Parameter::getValueString (  ) 

Returns the parameter's value as a character string.

Returns:
The parameter's value as a character string.

void Parameter::dirtied (  )  [signal]

Signal that is emitted when the value of the parameter becomes dirty.

void Parameter::valueChanged (  )  [signal]

Signal that is emitted when the parameter's value has changed.

void Parameter::valueChanged ( int  index  )  [signal]

Signal that is emitted when the parameter's value with the given index has changed.

Parameters:
index The index of the value in a list of values.

void Parameter::processingRequested (  )  [signal]

Signal that is emitted when the value of the parameter should be processed.

void Parameter::auxProcessingRequested (  )  [signal]

Signal that is emitted when auxiliary changes in combination with the value happen.

void Parameter::commandExecutionRequested (  )  [signal]

Signal that is emitted when a command parameter is triggered.


Member Data Documentation

const QString Parameter::PathSeparator = " > " [static]

The string that separates parts in parameter paths.

const QString Parameter::EnumerationSeparator = "---" [static]

The string that identifies enumeration separators.

Public Static Constants.

QMutex Parameter::m_mutex [protected]

Mutex for threaded programming.

QStringList Parameter::m_mutexList [protected]

Type Parameter::m_type [protected]

The type of the parameter's value.

int Parameter::m_size [protected]

The parameter's size specifying how many values of the given type it stores.

int Parameter::m_multiplicity [protected]

The parameter's multiplicity specifying how many parameters of the given type can be connected to it.

QVariant Parameter::m_defaultValue [protected]

The parameter's default value.

QVariant Parameter::m_value [protected]

The parameter's value.

QVariantList Parameter::m_valueList [protected]

The parameter's value.

QString Parameter::m_description [protected]

A description of the parameter.

The type of pin that should be created to represent the parameter.

The map of connections that are connected to this connector with connection IDs as keys.

A list of parameter names that are affected when the value of this parameter is changed.

A list of parameter names that affect this parameter.

bool Parameter::m_dirty [protected]

Flag that states whether the parameter's value has changed.

bool Parameter::m_auxDirty [protected]

Auxiliary dirty flag.

bool Parameter::m_visible [protected]

Flag that states whether the parameter's should be visible in e.g. ParameterPanel or not.

bool Parameter::m_readOnly [protected]

Flag that states whether the parameter's value can not be changed using an input control in the UI.

bool Parameter::m_selfEvaluating [protected]

Flag that states whether the parameter is self-evaluating.


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

Generated on Wed Feb 24 15:01:02 2010 for Frapper by  doxygen 1.5.9