Allows subclasses to access important pointers within the application. More...
#include <AccessClass.h>
Public Member Functions | |
AccessClass () | |
~AccessClass () | |
void | setUIComponent (UIComponent *) |
Sets the object's UIComponent and copies all the necessary pointers from the UIComponent. | |
virtual void | updateChildComponents () |
Called within setUIComponent() to enable subclasses to update their members' pointers. | |
EditorViewport * | getEditorViewport () |
Returns a pointer to the application's EditorViewport. | |
DataViewport * | getDataViewport () |
Returns a pointer to the application's DataViewport. | |
ProcessorList * | getProcessorList () |
Returns a pointer to the application's ProcessorList. | |
ProcessorGraph * | getProcessorGraph () |
Returns a pointer to the application's ProcessorGraph. | |
ControlPanel * | getControlPanel () |
Returns a pointer to the application's DataViewport. | |
MessageCenter * | getMessageCenter () |
Returns a pointer to the application's MessageCenter. | |
UIComponent * | getUIComponent () |
Returns a pointer to the application's UIComponent. | |
AudioComponent * | getAudioComponent () |
Returns a pointer to the application's AudioComponent. |
Allows subclasses to access important pointers within the application.
When an object inherits from AccessClass, it makes it much more convenient to get and set pointers to other objects, such as the EditorViewport, ProcessorList, and ProcessorGraph that are used throughout the application. In addition, every subclass of AccessClass automatically adds the MessageCenter as an ActionListener, which means messages sent by that object [using sendActionMessage("Message.")] will appear in the MessageCenter by default.
AccessClass::AccessClass | ( | ) |
AccessClass::~AccessClass | ( | ) |
void AccessClass::setUIComponent | ( | UIComponent * | ) |
Sets the object's UIComponent and copies all the necessary pointers from the UIComponent.
Automatically adds the MessageCenter as an ActionListener, which causes messages sent using sendActionMessage("Message") to appear in the MessageCenter.
|
virtual |
Called within setUIComponent() to enable subclasses to update their members' pointers.
EditorViewport* AccessClass::getEditorViewport | ( | ) |
Returns a pointer to the application's EditorViewport.
DataViewport* AccessClass::getDataViewport | ( | ) |
Returns a pointer to the application's DataViewport.
ProcessorList* AccessClass::getProcessorList | ( | ) |
Returns a pointer to the application's ProcessorList.
ProcessorGraph* AccessClass::getProcessorGraph | ( | ) |
Returns a pointer to the application's ProcessorGraph.
ControlPanel* AccessClass::getControlPanel | ( | ) |
Returns a pointer to the application's DataViewport.
MessageCenter* AccessClass::getMessageCenter | ( | ) |
Returns a pointer to the application's MessageCenter.
UIComponent* AccessClass::getUIComponent | ( | ) |
Returns a pointer to the application's UIComponent.
AudioComponent* AccessClass::getAudioComponent | ( | ) |
Returns a pointer to the application's AudioComponent.