VTK  9.0.1
vtkRendererNode.h
Go to the documentation of this file.
1 /*=========================================================================
2 
3  Program: Visualization Toolkit
4  Module: vtkRendererNode.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 =========================================================================*/
22 #ifndef vtkRendererNode_h
23 #define vtkRendererNode_h
24 
25 #include "vtkRenderingSceneGraphModule.h" // For export macro
26 #include "vtkViewNode.h"
27 
28 class vtkCollection;
29 
30 class VTKRENDERINGSCENEGRAPH_EXPORT vtkRendererNode : public vtkViewNode
31 {
32 public:
33  static vtkRendererNode* New();
34  vtkTypeMacro(vtkRendererNode, vtkViewNode);
35  void PrintSelf(ostream& os, vtkIndent indent) override;
36 
40  void Build(bool prepass) override;
41 
45  vtkGetVector2Macro(Size, int);
46  vtkSetVector2Macro(Size, int);
47 
51  vtkGetVector4Macro(Viewport, double);
52  vtkSetVector4Macro(Viewport, double);
53 
57  vtkGetVector2Macro(Scale, int);
58  vtkSetVector2Macro(Scale, int);
59 
60 protected:
62  ~vtkRendererNode() override;
63 
64  int Size[2];
65  double Viewport[4];
66  int Scale[2];
67 
68 private:
69  vtkRendererNode(const vtkRendererNode&) = delete;
70  void operator=(const vtkRendererNode&) = delete;
71 };
72 
73 #endif
virtual void Build(bool)
Builds myself.
Definition: vtkViewNode.h:53
void PrintSelf(ostream &os, vtkIndent indent) override
Methods invoked by print to print information about the object including superclasses.
a simple class to control print indentation
Definition: vtkIndent.h:33
vtkViewNode specialized for vtkRenderers
create and manipulate ordered lists of objects
Definition: vtkCollection.h:52
static vtkObject * New()
Create an object with Debug turned off, modified time initialized to zero, and reference counting on...
a node within a VTK scene graph
Definition: vtkViewNode.h:37