43 #ifndef SVK_DATA_VIEW_H
44 #define SVK_DATA_VIEW_H
47 #include <vtkRenderWindowInteractor.h>
48 #include <vtkRendererCollection.h>
49 #include <vtkCallbackCommand.h>
50 #include <vtkObject.h>
54 #include <vtkPlaneCollection.h>
55 #include <vtkCollectionIterator.h>
56 #include <vtkAbstractMapper.h>
70 class svkDataViewController;
87 virtual void SetInput(
svkImageData* data,
int index = 0 ) = 0;
91 virtual void RemoveInput(
int index = 0 );
101 virtual void SetSlice(
int slice ) = 0;
102 virtual int GetSlice( );
103 virtual void SetWindowLevelRange(
double lower,
double upper,
int index );
106 virtual void Refresh();
116 virtual void SetRWInteractor( vtkRenderWindowInteractor* rwi );
123 virtual void SetPropState(
int propIndex,
bool visible);
124 virtual void TurnPropOn(
int propIndex);
125 virtual void TurnPropOff(
int propIndex);
126 virtual bool IsPropOn(
int propIndex);
128 virtual void SetRendererState(
int rendererIndex,
bool visible);
129 virtual void TurnRendererOn(
int rendererIndex);
130 virtual void TurnRendererOff(
int rendererIndex);
131 virtual bool IsRendererOn(
int rendererIndex);
134 virtual void SetVisibility(
int actorIndex,
bool visible);
136 virtual vtkRenderer* GetRenderer(
int index);
137 virtual void SetRenderer(
int index, vtkRenderer* ren);
138 virtual vtkProp* GetProp(
int index);
139 virtual void SetProp(
int index, vtkProp* prop);
143 static void ClipMapperToTlcBrc(
svkImageData* data, vtkAbstractMapper* mapper,
int tlcBrc[2],
double clip_tolerance_row ,
double clip_tolerance_column,
double clip_tolerance_slice);
144 static void GetClippingIndexFromTlcBrc(
svkImageData* data,
int indexRange[2][3],
int tlcBrc[2] );
145 static void GetClippingPlanes( vtkPlaneCollection* planes,
svkImageData* data,
int* tlcBrc,
double clip_tolerance_row,
double clip_tolerance_column,
double clip_tolerance_slice );
146 static bool IsTlcBrcWithinData(
svkImageData* data,
int tlcBrc[2]);
147 static bool IsTlcBrcWithinData(
svkImageData* data,
int tlcID,
int brcID);
150 void ValidationOff();
158 vtkRenderWindowInteractor*
rwi;
184 static void UpdateView(
197 #endif //SVK_DATA_VIEW_H
vtkCallbackCommand * dataModifiedCallback
Definition: svkDataView.h:161
vector< bool > isPropVisible
Definition: svkDataView.h:170
vector< vtkRenderer * > renCollection
Definition: svkDataView.h:156
Definition: svkDataView.h:73
svkDcmHeader::Orientation orientation
Definition: svkDataView.h:162
vector< bool > isPropOn
Definition: svkDataView.h:168
vtkRenderWindowInteractor * rwi
Definition: svkDataView.h:158
int slice
Definition: svkDataView.h:166
Definition: svkDataViewController.h:72
vector< svkImageData * > dataVector
Definition: svkDataView.h:159
svkDataViewController * controller
Definition: svkDataView.h:160
virtual void UpdateProps()
Definition: svkDataView.h:180
vector< vtkProp * > propCollection
Definition: svkDataView.h:157
Definition: svkImageData.h:107
bool isValidationOn
Definition: svkDataView.h:171
vector< bool > isRendererOn
Definition: svkDataView.h:169