VTK
|
00001 /*========================================================================= 00002 00003 Program: Visualization Toolkit 00004 Module: vtkRendererSource.h 00005 00006 Copyright (c) Ken Martin, Will Schroeder, Bill Lorensen 00007 All rights reserved. 00008 See Copyright.txt or http://www.kitware.com/Copyright.htm for details. 00009 00010 This software is distributed WITHOUT ANY WARRANTY; without even 00011 the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR 00012 PURPOSE. See the above copyright notice for more information. 00013 00014 =========================================================================*/ 00036 #ifndef __vtkRendererSource_h 00037 #define __vtkRendererSource_h 00038 00039 #include "vtkAlgorithm.h" 00040 #include "vtkImageData.h" // makes things a bit easier 00041 00042 class vtkRenderer; 00043 00044 class VTK_RENDERING_EXPORT vtkRendererSource : public vtkAlgorithm 00045 { 00046 public: 00047 static vtkRendererSource *New(); 00048 vtkTypeMacro(vtkRendererSource,vtkAlgorithm); 00049 void PrintSelf(ostream& os, vtkIndent indent); 00050 00052 unsigned long GetMTime(); 00053 00055 void SetInput(vtkRenderer*); 00056 00058 00060 vtkGetObjectMacro(Input,vtkRenderer); 00062 00064 00066 vtkSetMacro(WholeWindow,int); 00067 vtkGetMacro(WholeWindow,int); 00068 vtkBooleanMacro(WholeWindow,int); 00070 00072 00073 vtkSetMacro(RenderFlag, int); 00074 vtkGetMacro(RenderFlag, int); 00075 vtkBooleanMacro(RenderFlag, int); 00077 00079 00082 vtkSetMacro(DepthValues,int); 00083 vtkGetMacro(DepthValues,int); 00084 vtkBooleanMacro(DepthValues,int); 00086 00088 00092 vtkSetMacro(DepthValuesInScalars,int); 00093 vtkGetMacro(DepthValuesInScalars,int); 00094 vtkBooleanMacro(DepthValuesInScalars,int); 00096 00098 vtkImageData* GetOutput(); 00099 00101 00102 virtual int ProcessRequest(vtkInformation*, 00103 vtkInformationVector**, 00104 vtkInformationVector*); 00106 00107 protected: 00108 vtkRendererSource(); 00109 ~vtkRendererSource(); 00110 00111 void RequestData(vtkInformation* request, 00112 vtkInformationVector** inputVector, 00113 vtkInformationVector* outputVector); 00114 virtual void RequestInformation (vtkInformation*, 00115 vtkInformationVector**, 00116 vtkInformationVector*); 00117 00118 vtkRenderer *Input; 00119 int WholeWindow; 00120 int RenderFlag; 00121 int DepthValues; 00122 int DepthValuesInScalars; 00123 00124 // see algorithm for more info 00125 virtual int FillOutputPortInformation(int port, vtkInformation* info); 00126 00127 private: 00128 vtkRendererSource(const vtkRendererSource&); // Not implemented. 00129 void operator=(const vtkRendererSource&); // Not implemented. 00130 }; 00131 00132 #endif 00133 00134