17 #ifndef __igstkFLTKWidget_h
18 #define __igstkFLTKWidget_h
21 #pragma warning ( disable : 4018 )
24 #pragma warning( disable : 4284 )
28 class vtkRenderWindowInteractor;
32 #include <FL/Fl_Gl_Window.H>
72 void Print( std::ostream& os, ::itk::Indent indent=0)
const;
93 FLTKWidget(
int x,
int y,
int w,
int h, const
char *l="");
94 virtual ~FLTKWidget(
void );
102 void resize(
int x,
int y,
int w,
int h );
103 virtual
int handle(
int event );
108 void ReportInvalidRequestProcessing();
111 void ReportInvalidViewConnectedProcessing();
114 void ConnectViewProcessing();
117 void DisableInteractionsProcessing();
120 void EnableInteractionsProcessing();
124 void SetRenderer( vtkRenderer * renderer );
128 void SetRenderWindowInteractor( vtkRenderWindowInteractor * interactor );
131 void SetRenderWindowID();
135 bool m_InteractionHandling;
139 ProxyType m_ProxyView;
141 vtkRenderer * m_Renderer;
143 bool m_RenderWindowIDSet;
145 vtkRenderWindowInteractor * m_RenderWindowInteractor;
148 igstkDeclareStateMacro( Idle );
149 igstkDeclareStateMacro( ViewConnected );
152 igstkDeclareInputMacro( ValidView );
153 igstkDeclareInputMacro( InValidView );
154 igstkDeclareInputMacro( EnableInteractions );
155 igstkDeclareInputMacro( DisableInteractions );
160 std::ostream& operator<<(std::ostream& os, const FLTKWidget& o);
#define igstkTypeMacro(thisClass, superclass)
Type Macro defines the GetNameOfClass() method for every class where it is invoked.
#define igstkStateMachineMacro()
This is the StateMachine Macro to be used with non-templated classes.
Display graphical representations of surgical scenes.
#define igstkLoggerMacro()
Macro that defines all the standard elements related to the Logger.
Link widget classes with the view class.