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:
64  void PrintSelf(ostream& os, vtkIndent indent) override;
65 
69  vtkMTimeType GetMTime() override;
70 
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 
143 
149  vtkInformationVector*) override;
150 
151 protected:
153  ~vtkRendererSource() override;
154 
156  vtkInformationVector** inputVector,
157  vtkInformationVector* outputVector);
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
vtkImageData.h
vtkRendererSource::GetMTime
vtkMTimeType GetMTime() override
Return the MTime also considering the Renderer.
vtkRendererSource
take a renderer's image and/or depth map into the pipeline
Definition: vtkRendererSource.h:60
vtkAlgorithm
Superclass for all sources, filters, and sinks in VTK.
Definition: vtkAlgorithm.h:60
vtkRendererSource::New
static vtkRendererSource * New()
vtkInformationVector
Store zero or more vtkInformation instances.
Definition: vtkInformationVector.h:42
vtkRendererSource::PrintSelf
void PrintSelf(ostream &os, vtkIndent indent) override
Methods invoked by print to print information about the object including superclasses.
vtkRendererSource::~vtkRendererSource
~vtkRendererSource() override
vtkAlgorithm.h
vtkX3D::port
@ port
Definition: vtkX3D.h:447
vtkRendererSource::vtkRendererSource
vtkRendererSource()
vtkRendererSource::FillOutputPortInformation
int FillOutputPortInformation(int port, vtkInformation *info) override
Fill the output port information objects for this algorithm.
vtkImageData
topologically and geometrically regular array of data
Definition: vtkImageData.h:46
vtkIndent
a simple class to control print indentation
Definition: vtkIndent.h:40
vtkRendererSource::RequestData
void RequestData(vtkInformation *request, vtkInformationVector **inputVector, vtkInformationVector *outputVector)
vtkRendererSource::DepthValuesOnly
vtkTypeBool DepthValuesOnly
Definition: vtkRendererSource.h:167
vtkRendererSource::DepthValues
vtkTypeBool DepthValues
Definition: vtkRendererSource.h:165
vtkRendererSource::RequestInformation
virtual void RequestInformation(vtkInformation *, vtkInformationVector **, vtkInformationVector *)
vtkRendererSource::DepthValuesInScalars
vtkTypeBool DepthValuesInScalars
Definition: vtkRendererSource.h:166
vtkInformation
Store vtkAlgorithm input/output information.
Definition: vtkInformation.h:87
vtkX3D::info
@ info
Definition: vtkX3D.h:376
vtkRendererSource::GetOutput
vtkImageData * GetOutput()
Get the output data object for a port on this algorithm.
vtkRendererSource::ProcessRequest
int ProcessRequest(vtkInformation *, vtkInformationVector **, vtkInformationVector *) override
see vtkAlgorithm for details
vtkRenderer
abstract specification for renderers
Definition: vtkRenderer.h:64
vtkRendererSource::SetInput
void SetInput(vtkRenderer *)
Indicates what renderer to get the pixel data from.
vtkRendererSource::Input
vtkRenderer * Input
Definition: vtkRendererSource.h:162
vtkRendererSource::RenderFlag
vtkTypeBool RenderFlag
Definition: vtkRendererSource.h:164
vtkTypeBool
int vtkTypeBool
Definition: vtkABI.h:69
vtkRendererSource::WholeWindow
vtkTypeBool WholeWindow
Definition: vtkRendererSource.h:163
vtkMTimeType
vtkTypeUInt32 vtkMTimeType
Definition: vtkType.h:302