ALBA
Public Types | Public Member Functions | Protected Member Functions | Protected Attributes | Friends | List of all members
albaInteractorSlider Class Reference

#include <albaInteractorSlider.h>

Inheritance diagram for albaInteractorSlider:
Inheritance graph
[legend]
Collaboration diagram for albaInteractorSlider:
Collaboration graph
[legend]

Public Types

enum  SLIDER_EVENT_ID { ID_VALUE_CHANGED = MINID }
 
enum  SLIDER_ORIENTATION { HORIZONTAL = 0 , VERTICAL }
 
- Public Types inherited from albaInteractorPER
enum  modalities { SINGLE_BUTTON =0 , MULTI_BUTTON }
 
- Public Types inherited from albaInteractor
enum  modalities { SINGLE_BUTTON_MODE =0 , MULTI_BUTTON_MODE }
 

Public Member Functions

 albaInteractorSlider ()
 
 albaInteractorSlider (albaView *view, int orientation=HORIZONTAL, double value=0.0, double minValue=-1.0, double maxValue=1.0)
 
 albaInteractorSlider (albaView *view, int orientation, double value, double minValue, double maxValue, int x, int y, int lenght)
 
virtual ~albaInteractorSlider ()
 
 albaTypeMacro (albaInteractorSlider, albaInteractorPER)
 
virtual void OnEvent (albaEventBase *event)
 
void ShowSlider (bool show)
 
void ShowText (bool show)
 
void SetRendererByView (albaView *view)
 
void SetSteps (int steps)
 
void SetRange (double min, double max)
 
double GetValue ()
 
void SetValue (double value)
 
void OnTimer (wxTimerEvent &event)
 
- Public Member Functions inherited from albaInteractorPER
 albaTypeMacro (albaInteractorPER, albaInteractor)
 
virtual void EnableSelect (bool enable)
 
virtual void FlyToMode ()
 
bool IsInteracting (albaDevice *device, int button=-1)
 
virtual int StartInteraction (albaDevice *device, int button)
 
virtual int StopInteraction (albaDevice *device, int button)
 
virtual void OnEvent (albaEventBase *event)
 
void OnVmeSelected (albaVME *vme)
 
void SetMode (int mode)
 
int GetMode ()
 
void SetModeToSingleButton ()
 
void SetModeToMultiButton ()
 
albaInteractorGetCameraMouseInteractor ()
 
albaInteractorGetCameraInteractor ()
 
- Public Member Functions inherited from albaInteractor
 albaInteractor ()
 
virtual ~albaInteractor ()
 
 ALBA_ID_DEC (INTERACTION_STARTED)
 
 ALBA_ID_DEC (INTERACTION_STOPPED)
 
 ALBA_ID_DEC (BUTTON_DOWN)
 
 ALBA_ID_DEC (BUTTON_UP)
 
 albaAbstractTypeMacro (albaInteractor, albaAgent)
 
virtual void SetRendererAndView (vtkRenderer *ren, albaView *view)
 
vtkRenderer * GetRenderer ()
 
albaViewGetView ()
 
albaDeviceGetDevice ()
 
virtual void SetDevice (albaDevice *)
 
virtual void SetVME (albaVME *vme)
 
void SetProp (vtkProp3D *prop)
 
void SetIgnoreTriggerEvents (bool flag)
 
int GetIgnoreTriggerEvents (bool flag)
 
void IgnoreTriggerEventsOn ()
 
void IgnoreTriggerEventsOff ()
 
void SetStartInteractionEvent (albaID event)
 
albaID GetStartInteractionEvent ()
 
void SetStopInteractionEvent (albaID event)
 
albaID GetStopInteractionEvent ()
 
void SetStartButton (int btn)
 
int GetStartButton ()
 
void SetModifiers (int mod)
 
int GetModifiers ()
 
int GetCurrentButton ()
 
unsigned long GetCurrentModifier ()
 
virtual int StartInteraction (albaDevice *device)
 
virtual int StopInteraction (albaDevice *device)
 
virtual bool IsInteracting ()
 
virtual bool IsInteracting (albaDevice *device)
 
void SetButtonMode (int mode)
 
int GetButtonMode ()
 
void SetButtonModeToSingleButton ()
 
void SetButtonModeToMultiButton ()
 
virtual void OnEvent (albaEventBase *event)
 
void TestModeOn ()
 
void TestModeOff ()
 
bool GetTestMode ()
 
