00001
00002
00003
00004
00005
00006
00007
00008
00009
00010
00011
00012
00013
00014
00024 #ifndef __vtkRenderLargeImage_h
00025 #define __vtkRenderLargeImage_h
00026
00027 #include "vtkAlgorithm.h"
00028 #include "vtkImageData.h"
00029
00030 class vtkRenderer;
00031 class vtkActor2DCollection;
00032 class vtkCollection;
00033 class vtkRenderLargeImage2DHelperClass;
00034
00035 class VTK_HYBRID_EXPORT vtkRenderLargeImage : public vtkAlgorithm
00036 {
00037 public:
00038 static vtkRenderLargeImage *New();
00039 vtkTypeRevisionMacro(vtkRenderLargeImage,vtkAlgorithm);
00040 void PrintSelf(ostream& os, vtkIndent indent);
00041
00043
00044 vtkSetMacro(Magnification,int);
00045 vtkGetMacro(Magnification,int);
00047
00049 virtual void SetInput(vtkRenderer*);
00050
00052
00054 vtkGetObjectMacro(Input,vtkRenderer);
00056
00058 vtkImageData* GetOutput();
00059
00061
00062 virtual int ProcessRequest(vtkInformation*,
00063 vtkInformationVector**,
00064 vtkInformationVector*);
00066
00067 protected:
00068 vtkRenderLargeImage();
00069 ~vtkRenderLargeImage();
00070
00071 int Magnification;
00072 vtkRenderer *Input;
00073 void RequestData(vtkInformation *,
00074 vtkInformationVector **, vtkInformationVector *);
00075 void RequestInformation (vtkInformation *,
00076 vtkInformationVector **, vtkInformationVector *);
00077
00078
00079 virtual int FillOutputPortInformation(int port, vtkInformation* info);
00080
00081
00082 void Rescale2DActors();
00083
00084 void Shift2DActors(int x, int y);
00085
00086 void Restore2DActors();
00087
00088
00089 vtkRenderLargeImage2DHelperClass *StoredData;
00090
00091 private:
00092 vtkRenderLargeImage(const vtkRenderLargeImage&);
00093 void operator=(const vtkRenderLargeImage&);
00094 };
00095
00096 #endif