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 =========================================================================*/
47 #ifndef vtkRendererSource_h
48 #define vtkRendererSource_h
49 
50 #include "vtkRenderingCoreModule.h" // For export macro
51 #include "vtkAlgorithm.h"
52 #include "vtkImageData.h" // makes things a bit easier
53 
54 class vtkRenderer;
55 
56 class VTKRENDERINGCORE_EXPORT vtkRendererSource : public vtkAlgorithm
57 {
58 public:
59  static vtkRendererSource *New();
61  void PrintSelf(ostream& os, vtkIndent indent) override;
62 
66  vtkMTimeType GetMTime() override;
67 
71  void SetInput(vtkRenderer*);
72 
74 
77  vtkGetObjectMacro(Input, vtkRenderer);
79 
81 
85  vtkSetMacro(WholeWindow, vtkTypeBool);
86  vtkGetMacro(WholeWindow, vtkTypeBool);
87  vtkBooleanMacro(WholeWindow, vtkTypeBool);
89 
91 
94  vtkSetMacro(RenderFlag, vtkTypeBool);
95  vtkGetMacro(RenderFlag, vtkTypeBool);
96  vtkBooleanMacro(RenderFlag, vtkTypeBool);
98 
100 
105  vtkSetMacro(DepthValues, vtkTypeBool);
106  vtkGetMacro(DepthValues, vtkTypeBool);
107  vtkBooleanMacro(DepthValues, vtkTypeBool);
109 
111 
117  vtkSetMacro(DepthValuesInScalars, vtkTypeBool);
118  vtkGetMacro(DepthValuesInScalars, vtkTypeBool);
119  vtkBooleanMacro(DepthValuesInScalars, vtkTypeBool);
121 
123 
131  vtkSetMacro(DepthValuesOnly, vtkTypeBool);
132  vtkGetMacro(DepthValuesOnly, vtkTypeBool);
133  vtkBooleanMacro(DepthValuesOnly, vtkTypeBool);
135 
139  vtkImageData* GetOutput();
140 
146  vtkInformationVector*) override;
147 
148 protected:
150  ~vtkRendererSource() override;
151 
152  void RequestData(vtkInformation* request,
153  vtkInformationVector** inputVector,
154  vtkInformationVector* outputVector);
155  virtual void RequestInformation (vtkInformation*,
158 
165 
166  // see algorithm for more info
168 
169 private:
170  vtkRendererSource(const vtkRendererSource&) = delete;
171  void operator=(const vtkRendererSource&) = delete;
172 };
173 
174 #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:57
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:53
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:33
topologically and geometrically regular array of data
Definition: vtkImageData.h:39
virtual vtkMTimeType GetMTime()
Return this object's modified time.
vtkTypeBool DepthValuesOnly
Store zero or more vtkInformation instances.
static vtkAlgorithm * New()