- 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 albaObjectNewObjectInstance () const =0
 
virtual const albaTypeIDGetTypeId () 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)
 
albaObserverCallbackAddObserverCallback (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 albaObserverGetListener ()
 
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)
 

Protected Member Functions

virtual void OnLeftButtonDown (albaEventInteraction *e)
 
virtual void OnLeftButtonUp (albaEventInteraction *e)
 
virtual void OnMove (albaEventInteraction *e)
 
void UpdatePadPosition (double pos)
 
void UpdateSlider ()
 
double ValueToPosition (double value)
 
bool IsInBound (double *pos)
 
- Protected Member Functions inherited from albaInteractorPER
 albaInteractorPER ()
 
virtual ~albaInteractorPER ()
 
virtual int OnStartInteraction (albaEventInteraction *e)
 
virtual int OnStopInteraction (albaEventInteraction *e)
 
virtual void OnButtonDown (albaEventInteraction *e)
 
virtual void OnButtonUp (albaEventInteraction *e)
 
virtual void OnLeftButtonDown (albaEventInteraction *e)
 
virtual void OnLeftButtonUp (albaEventInteraction *e)
 
virtual void OnMiddleButtonDown (albaEventInteraction *e)
 
virtual void OnMiddleButtonUp (albaEventInteraction *e)
 
virtual void OnRightButtonDown (albaEventInteraction *e)
 
virtual void OnRightButtonUp (albaEventInteraction *e)
 
virtual void OnMove (albaEventInteraction *e)
 
virtual void OnChar (albaEventInteraction *e)
 
virtual void FlyTo (albaEventInteraction *e, int numstep=20, double zoom=1)
 
void InsertDevice (albaDevice *device, int button)
 
void RemoveDevice (albaDevice *device)
 
void SetCurrentBehavior (albaDevice *device, albaInteractor *inter)
 
albaInteractorGetCurrentBehavior (albaDevice *device)
 
void SetPickedVME (albaDevice *device, albaVME *vme)
 
albaVMEGetPickedVME (albaDevice *device)
 
- Protected Member Functions inherited from albaInteractor
virtual int OnStartInteraction (albaEventInteraction *e)
 
virtual int OnStopInteraction (albaEventInteraction *e)
 
virtual void OnButtonDown (albaEventInteraction *e)
 
virtual void OnButtonUp (albaEventInteraction *e)
 
void ComputeDisplayToWorld (double x, double y, double z, double worldPt[4])
 
void ComputeWorldToDisplay (double x, double y, double z, double displayPt[3])
 
- Protected Member Functions inherited from albaAgent
 albaAgent ()
 
virtual ~albaAgent ()
 
virtual int InternalInitialize ()
 
virtual void InternalShutdown ()
 
void InvokeEvent (albaEventBase &event, albaID channel=-1)
 
void InvokeEvent (albaEventBase *event, albaID channel=-1)
 
void InvokeEvent (void *sender, int id, albaID channel=MCH_UP, void *data=NULL)
 

Protected Attributes

albaDeviceButtonsPadMousem_Mouse
 
vtkRenderer * m_Renderer
 
albaViewm_View
 
vtkRenderWindow * m_RenderWindow
 
vtkCoordinate * m_Coordinate
 
bool m_ParallelView
 
int m_SliderPosition [2]
 
int m_SliderLenght
 
int m_Orientation
 
int m_Bounds [4]
 
bool m_IsInBound
 
bool m_CanEditLine
 
double m_Value
 
double m_MinValue
 
double m_MaxValue
 
double m_Steps
 
double m_ValStep
 
double m_OldValue
 
vtkLineSource * m_EditLineSource
 
vtkPolyDataMapper2D * m_EditLineMapper
 
vtkActor2D * m_EditLineActor
 
double m_LineP1 [3]
 
double m_LineP2 [3]
 
float m_LineWidth
 
double m_EditLineColor [3]
 
double m_TextColor [3]
 
vtkLineSource * m_DescreaseLineSource
 
vtkPolyDataMapper2D * m_DescreaseLineMapper
 
vtkActor2D * m_DescreaseLineActor
 
vtkLineSource * m_IncreaseLineSource
 
vtkPolyDataMapper2D * m_IncreaseLineMapper
 
vtkActor2D * m_IncreaseLineActor
 
vtkLineSource * m_PadLineSource
 
vtkPolyDataMapper2D * m_PadLineMapper
 
