ALBA
|
#include <albaDeviceButtonsPadMouseDialog.h>
Public Member Functions | |
albaTypeMacro (albaDeviceButtonsPadMouseDialog, albaDeviceButtonsPadMouse) | |
void | SetView (albaView *view) |
Public Member Functions inherited from albaDeviceButtonsPadMouse | |
albaTypeMacro (albaDeviceButtonsPadMouse, albaDeviceButtonsPad) | |
virtual void | OnEvent (albaEventBase *event) |
void | SetLastPosition (double x, double y, unsigned long modifiers=0) |
const double * | GetLastPosition () |
void | GetLastPosition (double pos[2]) |
vtkRenderer * | GetRenderer () |
albaView * | GetView () |
vtkRenderWindowInteractor * | GetInteractor () |
albaRWIBase * | GetRWI () |
void | DisplayToNormalizedDisplay (double display[2]) |
void | NormalizedDisplayToDisplay (double normalized[2]) |
Public Member Functions inherited from albaDeviceButtonsPad | |
albaTypeMacro (albaDeviceButtonsPad, albaDevice) | |
void | SetButtonState (int num, bool value, unsigned long modifiers=0) |
bool | GetButtonState (int num) |
int | GetNumberOfButtons () |
void | SetNumberOfButtons (int num) |
Public Member Functions inherited from albaDevice | |
albaTypeMacro (albaDevice, albaAgentThreaded) | |
unsigned long | GetID () |
void | SetID (unsigned long id) |
virtual void | SetName (const char *name) |
void | SetAutoStart (bool flag) |
bool | GetAutoStart () |
void | AutoStartOn () |
void | AutoStartOff () |
virtual int | Start () |
virtual void | Stop () |
virtual int | StartUp () |
void | SetPersistentFlag (bool flag) |
bool | GetPersistentFlag () |
bool | IsPersistent () |
albaGUI * | GetGui () |
virtual void | UpdateGui () |
virtual void | OnEvent (albaEventBase *event) |
ALBA_ID_DEC (DEVICE_STARTED) | |
ALBA_ID_DEC (DEVICE_STOPPED) | |
Public Member Functions inherited from albaAgentThreaded | |
ALBA_ID_DEC (AGENT_ASYNC_DISPATCH) | |
albaTypeMacro (albaAgentThreaded, albaAgentEventQueue) | |
int | GetThreaded () |
void | SetThreaded (int flag) |
int | Update () |
virtual void | OnEvent (albaEventBase *event) |
void | AsyncSendEvent (albaObserver *target, albaEventBase *event, albaID channel=MCH_UP) |
void | AsyncSendEvent (albaObserver *target, void *sender, albaID id, albaID channel=MCH_UP, void *data=NULL) |
void | AsyncInvokeEvent (albaEventBase *event, albaID channel=MCH_UP) |
void | AsyncInvokeEvent (albaID id, albaID channel=MCH_UP, void *data=NULL) |
Public Member Functions inherited from albaAgentEventQueue | |
ALBA_ID_DEC (EVENT_DISPATCH) | |
albaTypeMacro (albaAgentEventQueue, albaAgent) | |
bool | PushEvent (albaEventBase &event) |
virtual bool | PushEvent (albaEventBase *event) |
bool | PushEvent (albaID event_id, void *sender, void *data=NULL) |
albaEventBase * | PeekEvent () |
albaEventBase * | PeekLastEvent () |
int | GetQueueSize () |
bool | IsQueueEmpty () |
virtual bool | DispatchEvents () |
void | SetDequeueMode (int mode) |
int | GetDequeueMode () |
void | SetDequeueModeToMultipleEvent () |
void | SetDequeueModeToSingleEvent () |
void | SetDispatchMode (int mode) |
int | GetDispatchMode () |
void | SetDispatchModeToSelfProcess () |
void | SetDispatchModeToBroadcast () |
void | SetPushMode (int mode) |
int | GetPushMode () |
void | SetPushModeToDispatchEvent () |
void | SetPushModeToPolling () |
Public Member Functions inherited from albaAgent | |
albaAbstractTypeMacro (albaAgent, albaReferenceCounted) | |
ALBA_ID_DEC (AGENT_INITIALIZE) | |
void | AddObserver (albaObserver *listener, albaID channel=MCH_UP) |
void | RemoveObserver (albaObserver *listener) |
void | RemoveAllObservers () |
virtual void | OnEvent (albaEventBase *event) |
bool | HasObservers (albaID channel) |
void | GetObservers (albaID channel, std::vector< albaObserver * > &olist) |
int | Initialize () |
void | Shutdown () |
int | IsInitialized () |
virtual void | SetName (const char *name) |
const char * | GetName () |
Public Member Functions inherited from albaReferenceCounted | |
albaReferenceCounted () | |
virtual | ~albaReferenceCounted () |
albaAbstractTypeMacro (albaReferenceCounted, albaObject) | |
virtual void | Delete () |
void | Register (void *obj) |
virtual void | UnRegister (void *obj) |
int | GetReferenceCount () |
void | SetReferenceCount (int) |
Public Member Functions inherited from albaObject | |
albaObject () | |
virtual | ~albaObject () |
virtual void | Delete () |
virtual const char * | GetTypeName () const |
virtual bool | IsA (const char *type_name) const |
virtual bool | IsA (const albaTypeID &type_id) const |
virtual albaObject * | NewObjectInstance () const =0 |
virtual const albaTypeID & | GetTypeId () const |
virtual void | Print (std::ostream &os, const int indent=0) const |
albaObject (const albaObject &c) | |
Public Member Functions inherited from albaObserver | |
albaObserver () | |
virtual | ~albaObserver () |
virtual void | OnEvent (albaEventBase *e)=0 |
Public Member Functions inherited from albaEventBroadcaster | |
albaEventBroadcaster (void *owner=NULL) | |
virtual | ~albaEventBroadcaster () |
albaEventBroadcaster (const albaEventBroadcaster &c) | |
void | AddObserver (albaObserver *obj) |
void | AddObserver (albaObserver &obj) |
albaObserverCallback * | AddObserverCallback (void(*f)(void *sender, albaID eid, void *clientdata, void *calldata)) |
bool | RemoveObserver (albaObserver *obj) |
void | RemoveAllObservers () |
bool | IsObserver (albaObserver *obj) |
bool | HasObservers () |
void | GetObservers (std::vector< albaObserver * > &olist) |
void | InvokeEvent (albaEventBase &e) |
void | InvokeEvent (albaEventBase *e) |
void | InvokeEvent (void *sender, albaID id=ID_NO_EVENT, void *data=NULL) |
void | SetChannel (albaID ch) |
albaID | GetChannel () |
virtual void | SetListener (albaObserver *o) |
Public Member Functions inherited from albaEventSender | |
albaEventSender () | |
virtual void | SetListener (albaObserver *o) |
virtual albaObserver * | GetListener () |
virtual bool | HasListener () |
virtual void | InvokeEvent (albaEventBase &e) |
virtual void | InvokeEvent (albaEventBase *e) |
virtual void | InvokeEvent (void *sender, albaID id=ID_NO_EVENT, void *data=NULL) |
Public Member Functions inherited from albaStorable | |
albaStorable () | |
int | Store (albaStorageElement *element) |
int | Restore (albaStorageElement *element) |
albaObject * | CastToObject () |
bool | IsStorable () |
class name : albaDeviceButtonsPadMouseDialog Add SetView method to albaDeviceButtonsPadMouse class to directly set a view to a mouse object.
This class avoid the following problem that occurs trying to use a albaDeviceButtonsPadMouse to interact with a view plugged inside a modal dialog: In a standard ALBA application to set a view to a mouse object you must use the method albaEventMacro(albaEvent(this, VIEW_SELECT, View); that rise a VIEW_SELECT event. Logic's OnEvent method trap this event but ignore the view parameter and use ViewManager to find the selected view; Views plugged into modal dialogs are not listed inside the view manager so this method don't set the desired view.
(An operation using this class is vph2OpAnnulusIdentification)
Definition at line 46 of file albaDeviceButtonsPadMouseDialog.h.
|
protected |
constructor.
|
protectedvirtual |
destructor.
albaDeviceButtonsPadMouseDialog::albaTypeMacro | ( | albaDeviceButtonsPadMouseDialog | , |
albaDeviceButtonsPadMouse | |||
) |
RTTI macro.
void albaDeviceButtonsPadMouseDialog::SetView | ( | albaView * | view | ) |
Set the selected view.