VTK  9.3.1
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:
51  static vtkRendererSource* New();
53  void PrintSelf(ostream& os, vtkIndent indent) override;
54 
58  vtkMTimeType GetMTime() override;
59 
63  void SetInput(vtkRenderer*);
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 
131  vtkImageData* GetOutput();
132 
138 
139 protected:
141  ~vtkRendererSource() override;
142 
143  void RequestData(vtkInformation* request, vtkInformationVector** inputVector,
144  vtkInformationVector* outputVector);
145  virtual void RequestInformation(vtkInformation*, vtkInformationVector**, vtkInformationVector*);
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
take a renderer's image and/or depth map into the pipeline
Store vtkAlgorithm input/output information.
vtkTypeUInt32 vtkMTimeType
Definition: vtkType.h:270
abstract specification for renderers
Definition: vtkRenderer.h:61
void PrintSelf(ostream &os, vtkIndent indent) override
Methods invoked by print to print information about the object including superclasses.
int vtkTypeBool
Definition: vtkABI.h:64
virtual vtkTypeBool ProcessRequest(vtkInformation *request, vtkInformationVector **inInfo, vtkInformationVector *outInfo)
Upstream/Downstream requests form the generalized interface through which executives invoke a algorit...
vtkTypeBool DepthValuesInScalars
Superclass for all sources, filters, and sinks in VTK.
Definition: vtkAlgorithm.h:51
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:28
topologically and geometrically regular array of data
Definition: vtkImageData.h:42
virtual vtkMTimeType GetMTime()
Return this object's modified time.
vtkTypeBool DepthValuesOnly
Store zero or more vtkInformation instances.
static vtkAlgorithm * New()