vtkActor2D * m_PadLineActor
 
double m_PadLineColor [3]
 
int m_PadPosition
 
int m_PadDirection
 
int m_PadStep
 
int m_PadWidth
 
bool m_ShowText
 
vtkTextMapper * m_TextValueMapper
 
vtkTextActor * m_TextValueActor
 
vtkTextActor * m_TextMinActor
 
vtkTextActor * m_TextMaxActor
 
int * m_ViewSize
 
- Protected Attributes inherited from albaInteractorPER
bool m_FlyToFlag
 
bool m_DraggingLeft
 
bool m_CanSelect
 
bool m_ShowContextMenu
 
int m_Mode
 
int m_FirstTime
 
albaInteractorm_CameraBehavior
 
albaInteractorm_CameraMouseBehavior
 
std::map< albaID, DeviceItemm_Devices
 
- Protected Attributes inherited from albaInteractor
albaDevicem_Device
 
bool m_DeviceIsSet
 
albaID m_StartInteractionEvent
 
albaID m_StopInteractionEvent
 
int m_IgnoreTriggerEvents
 
int m_InteractionFlag
 
int m_StartButton
 
unsigned long m_Modifiers
 
int m_CurrentButton
 
unsigned long m_CurrentModifier
 
int m_ButtonMode
 
int m_ButtonsCounter
 
albaVMEm_VME
 
albaViewm_View
 
vtkALBASmartPointer< vtkRenderer > m_Renderer
 
vtkALBASmartPointer< vtkProp3D > m_Prop
 
bool m_TestMode
 
- Protected Attributes inherited from albaAgent
albaString m_Name
 
bool m_Initialized
 
std::vector< albaEventBroadcaster * > m_Channels
 
- Protected Attributes inherited from albaReferenceCounted
int m_ReferenceCount
 
- Protected Attributes inherited from albaObject
bool m_HeapFlag
 
- Protected Attributes inherited from albaEventBroadcaster
albaObserversList m_Observers
 
albaID m_Channel
 
- Protected Attributes inherited from albaEventSender
albaObserverm_Listener
 

Friends

class albaInteractorSliderTest
 

Additional Inherited Members

- Static Public Member Functions inherited from albaObject
static const char * GetStaticTypeName ()
 
static bool IsStaticType (const char *type_name)
 
static bool IsStaticType (const albaTypeID &type_id)
 
static const albaTypeIDGetStaticTypeId ()
 
static albaObjectSafeDownCast (albaObject *o)
 
- Protected Types inherited from albaEventBroadcaster
typedef std::list< albaObserver * > albaObserversList
 

Detailed Description

Definition at line 45 of file albaInteractorSlider.h.

Member Enumeration Documentation

◆ SLIDER_EVENT_ID

Enumerator
ID_VALUE_CHANGED 

Definition at line 49 of file albaInteractorSlider.h.

◆ SLIDER_ORIENTATION

Enumerator
HORIZONTAL 
VERTICAL 

Definition at line 54 of file albaInteractorSlider.h.

Constructor & Destructor Documentation

◆ albaInteractorSlider() [1/3]

albaInteractorSlider::albaInteractorSlider ( )

◆ albaInteractorSlider() [2/3]

albaInteractorSlider::albaInteractorSlider ( albaView view,
int  orientation = HORIZONTAL,
double  value = 0.0,
double  minValue = -1.0,
double  maxValue = 1.0 
)

◆ albaInteractorSlider() [3/3]

albaInteractorSlider::albaInteractorSlider ( albaView view,
int  orientation,
double  value,
double  minValue,
double  maxValue,
int  x,
int  y,
int  lenght 
)

◆ ~albaInteractorSlider()

virtual albaInteractorSlider::~albaInteractorSlider ( )
virtual

Member Function Documentation

◆ albaTypeMacro()

albaInteractorSlider::albaTypeMacro ( albaInteractorSlider  ,
albaInteractorPER   
)

◆ OnEvent()

virtual void albaInteractorSlider::OnEvent ( albaEventBase event)
virtual

Process events coming from input device.

Reimplemented from albaInteractorPER.

◆ ShowSlider()

void albaInteractorSlider::ShowSlider ( bool  show)

◆ ShowText()

void albaInteractorSlider::ShowText ( bool  show)
inline

Definition at line 71 of file albaInteractorSlider.h.

◆ SetRendererByView()

void albaInteractorSlider::SetRendererByView ( albaView view)

◆ SetSteps()

void albaInteractorSlider::SetSteps ( int  steps)

◆ SetRange()

void albaInteractorSlider::SetRange ( double  min,
double  max 
)

◆ GetValue()

double albaInteractorSlider::GetValue ( )
inline

Definition at line 78 of file albaInteractorSlider.h.

◆ SetValue()

void albaInteractorSlider::SetValue ( double  value)

◆ OnTimer()

void albaInteractorSlider::OnTimer ( wxTimerEvent &  event)

◆ OnLeftButtonDown()

virtual void albaInteractorSlider::OnLeftButtonDown ( albaEventInteraction e)
protectedvirtual

Reimplemented from albaInteractorPER.

◆ OnLeftButtonUp()

virtual void albaInteractorSlider::OnLeftButtonUp ( albaEventInteraction e)
protectedvirtual

Reimplemented from albaInteractorPER.

◆ OnMove()

virtual void albaInteractorSlider::OnMove ( albaEventInteraction e)
protectedvirtual

Reimplemented from albaInteractorPER.

◆ UpdatePadPosition()

void albaInteractorSlider::UpdatePadPosition ( double  pos)
protected

◆ UpdateSlider()

void albaInteractorSlider::UpdateSlider ( )
protected

◆ ValueToPosition()

double albaInteractorSlider::ValueToPosition ( double  value)
protected

◆ IsInBound()

bool albaInteractorSlider::IsInBound ( double *  pos)
protected

Friends And Related Function Documentation

◆ albaInteractorSliderTest

friend class albaInteractorSliderTest
friend

Definition at line 174 of file albaInteractorSlider.h.

Member Data Documentation

◆ m_Mouse

albaDeviceButtonsPadMouse* albaInteractorSlider::m_Mouse
protected

Definition at line 95 of file albaInteractorSlider.h.

◆ m_Renderer

vtkRenderer* albaInteractorSlider::m_Renderer
protected

Definition at line 96 of file albaInteractorSlider.h.

◆ m_View

albaView* albaInteractorSlider::m_View
protected

Definition at line 97 of file albaInteractorSlider.h.

◆ m_RenderWindow

vtkRenderWindow* albaInteractorSlider::m_RenderWindow
protected

Definition at line 98 of file albaInteractorSlider.h.

◆ m_Coordinate

vtkCoordinate* albaInteractorSlider::m_Coordinate
protected

Definition at line 100 of file albaInteractorSlider.h.

◆ m_ParallelView

bool albaInteractorSlider::m_ParallelView
protected

Definition at line 102 of file albaInteractorSlider.h.

◆ m_SliderPosition

int albaInteractorSlider::m_SliderPosition[2]
protected

Definition at line 105 of file albaInteractorSlider.h.

◆ m_SliderLenght

int albaInteractorSlider::m_SliderLenght
protected

Definition at line 106 of file albaInteractorSlider.h.

◆ m_Orientation

int albaInteractorSlider::m_Orientation
protected

Definition at line 107 of file albaInteractorSlider.h.

◆ m_Bounds

int albaInteractorSlider::m_Bounds[4]
protected

Definition at line 109 of file albaInteractorSlider.h.

◆ m_IsInBound

bool albaInteractorSlider::m_IsInBound
protected

Definition at line 110 of file albaInteractorSlider.h.

◆ m_CanEditLine

bool albaInteractorSlider::m_CanEditLine
protected

Definition at line 111 of file albaInteractorSlider.h.

◆ m_Value

double albaInteractorSlider::m_Value
protected

Definition at line 113 of file albaInteractorSlider.h.

◆ m_MinValue

double albaInteractorSlider::m_MinValue
protected

Definition at line 114 of file albaInteractorSlider.h.

◆ m_MaxValue

double albaInteractorSlider::m_MaxValue
protected

Definition at line 115 of file albaInteractorSlider.h.

◆ m_Steps

double albaInteractorSlider::m_Steps
protected

Definition at line 117 of file albaInteractorSlider.h.

◆ m_ValStep

double albaInteractorSlider::m_ValStep
protected

Definition at line 118 of file albaInteractorSlider.h.

◆ m_OldValue

double albaInteractorSlider::m_OldValue
protected

Definition at line 120 of file albaInteractorSlider.h.

◆ m_EditLineSource

vtkLineSource* albaInteractorSlider::m_EditLineSource
protected

Definition at line 123 of file albaInteractorSlider.h.

