Go to the documentation of this file.00001
00002
00003
00004
00005
00006
00007
00008
00009
00010
00011
00012
00013
00014
00015
00016
00017
00018 #ifndef _vtk_Gradient_Background_h_
00019 #define _vtk_Gradient_Background_h_
00020
00021
00022 #include <mitkBaseData.h>
00023
00024 class vtkRenderer;
00025 class vtkMapper;
00026 class vtkActor;
00027 class vtkPolyDataMapper;
00028 class vtkLookupTable;
00029 class vtkPolyData;
00030 class vtkRenderWindow;
00031
00032 namespace mitk {
00033
00034 class RenderWindow;
00043 class MITK_CORE_EXPORT GradientBackground : public BaseData
00044 {
00045 public:
00046
00047 mitkClassMacro( GradientBackground, BaseData );
00048
00049 itkNewMacro( Self );
00050
00056 virtual void SetRenderWindow( vtkRenderWindow* renderWindow );
00057
00062 virtual vtkRenderWindow* GetRenderWindow();
00063
00069 virtual vtkRenderer* GetVtkRenderer();
00070
00074 virtual vtkActor* GetActor();
00075
00080 virtual vtkPolyDataMapper* GetMapper();
00081
00086 virtual void SetGradientColors( double r1, double g1, double b1, double r2, double g2, double b2);
00087 virtual void SetUpperColor(double r, double g, double b );
00088 virtual void SetLowerColor(double r, double g, double b );
00089
00094 virtual void Enable();
00095
00100 virtual void Disable();
00101
00106 virtual bool IsEnabled();
00107
00112 virtual void SetRequestedRegionToLargestPossibleRegion();
00113
00118 virtual bool RequestedRegionIsOutsideOfTheBufferedRegion();
00119
00124 virtual bool VerifyRequestedRegion();
00125
00130 virtual void SetRequestedRegion(itk::DataObject*);
00131
00132 protected:
00133
00137 GradientBackground();
00138
00142 ~GradientBackground();
00143
00144 vtkRenderWindow* m_RenderWindow;
00145
00146 vtkRenderer* m_Renderer;
00147
00148 vtkActor* m_Actor;
00149
00150 vtkPolyDataMapper* m_Mapper;
00151
00152 vtkLookupTable* m_Lut;
00153
00154 vtkPolyData* m_Plane;
00155 };
00156
00157 }
00158 #endif
00159
00160