#include <StateChangeNotifier.h>
Inheritance diagram for tecplot::toolbox::StateChangeNotifier:

Public Member Functions | |
| StateChangeNotifier (StateChangeMode_e stateChangeMode=StateChangeMode_v100) | |
| virtual | ~StateChangeNotifier () |
| void | addListener (StateChangeListenerInterface *const listener) throw (OutOfMemoryException) |
| Register a listener with the StateChangeNotifier. | |
| void | removeListener (StateChangeListenerInterface *const listener) |
| Remove a listener from the StateChangeNotifier. | |
| bool | isListening (StateChangeListenerInterface *const listener) |
| Checks to see if a particular listener is registered with the StateChangeNotifier. | |
| tecplot::toolbox::StringList | getStyleParams () |
| Get the supplimental style parameters associated with the last StateChange_Style notification. | |
| std::string | getStyleParam (int paramOffset) |
| Get an individual style parameter which is associated with the last StateChange_Style notification. | |
| tecplot::toolbox::Set | getObjectSet () |
| Get the object set associated with the last StateChange_Style notification. | |
| LgIndex_t | getOffset1 () |
| Get the offset1 value associated with the last StateChange_Style notification. | |
| LgIndex_t | getOffset2 () |
| Get the offset2 value associated with the last StateChange_Style notification. | |
Protected Member Functions | |
| virtual void | stateChanged (StateChange_e stateChange) |
| Override this method if you wish to do something special with the state change notification. | |
State Change Listeners must be of type StateChangeListenerInterface.
| tecplot::toolbox::StateChangeNotifier::StateChangeNotifier | ( | StateChangeMode_e | stateChangeMode = StateChangeMode_v100 |
) |
| virtual tecplot::toolbox::StateChangeNotifier::~StateChangeNotifier | ( | ) | [virtual] |
| void tecplot::toolbox::StateChangeNotifier::addListener | ( | StateChangeListenerInterface *const | listener | ) | throw (OutOfMemoryException) [virtual] |
Register a listener with the StateChangeNotifier.
| listener | Pointer to the listener class that has implemented the StateChangeListenerInterface |
| OutOfMemoryException | OutOfMemoryException is thrown if listener could not be added. |
Implements tecplot::toolbox::StateChangeNotifierInterface.
| void tecplot::toolbox::StateChangeNotifier::removeListener | ( | StateChangeListenerInterface *const | listener | ) | [virtual] |
Remove a listener from the StateChangeNotifier.
| listener | Pointer to the listener class that has implemented the StateChangeListenerInterface |
Implements tecplot::toolbox::StateChangeNotifierInterface.
| bool tecplot::toolbox::StateChangeNotifier::isListening | ( | StateChangeListenerInterface *const | listener | ) | [virtual] |
Checks to see if a particular listener is registered with the StateChangeNotifier.
| listener | Pointer to the listener class that has implemented the StateChangeListenerInterface |
Implements tecplot::toolbox::StateChangeNotifierInterface.
| tecplot::toolbox::StringList tecplot::toolbox::StateChangeNotifier::getStyleParams | ( | ) |
Get the supplimental style parameters associated with the last StateChange_Style notification.
This information is transient and only available from the StateChange listener's stateChanged method.
| std::string tecplot::toolbox::StateChangeNotifier::getStyleParam | ( | int | paramOffset | ) |
Get an individual style parameter which is associated with the last StateChange_Style notification.
This information is transient and only available from the StateChange listener's stateChanged method.
| paramOffset | An integer offset to the desired P-value. Values of 1-5 are acceptible. |
| tecplot::toolbox::Set tecplot::toolbox::StateChangeNotifier::getObjectSet | ( | ) |
Get the object set associated with the last StateChange_Style notification.
This information is transient and only available from the StateChange listener's stateChanged method.
| LgIndex_t tecplot::toolbox::StateChangeNotifier::getOffset1 | ( | ) |
Get the offset1 value associated with the last StateChange_Style notification.
This information is transient and only available from the StateChange listener's stateChanged method.
| LgIndex_t tecplot::toolbox::StateChangeNotifier::getOffset2 | ( | ) |
Get the offset2 value associated with the last StateChange_Style notification.
This information is transient and only available from the StateChange listener's stateChanged method.
| virtual void tecplot::toolbox::StateChangeNotifier::stateChanged | ( | StateChange_e | stateChange | ) | [protected, virtual] |
Override this method if you wish to do something special with the state change notification.
For instance you might create a custom StateChangeNotifier that only notifies of StateChange_Style notifications. Be sure to call StateChangeNotifier::stateChangeCallback to notifiy the listeners.
| stateChange | The state change notification from Tecplot Engine. |
void MyStateChangeNotifier::stateChangeCallback(StateChange_e stateChange) { if ( stateChange == StateChange_Style ) StateChangeNotifier::stateChangeCallback(stateChange); }
Implements tecplot::toolbox::StateChangeListenerInterface.
1.5.2-20070506