Abstract base class for parameters of a node.
More...
#include <AbstractParameter.h>
|
typedef QHash< QString,
AbstractParameter * > | Map |
| Type definition for a map of parameters and parameter groups.
|
|
typedef QList
< AbstractParameter * > | List |
| Type definition for a list of parameters and parameter groups.
|
|
|
void | enabledChanged () |
| Signal that is emitted when the parameter is enabled or disabled.
|
|
|
| AbstractParameter (const QString &name) |
| Constructor of the AbstractParameter class.
|
|
| AbstractParameter (const AbstractParameter ¶meter) |
| Copy constructor of the AbstractParameter class.
|
|
virtual | ~AbstractParameter () |
| Destructor of the AbstractParameter class.
|
|
QString | getName () const |
| Returns the name of the parameter or parameter group.
|
|
bool | isEnabled () const |
| Returns whether the controls for editing the parameter or parameter group in the UI should be enabled.
|
|
virtual void | setEnabled (bool enabled, bool propagate=true) |
| Sets whether the controls for editing the parameter or parameter group in the UI should be enabled.
|
|
virtual void | setName (const QString &name) |
| Sets name of the parameter.
|
|
Node * | getNode () const |
| Returns the node to which this parameter or parameter group belongs.
|
|
virtual void | setNode (Node *node) |
| Sets the node to which this parameter or parameter group belongs.
|
|
virtual AbstractParameter * | clone ()=0 |
| Creates an exact copy of the parameter.
|
|
virtual bool | isGroup () const =0 |
| Returns whether the parameter object derived from this class is a parameter group.
|
|
virtual void | reset ()=0 |
| Resets the parameter to its default value or parameters contained in the group to their default values.
|
|
|
QString | m_name |
| The name of the parameter or parameter group.
|
|
bool | m_enabled |
| Flag that states whether the controls for editing the parameter or parameter group in the UI should be enabled.
|
|
Node * | m_node |
| The name of the parent node that this parameter or parameter group belongs to.
|
|
Abstract base class for parameters of a node.
Type definition for a map of parameters and parameter groups.
Type definition for a list of parameters and parameter groups.
Frapper::AbstractParameter::AbstractParameter |
( |
const QString & |
name | ) |
|
Constructor of the AbstractParameter class.
Constructors and Destructors.
- Parameters
-
name | The name of the parameter or parameter group. |
Constructor of the AbstractParameter class.
- Parameters
-
name | The name of the parameter. |
Copy constructor of the AbstractParameter class.
- Parameters
-
parameter | The parameter to copy. |
Frapper::AbstractParameter::~AbstractParameter |
( |
| ) |
|
|
virtual |
QString Frapper::AbstractParameter::getName |
( |
| ) |
const |
Returns the name of the parameter or parameter group.
Public Functions.
- Returns
- The name of the parameter or parameter group.
Returns the name of the parameter or parameter group.
- Returns
- The name of the parameter or parameter group.
bool Frapper::AbstractParameter::isEnabled |
( |
| ) |
const |
Returns whether the controls for editing the parameter or parameter group in the UI should be enabled.
- Returns
- True if the controls should be enabled, otherwise False.
void Frapper::AbstractParameter::setEnabled |
( |
bool |
enabled, |
|
|
bool |
propagate = true |
|
) |
| |
|
virtual |
void Frapper::AbstractParameter::setName |
( |
const QString & |
name | ) |
|
|
virtual |
Sets name of the parameter.
- Parameters
-
Node * Frapper::AbstractParameter::getNode |
( |
| ) |
const |
Returns the node to which this parameter or parameter group belongs.
- Returns
- The node to which the parameter or parameter group belongs.
void Frapper::AbstractParameter::setNode |
( |
Node * |
node | ) |
|
|
virtual |
Sets the node to which this parameter or parameter group belongs.
- Parameters
-
node | The node to which the parameter or parameter group belongs. |
Reimplemented in Frapper::ParameterGroup.
virtual bool Frapper::AbstractParameter::isGroup |
( |
| ) |
const |
|
pure 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.
Implemented in Frapper::Parameter, and Frapper::ParameterGroup.
virtual void Frapper::AbstractParameter::reset |
( |
| ) |
|
|
pure virtual |
void Frapper::AbstractParameter::enabledChanged |
( |
| ) |
|
|
signal |
Signal that is emitted when the parameter is enabled or disabled.
QString Frapper::AbstractParameter::m_name |
|
protected |
The name of the parameter or parameter group.
bool Frapper::AbstractParameter::m_enabled |
|
protected |
Flag that states whether the controls for editing the parameter or parameter group in the UI should be enabled.
Node* Frapper::AbstractParameter::m_node |
|
protected |
The name of the parent node that this parameter or parameter group belongs to.
The documentation for this class was generated from the following files: