VTK  9.3.20240418
vtkRendererSource.h
Go to the documentation of this file.
1 // SPDX-FileCopyrightText: Copyright (c) Ken Martin, Will Schroeder, Bill Lorensen
2 // SPDX-License-Identifier: BSD-3-Clause
38 #ifndef vtkRendererSource_h
39 #define vtkRendererSource_h
40 
41 #include "vtkAlgorithm.h"
42 #include "vtkImageData.h" // makes things a bit easier
43 #include "vtkRenderingCoreModule.h" // For export macro
44 
45 VTK_ABI_NAMESPACE_BEGIN
46 class vtkRenderer;
47 
48 class VTKRENDERINGCORE_EXPORT vtkRendererSource : public vtkAlgorithm
49 {
50 public:
53  void PrintSelf(ostream& os, vtkIndent indent) override;
54 
58  vtkMTimeType GetMTime() override;
59 
64 
66 
69  vtkGetObjectMacro(Input, vtkRenderer);
71 
73 
77  vtkSetMacro(WholeWindow, vtkTypeBool);
78  vtkGetMacro(WholeWindow, vtkTypeBool);
79  vtkBooleanMacro(WholeWindow, vtkTypeBool);
81 
83 
86  vtkSetMacro(RenderFlag, vtkTypeBool);
87  vtkGetMacro(RenderFlag, vtkTypeBool);
88  vtkBooleanMacro(RenderFlag, vtkTypeBool);
90 
92 
97  vtkSetMacro(DepthValues, vtkTypeBool);
98  vtkGetMacro(DepthValues, vtkTypeBool);
99  vtkBooleanMacro(DepthValues, vtkTypeBool);
101 
103 
109  vtkSetMacro(DepthValuesInScalars, vtkTypeBool);
110  vtkGetMacro(DepthValuesInScalars, vtkTypeBool);
111  vtkBooleanMacro(DepthValuesInScalars, vtkTypeBool);
113 
115 
123  vtkSetMacro(DepthValuesOnly, vtkTypeBool);
124  vtkGetMacro(DepthValuesOnly, vtkTypeBool);
125  vtkBooleanMacro(DepthValuesOnly, vtkTypeBool);
127 
132 
138 
139 protected:
141  ~vtkRendererSource() override;
142 
143  void RequestData(vtkInformation* request, vtkInformationVector** inputVector,
144  vtkInformationVector* outputVector);
146 
153 
154  // see algorithm for more info
156 
157 private:
158  vtkRendererSource(const vtkRendererSource&) = delete;
159  void operator=(const vtkRendererSource&) = delete;
160 };
161 
162 VTK_ABI_NAMESPACE_END
163 #endif
Superclass for all sources, filters, and sinks in VTK.
Definition: vtkAlgorithm.h:162
topologically and geometrically regular array of data
Definition: vtkImageData.h:156
a simple class to control print indentation
Definition: vtkIndent.h:108
Store zero or more vtkInformation instances.
Store vtkAlgorithm input/output information.
take a renderer's image and/or depth map into the pipeline
virtual void RequestInformation(vtkInformation *, vtkInformationVector **, vtkInformationVector *)
vtkMTimeType GetMTime() override
Return the MTime also considering the Renderer.
void SetInput(vtkRenderer *)
Indicates what renderer to get the pixel data from.
vtkTypeBool ProcessRequest(vtkInformation *, vtkInformationVector **, vtkInformationVector *) override
see vtkAlgorithm for details
int FillOutputPortInformation(int port, vtkInformation *info) override
Fill the output port information objects for this algorithm.
~vtkRendererSource() override
vtkTypeBool DepthValuesOnly
void PrintSelf(ostream &os, vtkIndent indent) override
Methods invoked by print to print information about the object including superclasses.
static vtkRendererSource * New()
vtkImageData * GetOutput()
Get the output data object for a port on this algorithm.
void RequestData(vtkInformation *request, vtkInformationVector **inputVector, vtkInformationVector *outputVector)
vtkTypeBool DepthValuesInScalars
abstract specification for renderers
Definition: vtkRenderer.h:172
@ info
Definition: vtkX3D.h:376
@ port
Definition: vtkX3D.h:447
int vtkTypeBool
Definition: vtkABI.h:64
vtkTypeUInt32 vtkMTimeType
Definition: vtkType.h:270