#include <Node.h>


Public Slots | |
| virtual void | setEvaluate (bool evaluate) |
| Sets whether this node should be evaluated in the network. | |
Signals | |
| void | frameChanged (int) |
| Signal that is emitted when current frame has changed. | |
| void | nodeChanged () |
| Signal that is emitted when something has changed in the node. (Parameters added/deleted). | |
| void | nodeNameChanged (const QString &name) |
| Signal that is emitted when the node's name has changed. | |
| void | selectedChanged (bool selected) |
| Signal that is emitted when the selected state of the node has changed. | |
| void | deleteObject (const QString &name) |
| Signal that is emitted in order to delete a certain object (through SceneModel). | |
| void | selectDeselectObject (const QString &name) |
| Seim. | |
Public Member Functions | |
| Node (const QString &name, ParameterGroup *parameterRoot) | |
| Constructor of the Node class. | |
| virtual | ~Node () |
| Destructor of the Node class. | |
| virtual bool | process (const QString ¶meterName) |
| Processes the node's input data to generate the data for the parameter with the given name. | |
| Parameter * | getTimeParameter () const |
| Returns the actual timeline intex. | |
| QString | getName () const |
| Returns the name of the node. The name must be unique in the node network so that each node object can be uniquely identified by its name. | |
| void | setName (const QString &name) |
| Sets the name of the node. The name must be unique in the node network so that each node object can be uniquely identified by its name. | |
| QString | getTypeName () const |
| Returns the name of the node's type. | |
| void | setTypeName (const QString &typeName) |
| Set the name of the node's type. | |
| bool | isTypeUnknown () const |
| Returns whether a plugin for the node's type is available. | |
| void | setTypeUnknown (bool typeUnknown=true) |
| Sets the flag that indicates whether a plugin for the node's type is available. | |
| bool | isEvaluated () const |
| Returns whether this node should be evaluated in the network. | |
| bool | isSelected () const |
| Returns whether this node is currently selected. | |
| virtual void | setSelected (bool selected) |
| Sets whether this node is currently selected. | |
| bool | isSelfEvaluating () const |
| Returns whether the node is self-evaluating. | |
| void | setSelfEvaluating (bool selfEvaluating) |
| Sets whether the node is self-evaluating. | |
| QString | getSearchText () const |
| Returns the search text currently set for the node. | |
| void | setSearchText (const QString &searchText) |
| Sets the text to use when filtering parameters of the node before creating editing widgets in a parameter editor panel. | |
| ParameterGroup * | getParameterRoot () const |
| Returns the root of the tree of parameters and parameter groups for the node. | |
| ParameterGroup * | getParameterGroup (const QString &name) const |
| Returns the parameter group with the given name. | |
| void | fillParameterLists (AbstractParameter::List *inputParameters, AbstractParameter::List *outputParameters) |
| Iterates over the children of the parameter root and fills the given lists with input and output parameters and parameter groups containing input and output parameters. | |
| void | fillParameterLists (AbstractParameter::List *connectedInputParameters, AbstractParameter::List *connectedOutputParameters, bool *unconnectedInputParametersAvailable, bool *unconnectedOutputParametersAvailable) |
| Iterates over the children of the parameter root and fills the given lists with connected input and output parameters and parameter groups containing connected input and output parameters. | |
| AbstractParameter::List | getParameters (Parameter::PinType pinType, bool connected, ParameterGroup *parameterGroup=0) |
| Returns a list of parameters contained in the given parameter group that are of the given pin type and that are connected or not. | |
| bool | hasParameter (const QString &name) const |
| Returns whether the node contains a parameter with the given name. | |
| Parameter * | getParameter (const QString &name) const |
| Returns the parameter with the given name. | |
| NumberParameter * | getNumberParameter (const QString &name) const |
| Returns the number parameter with the given name. | |
| FilenameParameter * | getFilenameParameter (const QString &name) const |
| Returns the filename parameter with the given name. | |
| EnumerationParameter * | getEnumerationParameter (const QString &name) const |
| Returns the enumeration parameter with the given name. | |
| GeometryParameter * | getGeometryParameter (const QString &name) const |
| Returns the geometry parameter with the given name. | |
| LightParameter * | getLightParameter (const QString &name) const |
| Returns the light parameter with the given name. | |
| CameraParameter * | getCameraParameter (const QString &name) const |
| Returns the camera parameter with the given name. | |
| void | setDirty (const QString &name, bool dirty) |
| Sets the dirty state of the parameter with the given name to the given state. | |
| void | setDirty (bool dirty) |
| Sets the dirty state of the node. | |
| bool | isDirty () |
| Returns the dirty state of the node. | |
| void | removeParameter (const QString &name) |
| Removes and deletes the parameter with the given name. | |
| void | removeParameter (Parameter *parameter) |
| Removes and deletes the given parameter. | |
| void | addAffection (const QString ¶meterName, const QString &affectedParameterName) |
| Adds a affection between two parameters. | |
| QVariant | getValue (const QString &name, bool triggerEvaluation=false) |
| Returns the value of the parameter with the given name while optionally triggering the evaluation chain. | |
| bool | getBoolValue (const QString &name, bool triggerEvaluation=false) |
| Convenience function for getting the value of a boolean parameter while optionally triggering the evaluation chain. | |
| int | getIntValue (const QString &name, bool triggerEvaluation=false) |
| Convenience function for getting the value of an integer parameter while optionally triggering the evaluation chain. | |
| unsigned int | getUnsignedIntValue (const QString &name, bool triggerEvaluation=false) |
| Convenience function for getting the value of an unsigned integer parameter while optionally triggering the evaluation chain. | |
| double | getDoubleValue (const QString &name, bool triggerEvaluation=false) |
| Convenience function for getting the value of a double-precision floating point parameter while optionally triggering the evaluation chain. | |
| QString | getStringValue (const QString &name, bool triggerEvaluation=false) |
| Convenience function for getting the value of a string parameter while optionally triggering the evaluation chain. | |
| QColor | getColorValue (const QString &name, bool triggerEvaluation=false) |
| Convenience function for getting the value of a color parameter while optionally triggering the evaluation chain. | |
| Ogre::Vector3 | getVectorValue (const QString &name, bool triggerEvaluation=false) |
| Convenience function for getting the value of an OGRE vector parameter while optionally triggering the evaluation chain. | |
| Ogre::SceneNode * | getSceneNodeValue (const QString &name, bool triggerEvaluation=false) |
| Convenience function for getting the value of a scene node parameter while optionally triggering the evaluation chain. | |
| Ogre::TexturePtr | getTextureValue (const QString &name, bool triggerEvaluation=false) |
| Convenience function for getting the value of an OGRE texture parameter while optionally triggering the evaluation chain. | |
| ParameterGroup * | getGroupValue (const QString &name, bool triggerEvaluation=false) |
| Convenience function for getting the value of a parameter group parameter while optionally triggering the evaluation chain. | |
| void | setValue (const QString &name, const QVariant &value, bool triggerDirtying=false) |
| Sets the value of the parameter with the given name to the given value while optionally triggering the dirtying chain. | |
| void | setValue (const QString &name, bool value, bool triggerDirtying=false) |
| Convenience function for setting the value of a boolean parameter while optionally triggering the dirtying chain. | |
| void | setValue (const QString &name, int value, bool triggerDirtying=false) |
| Convenience function for setting the value of an integer parameter while optionally triggering the dirtying chain. | |
| void | setValue (const QString &name, unsigned int value, bool triggerDirtying=false) |
| Convenience function for setting the value of an unsigned integer parameter while optionally triggering the dirtying chain. | |
| void | setValue (const QString &name, double value, bool triggerDirtying=false) |
| Convenience function for setting the value of a double-precision floating point parameter while optionally triggering the dirtying chain. | |
| void | setValue (const QString &name, char *value, bool triggerDirtying=false) |
| Convenience function for setting the value of a string parameter while optionally triggering the dirtying chain. | |
| void | setValue (const QString &name, const char *value, bool triggerDirtying=false) |
| Convenience function for setting the value of a string parameter while optionally triggering the dirtying chain. | |
| void | setValue (const QString &name, const QString &value, bool triggerDirtying=false) |
| Convenience function for setting the value of a string parameter while optionally triggering the dirtying chain. | |
| void | setValue (const QString &name, const QColor &value, bool triggerDirtying=false) |
| Convenience function for setting the value of a color parameter while optionally triggering the dirtying chain. | |
| void | setValue (const QString &name, const Ogre::Vector3 &value, bool triggerDirtying=false) |
| Convenience function for setting the value of an OGRE vector parameter while optionally triggering the dirtying chain. | |
| void | setValue (const QString &name, Ogre::SceneNode *value, bool triggerDirtying=false) |
| Convenience function for setting the value of a scene node parameter while optionally triggering the dirtying chain. | |
| void | setValue (const QString &name, const Ogre::TexturePtr value, bool triggerDirtying=false) |
| Convenience function for setting the value of an OGRE texture parameter while optionally triggering the dirtying chain. | |
| void | setValue (const QString &name, ParameterGroup *value, bool triggerDirtying=false) |
| Convenience function for setting the value of a parameter group parameter while optionally triggering the dirtying chain. | |
| void | setChangeFunction (const QString &name, const char *changeFunction) |
| Sets the function to call when a parameter's value changes. | |
| void | setProcessingFunction (const QString &name, const char *processingFunction) |
| Sets the function to use for computing a parameter's value. | |
| void | setCommandFunction (const QString &name, const char *commandFunction) |
| Sets the function to use for executing the command represented by a parameter. | |
| void | notifyChange () |
| Notify when something has changed in the node. (Parameters added/deleted). | |
| virtual void | setUpTimeDependencies (Parameter *timeParameter) |
| Sets up time dependencies for node parameters. | |
| virtual void | evaluateConnection (Connection *connection) |
| Evaluates the given new connection for the node. | |
| virtual void | prepareDelete () |
Static Public Attributes | |
| static int | s_numberOfInstances |
| static int | s_totalNumberOfInstances |
Protected Member Functions | |
| Ogre::String | createUniqueName (const QString &objectName) |
| Creates a unique name from the given object name by adding the Node number. | |
| virtual void | finalize () |
Protected Attributes | |
| QString | m_name |
| The name of the node. | |
| QString | m_typeName |
| The type of the node. | |
| bool | m_dirty |
| The dirty bit. | |
| Parameter * | m_timeParameter |
| The global time parameter to use when addressing image sequences. | |
| bool | m_typeUnknown |
| Flag that states whether a plugin for the node's type is available. | |
| bool | m_evaluate |
| Flag that states whether this node should be evaluated in the network. | |
| bool | m_selected |
| Flag that states whether this node is currently selected. | |
| bool | m_selfEvaluating |
| Flag that states whether the node is self-evaluating. | |
| QString | m_searchText |
| The text to use for filtering parameters of this node before creating editing widgets in a parameter editor panel. | |
Private Attributes | |
| ParameterGroup * | m_parameterRoot |
| The root of the tree of the node's parameters. | |
| Node::Node | ( | const QString & | name, | |
| ParameterGroup * | parameterRoot | |||
| ) |
Constructor of the Node class.
Constructors and Destructors.
| name | The name for the new node. | |
| parameterRoot | A copy of the parameter tree specific for the type of the node. |
| name | The name for the new node. | |
| parameterRoot | A copy of the parameter tree specific for the type of the node. |
| Node::~Node | ( | ) | [virtual] |
Destructor of the Node class.
Defined virtual to guarantee that the destructor of a derived class will be called if the instance of the derived class is saved in a variable of its parent class type.
| bool Node::process | ( | const QString & | parameterName | ) | [virtual] |
Processes the node's input data to generate the data for the parameter with the given name.
Public Functions.
| parameterName | The name of the parameter whose data should be generated. |
| parameterName | The name of the parameter whose data should be generated. |
| Parameter * Node::getTimeParameter | ( | ) | const |
Returns the actual timeline intex.
Returns the actual timeline parameter.
| QString Node::getName | ( | ) | const |
Returns the name of the node. The name must be unique in the node network so that each node object can be uniquely identified by its name.
| void Node::setName | ( | const QString & | name | ) |
Sets the name of the node. The name must be unique in the node network so that each node object can be uniquely identified by its name.
| name | The new name for the node. |
| QString Node::getTypeName | ( | ) | const |
Returns the name of the node's type.
| void Node::setTypeName | ( | const QString & | typeName | ) |
Set the name of the node's type.
This function should normally only be called once directly after the node has been created by NodeFactory::createNode.
| typeName | The name of the node's type. |
| typeName | The name of the node's type. |
| bool Node::isTypeUnknown | ( | ) | const |
Returns whether a plugin for the node's type is available.
| void Node::setTypeUnknown | ( | bool | typeUnknown = true |
) |
Sets the flag that indicates whether a plugin for the node's type is available.
| typeUnknown | Flag to indicate whether a plugin for the node's type is available. |
| bool Node::isEvaluated | ( | ) | const |
Returns whether this node should be evaluated in the network.
| bool Node::isSelected | ( | ) | const |
Returns whether this node is currently selected.
| void Node::setSelected | ( | bool | selected | ) | [virtual] |
Sets whether this node is currently selected.
| selected | The new selected value for the node. | |
| The | new selected value for the node. |
| bool Node::isSelfEvaluating | ( | ) | const |
Returns whether the node is self-evaluating.
| void Node::setSelfEvaluating | ( | bool | selfEvaluating | ) |
Sets whether the node is self-evaluating.
| selfEvaluating | The new value for the self-evaluating flag. |
| QString Node::getSearchText | ( | ) | const |
Returns the search text currently set for the node.
| void Node::setSearchText | ( | const QString & | searchText | ) |
Sets the text to use when filtering parameters of the node before creating editing widgets in a parameter editor panel.
| searchText | The text to use for filtering parameters. |
| ParameterGroup * Node::getParameterRoot | ( | ) | const |
Returns the root of the tree of parameters and parameter groups for the node.
Public Parameter Group Functions.
| ParameterGroup * Node::getParameterGroup | ( | const QString & | name | ) | const |
Returns the parameter group with the given name.
| name | The name of the parameter group to return. |
| void Node::fillParameterLists | ( | AbstractParameter::List * | inputParameters, | |
| AbstractParameter::List * | outputParameters | |||
| ) |
Iterates over the children of the parameter root and fills the given lists with input and output parameters and parameter groups containing input and output parameters.
| inputParameters | The list to fill with input parameters and parameter groups containing input parameters. | |
| outputParameters | The list to fill with output parameters and parameter groups containing output parameters. |
| void Node::fillParameterLists | ( | AbstractParameter::List * | connectedInputParameters, | |
| AbstractParameter::List * | connectedOutputParameters, | |||
| bool * | unconnectedInputParametersAvailable, | |||
| bool * | unconnectedOutputParametersAvailable | |||
| ) |
Iterates over the children of the parameter root and fills the given lists with connected input and output parameters and parameter groups containing connected input and output parameters.
| connectedInputParameters | The list to fill with connected input parameters and parameter groups containing connected input parameters. | |
| connectedOutputParameters | The list to fill with connected output parameters and parameter groups containing connected output parameters. | |
| unconnectedInputParametersAvailable | Flag that returns whether there are unconnected input parameters contained in the node. | |
| unconnectedOutputParametersAvailable | Flag that returns whether there are unconnected output parameters contained in the node. |
| Parameter::List Node::getParameters | ( | Parameter::PinType | pinType, | |
| bool | connectedOnly, | |||
| ParameterGroup * | parameterGroup = 0 | |||
| ) |
Returns a list of parameters contained in the given parameter group that are of the given pin type and that are connected or not.
Returns a list of parameters contained in the given parameter group that are of the given pin type. If the respective flag is set only connected parameters will be returned.
| pinType | Only parameters of this pin type will be returned. | |
| connected | Flag to control whether to return connected or unconnected parameters. | |
| parameterGroup | The root of the parameter tree to get parameters from. |
| pinType | Only parameters of this pin type will be returned. | |
| connectedOnly | Flag that controls whether only connected parameters should be returned. | |
| parameterGroup | The root of the parameter tree to get parameters from. |
| bool Node::hasParameter | ( | const QString & | name | ) | const |
Returns whether the node contains a parameter with the given name.
Public Parameter Functions.
| name | The name of the parameter to check for existence. |
| name | The name of the parameter to check for existence. |
| Parameter * Node::getParameter | ( | const QString & | name | ) | const |
Returns the parameter with the given name.
| name | The name of the parameter to return. |
| NumberParameter * Node::getNumberParameter | ( | const QString & | name | ) | const |
Returns the number parameter with the given name.
Convenience function that uses getParameter and performs type casting.
| name | The name of the number parameter to return. |
| FilenameParameter * Node::getFilenameParameter | ( | const QString & | name | ) | const |
Returns the filename parameter with the given name.
Convenience function that uses getParameter and performs type casting.
| name | The name of the filename parameter to return. |
| EnumerationParameter * Node::getEnumerationParameter | ( | const QString & | name | ) | const |
Returns the enumeration parameter with the given name.
Convenience function that uses getParameter and performs type casting.
| name | The name of the enumeration parameter to return. |
| GeometryParameter * Node::getGeometryParameter | ( | const QString & | name | ) | const |
Returns the geometry parameter with the given name.
Convenience function that uses getParameter and performs type casting.
| name | The name of the geometry parameter to return. |
| LightParameter * Node::getLightParameter | ( | const QString & | name | ) | const |
Returns the light parameter with the given name.
Convenience function that uses getParameter and performs type casting.
| name | The name of the light parameter to return. |
| CameraParameter * Node::getCameraParameter | ( | const QString & | name | ) | const |
Returns the camera parameter with the given name.
Convenience function that uses getParameter and performs type casting.
| name | The name of the camera parameter to return. |
| void Node::setDirty | ( | const QString & | name, | |
| bool | dirty | |||
| ) |
Sets the dirty state of the parameter with the given name to the given state.
| name | The name of the parameter to set the dirty state for. | |
| dirty | The new value for the parameter's dirty state. |
| void Node::setDirty | ( | bool | dirty | ) |
Sets the dirty state of the node.
| dirty | The new value for the ´node's dirty state. |
| bool Node::isDirty | ( | ) |
Returns the dirty state of the node.
| void Node::removeParameter | ( | const QString & | name | ) |
Removes and deletes the parameter with the given name.
| name | The name of the parameter to remove and delete. |
| void Node::removeParameter | ( | Parameter * | parameter | ) |
Removes and deletes the given parameter.
| parameter | The parameter to remove and delete. |
| void Node::addAffection | ( | const QString & | parameterName, | |
| const QString & | affectedParameterName | |||
| ) |
Adds a affection between two parameters.
| QVariant Node::getValue | ( | const QString & | name, | |
| bool | triggerEvaluation = false | |||
| ) |
Returns the value of the parameter with the given name while optionally triggering the evaluation chain.
Public Value Getter Functions.
| name | The name of the parameter whose value to return. | |
| triggerEvaluation | Flag to control whether to trigger the evaluation chain. |
| name | The name of the parameter whose value to return. | |
| triggerEvaluation | Flag to control whether to trigger the evaluation chain. |
| bool Node::getBoolValue | ( | const QString & | name, | |
| bool | triggerEvaluation = false | |||
| ) |
Convenience function for getting the value of a boolean parameter while optionally triggering the evaluation chain.
| name | The name of the parameter whose value to return. | |
| triggerEvaluation | Flag to control whether to trigger the evaluation chain. |
| int Node::getIntValue | ( | const QString & | name, | |
| bool | triggerEvaluation = false | |||
| ) |
Convenience function for getting the value of an integer parameter while optionally triggering the evaluation chain.
| name | The name of the parameter whose value to return. | |
| triggerEvaluation | Flag to control whether to trigger the evaluation chain. |
| unsigned int Node::getUnsignedIntValue | ( | const QString & | name, | |
| bool | triggerEvaluation = false | |||
| ) |
Convenience function for getting the value of an unsigned integer parameter while optionally triggering the evaluation chain.
| name | The name of the parameter whose value to return. | |
| triggerEvaluation | Flag to control whether to trigger the evaluation chain. |
| double Node::getDoubleValue | ( | const QString & | name, | |
| bool | triggerEvaluation = false | |||
| ) |
Convenience function for getting the value of a double-precision floating point parameter while optionally triggering the evaluation chain.
| name | The name of the parameter whose value to return. | |
| triggerEvaluation | Flag to control whether to trigger the evaluation chain. |
| QString Node::getStringValue | ( | const QString & | name, | |
| bool | triggerEvaluation = false | |||
| ) |
Convenience function for getting the value of a string parameter while optionally triggering the evaluation chain.
| name | The name of the parameter whose value to return. | |
| triggerEvaluation | Flag to control whether to trigger the evaluation chain. |
| QColor Node::getColorValue | ( | const QString & | name, | |
| bool | triggerEvaluation = false | |||
| ) |
Convenience function for getting the value of a color parameter while optionally triggering the evaluation chain.
| name | The name of the parameter whose value to return. | |
| triggerEvaluation | Flag to control whether to trigger the evaluation chain. |
| Ogre::Vector3 Node::getVectorValue | ( | const QString & | name, | |
| bool | triggerEvaluation = false | |||
| ) |
Convenience function for getting the value of an OGRE vector parameter while optionally triggering the evaluation chain.
| name | The name of the parameter whose value to return. | |
| triggerEvaluation | Flag to control whether to trigger the evaluation chain. |
| Ogre::SceneNode * Node::getSceneNodeValue | ( | const QString & | name, | |
| bool | triggerEvaluation = false | |||
| ) |
Convenience function for getting the value of a scene node parameter while optionally triggering the evaluation chain.
| name | The name of the parameter whose value to return. | |
| triggerEvaluation | Flag to control whether to trigger the evaluation chain. |
| Ogre::TexturePtr Node::getTextureValue | ( | const QString & | name, | |
| bool | triggerEvaluation = false | |||
| ) |
Convenience function for getting the value of an OGRE texture parameter while optionally triggering the evaluation chain.
| name | The name of the parameter whose value to return. | |
| triggerEvaluation | Flag to control whether to trigger the evaluation chain. |
| ParameterGroup * Node::getGroupValue | ( | const QString & | name, | |
| bool | triggerEvaluation = false | |||
| ) |
Convenience function for getting the value of a parameter group parameter while optionally triggering the evaluation chain.
| name | The name of the parameter whose value to return. | |
| triggerEvaluation | Flag to control whether to trigger the evaluation chain. |
| void Node::setValue | ( | const QString & | name, | |
| const QVariant & | value, | |||
| bool | triggerDirtying = false | |||
| ) |
Sets the value of the parameter with the given name to the given value while optionally triggering the dirtying chain.
Public Value Setter Functions.
| name | The name of the parameter to set the value for. | |
| value | The new value for the parameter with the given name. | |
| triggerDirtying | Flag to control whether to trigger the dirtying chain. |
| name | The name of the parameter to set the value for. | |
| value | The new value for the parameter with the given name. | |
| triggerDirtying | Flag to control whether to trigger the dirtying chain. |
| void Node::setValue | ( | const QString & | name, | |
| bool | value, | |||
| bool | triggerDirtying = false | |||
| ) |
Convenience function for setting the value of a boolean parameter while optionally triggering the dirtying chain.
| name | The name of the parameter to set the value for. | |
| value | The value to set for the parameter with the given name. | |
| triggerDirtying | Flag to control whether to trigger the dirtying chain. |
| void Node::setValue | ( | const QString & | name, | |
| int | value, | |||
| bool | triggerDirtying = false | |||
| ) |
Convenience function for setting the value of an integer parameter while optionally triggering the dirtying chain.
| name | The name of the parameter to set the value for. | |
| value | The value to set for the parameter with the given name. | |
| triggerDirtying | Flag to control whether to trigger the dirtying chain. |
| void Node::setValue | ( | const QString & | name, | |
| unsigned int | value, | |||
| bool | triggerDirtying = false | |||
| ) |
Convenience function for setting the value of an unsigned integer parameter while optionally triggering the dirtying chain.
| name | The name of the parameter to set the value for. | |
| value | The value to set for the parameter with the given name. | |
| triggerDirtying | Flag to control whether to trigger the dirtying chain. |
| void Node::setValue | ( | const QString & | name, | |
| double | value, | |||
| bool | triggerDirtying = false | |||
| ) |
Convenience function for setting the value of a double-precision floating point parameter while optionally triggering the dirtying chain.
| name | The name of the parameter to set the value for. | |
| value | The value to set for the parameter with the given name. | |
| triggerDirtying | Flag to control whether to trigger the dirtying chain. |
| void Node::setValue | ( | const QString & | name, | |
| char * | value, | |||
| bool | triggerDirtying = false | |||
| ) |
Convenience function for setting the value of a string parameter while optionally triggering the dirtying chain.
| name | The name of the parameter to set the value for. | |
| value | The value to set for the parameter with the given name. | |
| triggerDirtying | Flag to control whether to trigger the dirtying chain. |
| void Node::setValue | ( | const QString & | name, | |
| const char * | value, | |||
| bool | triggerDirtying = false | |||
| ) |
Convenience function for setting the value of a string parameter while optionally triggering the dirtying chain.
| name | The name of the parameter to set the value for. | |
| value | The value to set for the parameter with the given name. | |
| triggerDirtying | Flag to control whether to trigger the dirtying chain. |
| void Node::setValue | ( | const QString & | name, | |
| const QString & | value, | |||
| bool | triggerDirtying = false | |||
| ) |
Convenience function for setting the value of a string parameter while optionally triggering the dirtying chain.
If the parameter with the given name is not a string parameter the given value will be converted according to the parameter's type.
| name | The name of the parameter to set the value for. | |
| value | The value to set for the parameter with the given name. | |
| triggerDirtying | Flag to control whether to trigger the dirtying chain. |
| void Node::setValue | ( | const QString & | name, | |
| const QColor & | value, | |||
| bool | triggerDirtying = false | |||
| ) |
Convenience function for setting the value of a color parameter while optionally triggering the dirtying chain.
| name | The name of the parameter to set the value for. | |
| value | The value to set for the parameter with the given name. | |
| triggerDirtying | Flag to control whether to trigger the dirtying chain. |
| void Node::setValue | ( | const QString & | name, | |
| const Ogre::Vector3 & | value, | |||
| bool | triggerDirtying = false | |||
| ) |
Convenience function for setting the value of an OGRE vector parameter while optionally triggering the dirtying chain.
| name | The name of the parameter to set the value for. | |
| value | The value to set for the parameter with the given name. | |
| triggerDirtying | Flag to control whether to trigger the dirtying chain. |
| void Node::setValue | ( | const QString & | name, | |
| Ogre::SceneNode * | value, | |||
| bool | triggerDirtying = false | |||
| ) |
Convenience function for setting the value of a scene node parameter while optionally triggering the dirtying chain.
| name | The name of the parameter to set the value for. | |
| value | The value to set for the parameter with the given name. | |
| triggerDirtying | Flag to control whether to trigger the dirtying chain. |
| void Node::setValue | ( | const QString & | name, | |
| const Ogre::TexturePtr | value, | |||
| bool | triggerDirtying = false | |||
| ) |
Convenience function for setting the value of an OGRE texture parameter while optionally triggering the dirtying chain.
| name | The name of the parameter to set the value for. | |
| value | The value to set for the parameter with the given name. | |
| triggerDirtying | Flag to control whether to trigger the dirtying chain. |
| void Node::setValue | ( | const QString & | name, | |
| ParameterGroup * | value, | |||
| bool | triggerDirtying = false | |||
| ) |
Convenience function for setting the value of a parameter group parameter while optionally triggering the dirtying chain.
| name | The name of the parameter to set the value for. | |
| value | The value to set for the parameter with the given name. | |
| triggerDirtying | Flag to control whether to trigger the dirtying chain. |
| void Node::setChangeFunction | ( | const QString & | name, | |
| const char * | changeFunction | |||
| ) |
Sets the function to call when a parameter's value changes.
Public Callback Setter Functions.
Convenience function that calls setChangeFunction for the parameter with the given name.
| name | The name of the parameter to set the change function for. | |
| changeFunction | The name of the function to call when the parameter's value changes. |
Convenience function that calls setChangeFunction for the parameter with the given name.
| name | The name of the parameter to set the change function for. | |
| changeFunction | The name of the function to call when the parameter's value changes. |
| void Node::setProcessingFunction | ( | const QString & | name, | |
| const char * | processingFunction | |||
| ) |
Sets the function to use for computing a parameter's value.
Convenience function that calls setProcessingFunction for the parameter with the given name.
| name | The name of the parameter to set the processing function for. | |
| processingFunction | The name of the function to use for computing the parameter's value. |
| void Node::setCommandFunction | ( | const QString & | name, | |
| const char * | commandFunction | |||
| ) |
Sets the function to use for executing the command represented by a parameter.
Convenience function that calls setCommandFunction for the parameter with the given name.
| name | The name of the parameter to set the command function for. | |
| commandFunction | The function to use for executing the command represented by the parameter. |
| void Node::notifyChange | ( | ) |
Notify when something has changed in the node. (Parameters added/deleted).
Public Misc Functions.
Notify when something has changed in the node. (Parameters added/deleted)
| void Node::setUpTimeDependencies | ( | Parameter * | timeParameter | ) | [virtual] |
Sets up time dependencies for node parameters.
Can be implemented in derived classes to set up parameter affections from the given time parameter to specific parameters of the node that should be evaluated when the scene time represented by the given time parameter changes.
The default implementation does nothing.
| timeParameter | The parameter representing the current scene time. |
The default implementation does nothing.
| timeParameter | The parameter representing the current scene time. | |
| slot | The slot which should be triggered when frame has changed |
| void Node::evaluateConnection | ( | Connection * | connection | ) | [virtual] |
Evaluates the given new connection for the node.
The default implementation does nothing.
| connection | The new connection to evaluate. | |
| connection | The new connection to evaluate. |
| void Node::setEvaluate | ( | bool | evaluate | ) | [virtual, slot] |
Sets whether this node should be evaluated in the network.
Public Slots.
| evaluate | The new value for eval flag of this node. |
| evaluate | The new value for eval flag of this node. |
Reimplemented in ViewNode.
| void Node::frameChanged | ( | int | ) | [signal] |
Signal that is emitted when current frame has changed.
| void Node::nodeChanged | ( | ) | [signal] |
Signal that is emitted when something has changed in the node. (Parameters added/deleted).
| void Node::nodeNameChanged | ( | const QString & | name | ) | [signal] |
Signal that is emitted when the node's name has changed.
| void Node::selectedChanged | ( | bool | selected | ) | [signal] |
Signal that is emitted when the selected state of the node has changed.
| selected | The new selected state of the node. |
| void Node::deleteObject | ( | const QString & | name | ) | [signal] |
Signal that is emitted in order to delete a certain object (through SceneModel).
| name | The name of the object. |
| void Node::selectDeselectObject | ( | const QString & | name | ) | [signal] |
Seim.
| Ogre::String Node::createUniqueName | ( | const QString & | objectName | ) | [protected] |
Creates a unique name from the given object name by adding the Node number.
Protected Methods.
| void Node::finalize | ( | ) | [protected, virtual] |
| void Node::prepareDelete | ( | ) | [virtual] |
int Node::s_numberOfInstances [static] |
int Node::s_totalNumberOfInstances [static] |
QString Node::m_name [protected] |
The name of the node.
Must be unique in the node network so that each node can be uniquely identified by its name.
QString Node::m_typeName [protected] |
The type of the node.
bool Node::m_dirty [protected] |
The dirty bit.
Parameter* Node::m_timeParameter [protected] |
The global time parameter to use when addressing image sequences.
bool Node::m_typeUnknown [protected] |
Flag that states whether a plugin for the node's type is available.
bool Node::m_evaluate [protected] |
Flag that states whether this node should be evaluated in the network.
bool Node::m_selected [protected] |
Flag that states whether this node is currently selected.
bool Node::m_selfEvaluating [protected] |
Flag that states whether the node is self-evaluating.
QString Node::m_searchText [protected] |
The text to use for filtering parameters of this node before creating editing widgets in a parameter editor panel.
ParameterGroup* Node::m_parameterRoot [private] |
The root of the tree of the node's parameters.
1.5.9