VTK
vtkRendererSource.h
Go to the documentation of this file.
1 /*=========================================================================
2 
3  Program: Visualization Toolkit
4  Module: vtkRendererSource.h
5 
6  Copyright (c) Ken Martin, Will Schroeder, Bill Lorensen
7  All rights reserved.
8  See Copyright.txt or http://www.kitware.com/Copyright.htm for details.
9 
10  This software is distributed WITHOUT ANY WARRANTY; without even
11  the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR
12  PURPOSE. See the above copyright notice for more information.
13 
14 =========================================================================*/
50 #ifndef vtkRendererSource_h
51 #define vtkRendererSource_h
52 
53 #include "vtkRenderingCoreModule.h" // For export macro
54 #include "vtkAlgorithm.h"
55 #include "vtkImageData.h" // makes things a bit easier
56 
57 class vtkRenderer;
58 
59 class VTKRENDERINGCORE_EXPORT vtkRendererSource : public vtkAlgorithm
60 {
61 public:
62  static vtkRendererSource *New();
64  void PrintSelf(ostream& os, vtkIndent indent) override;
65 
69  vtkMTimeType GetMTime() override;
70 
74  void SetInput(vtkRenderer*);
75 
77 
80  vtkGetObjectMacro(Input, vtkRenderer);
82 
84 
88  vtkSetMacro(WholeWindow, vtkTypeBool);
89  vtkGetMacro(WholeWindow, vtkTypeBool);
90  vtkBooleanMacro(WholeWindow, vtkTypeBool);
92 
94 
97  vtkSetMacro(RenderFlag, vtkTypeBool);
98  vtkGetMacro(RenderFlag, vtkTypeBool);
99  vtkBooleanMacro(RenderFlag, vtkTypeBool);
101 
103 
108  vtkSetMacro(DepthValues, vtkTypeBool);
109  vtkGetMacro(DepthValues, vtkTypeBool);
110  vtkBooleanMacro(DepthValues, vtkTypeBool);
112 
114 
120  vtkSetMacro(DepthValuesInScalars, vtkTypeBool);
121  vtkGetMacro(DepthValuesInScalars, vtkTypeBool);
122  vtkBooleanMacro(DepthValuesInScalars, vtkTypeBool);
124 
126 
134  vtkSetMacro(DepthValuesOnly, vtkTypeBool);
135  vtkGetMacro(DepthValuesOnly, vtkTypeBool);
136  vtkBooleanMacro(DepthValuesOnly, vtkTypeBool);
138 
142  vtkImageData* GetOutput();
143 
149  vtkInformationVector*) override;
150 
151 protected:
153  ~vtkRendererSource() override;
154 
155  void RequestData(vtkInformation* request,
156  vtkInformationVector** inputVector,
157  vtkInformationVector* outputVector);
158  virtual void RequestInformation (vtkInformation*,
161 
168 
169  // see algorithm for more info
171 
172 private:
173  vtkRendererSource(const vtkRendererSource&) = delete;
174  void operator=(const vtkRendererSource&) = delete;
175 };
176 
177 #endif
take a renderer's image and/or depth map into the pipeline
Store vtkAlgorithm input/output information.
vtkTypeUInt32 vtkMTimeType
Definition: vtkType.h:302
virtual int ProcessRequest(vtkInformation *request, vtkInformationVector **inInfo, vtkInformationVector *outInfo)
Upstream/Downstream requests form the generalized interface through which executives invoke a algorit...
abstract specification for renderers
Definition: vtkRenderer.h:63
void PrintSelf(ostream &os, vtkIndent indent) override
Methods invoked by print to print information about the object including superclasses.
int vtkTypeBool
Definition: vtkABI.h:69
vtkTypeBool DepthValuesInScalars
Superclass for all sources, filters, and sinks in VTK.
Definition: vtkAlgorithm.h:59
virtual int FillOutputPortInformation(int port, vtkInformation *info)
Fill the output port information objects for this algorithm.
a simple class to control print indentation
Definition: vtkIndent.h:39
topologically and geometrically regular array of data
Definition: vtkImageData.h:45
virtual vtkMTimeType GetMTime()
Return this object's modified time.
vtkTypeBool DepthValuesOnly
Store zero or more vtkInformation instances.
static vtkAlgorithm * New()