◆ m_EditLineMapper

vtkPolyDataMapper2D* albaInteractorSlider::m_EditLineMapper
protected

Definition at line 124 of file albaInteractorSlider.h.

◆ m_EditLineActor

vtkActor2D* albaInteractorSlider::m_EditLineActor
protected

Definition at line 125 of file albaInteractorSlider.h.

◆ m_LineP1

double albaInteractorSlider::m_LineP1[3]
protected

Definition at line 127 of file albaInteractorSlider.h.

◆ m_LineP2

double albaInteractorSlider::m_LineP2[3]
protected

Definition at line 128 of file albaInteractorSlider.h.

◆ m_LineWidth

float albaInteractorSlider::m_LineWidth
protected

Definition at line 130 of file albaInteractorSlider.h.

◆ m_EditLineColor

double albaInteractorSlider::m_EditLineColor[3]
protected

Definition at line 131 of file albaInteractorSlider.h.

◆ m_TextColor

double albaInteractorSlider::m_TextColor[3]
protected

Definition at line 133 of file albaInteractorSlider.h.

◆ m_DescreaseLineSource

vtkLineSource* albaInteractorSlider::m_DescreaseLineSource
protected

Definition at line 136 of file albaInteractorSlider.h.

◆ m_DescreaseLineMapper

vtkPolyDataMapper2D* albaInteractorSlider::m_DescreaseLineMapper
protected

Definition at line 137 of file albaInteractorSlider.h.

◆ m_DescreaseLineActor

vtkActor2D* albaInteractorSlider::m_DescreaseLineActor
protected

Definition at line 138 of file albaInteractorSlider.h.

◆ m_IncreaseLineSource

vtkLineSource* albaInteractorSlider::m_IncreaseLineSource
protected

Definition at line 140 of file albaInteractorSlider.h.

◆ m_IncreaseLineMapper

vtkPolyDataMapper2D* albaInteractorSlider::m_IncreaseLineMapper
protected

Definition at line 141 of file albaInteractorSlider.h.

◆ m_IncreaseLineActor

vtkActor2D* albaInteractorSlider::m_IncreaseLineActor
protected

Definition at line 142 of file albaInteractorSlider.h.

◆ m_PadLineSource

vtkLineSource* albaInteractorSlider::m_PadLineSource
protected

Definition at line 145 of file albaInteractorSlider.h.

◆ m_PadLineMapper

vtkPolyDataMapper2D* albaInteractorSlider::m_PadLineMapper
protected

Definition at line 146 of file albaInteractorSlider.h.

◆ m_PadLineActor

vtkActor2D* albaInteractorSlider::m_PadLineActor
protected

Definition at line 147 of file albaInteractorSlider.h.

◆ m_PadLineColor

double albaInteractorSlider::m_PadLineColor[3]
protected

Definition at line 149 of file albaInteractorSlider.h.

◆ m_PadPosition

int albaInteractorSlider::m_PadPosition
protected

Definition at line 151 of file albaInteractorSlider.h.

◆ m_PadDirection

int albaInteractorSlider::m_PadDirection
protected

Definition at line 152 of file albaInteractorSlider.h.

◆ m_PadStep

int albaInteractorSlider::m_PadStep
protected

Definition at line 153 of file albaInteractorSlider.h.

◆ m_PadWidth

int albaInteractorSlider::m_PadWidth
protected

Definition at line 154 of file albaInteractorSlider.h.

◆ m_ShowText

bool albaInteractorSlider::m_ShowText
protected

Definition at line 156 of file albaInteractorSlider.h.

◆ m_TextValueMapper

vtkTextMapper* albaInteractorSlider::m_TextValueMapper
protected

Definition at line 159 of file albaInteractorSlider.h.

◆ m_TextValueActor

vtkTextActor* albaInteractorSlider::m_TextValueActor
protected

Definition at line 160 of file albaInteractorSlider.h.

◆ m_TextMinActor

vtkTextActor* albaInteractorSlider::m_TextMinActor
protected

Definition at line 161 of file albaInteractorSlider.h.

◆ m_TextMaxActor

vtkTextActor* albaInteractorSlider::m_TextMaxActor
protected

Definition at line 162 of file albaInteractorSlider.h.

◆ m_ViewSize

int* albaInteractorSlider::m_ViewSize
protected

Definition at line 164 of file albaInteractorSlider.h.


The documentation for this class was generated from the following file: