21 #ifndef __vtkLightBoxRendererManager_h
22 #define __vtkLightBoxRendererManager_h
24 #include <vtkObject.h>
25 #include <vtkVersion.h>
27 #include "ctkVisualizationVTKCoreExport.h"
29 class vtkRenderWindow;
33 class vtkCornerAnnotation;
34 class vtkAlgorithmOutput;
40 void PrintSelf(ostream& os, vtkIndent indent) VTK_OVERRIDE;
43 void Initialize(vtkRenderWindow* renderWindow);
50 void SetRendererLayer(
int newLayer);
53 vtkRenderWindow* GetRenderWindow();
56 #if (VTK_MAJOR_VERSION <= 5)
57 void SetImageData(vtkImageData* newImageData);
59 void SetImageDataConnection(vtkAlgorithmOutput* newImageDataConnection);
64 vtkCamera* GetActiveCamera();
67 void SetActiveCamera(vtkCamera* newActiveCamera);
74 int GetRenderWindowItemCount();
77 vtkRenderer* GetRenderer(
int id);
81 vtkRenderer* GetRenderer(
int rowId,
int columnId);
86 enum RenderWindowLayoutType{LeftRightTopBottom = 0, LeftRightBottomTop};
89 int GetRenderWindowLayoutType()
const;
92 void SetRenderWindowLayoutType(
int layoutType);
95 void SetRenderWindowLayout(
int rowCount,
int columnCount);
99 void SetRenderWindowRowCount(
int newRowCount);
103 int GetRenderWindowRowCount();
107 void SetRenderWindowColumnCount(
int newColumnCount);
111 int GetRenderWindowColumnCount();
114 bool GetHighlightedById(
int id);
119 bool GetHighlighted(
int rowId,
int columnId);
122 void SetHighlightedById(
int id,
bool highlighted);
126 void SetHighlighted(
int rowId,
int columnId,
bool highlighted);
129 void SetHighlightedBoxColor(
double highlightedBoxColor[3]);
135 double* GetHighlightedBoxColor()
const;
142 inline int ComputeRenderWindowItemId(
int rowId,
int columnId);
145 void SetCornerAnnotationText(
const std::string& text);
148 const std::string GetCornerAnnotationText()
const;
152 vtkCornerAnnotation * GetCornerAnnotation()
const;
153 void SetCornerAnnotation(vtkCornerAnnotation* annotation);
156 void SetBackgroundColor(
const double newBackgroundColor[3]);
159 double* GetBackgroundColor()
const;
162 void SetColorLevel(
double colorLevel);
165 double GetColorLevel()
const;
168 void SetColorWindow(
double colorWindow);
171 double GetColorWindow()
const;
174 void SetColorWindowAndLevel(
double colorWindow,
double colorLevel);
187 vtkInternal* Internal;
~vtkLightBoxRendererManager()
vtkLightBoxRendererManager()