VTK  9.2.6
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 =========================================================================*/
25 #ifndef vtkRendererNode_h
26 #define vtkRendererNode_h
27 
28 #include "vtkRenderingSceneGraphModule.h" // For export macro
29 #include "vtkViewNode.h"
30 
31 class vtkCollection;
32 
33 class VTKRENDERINGSCENEGRAPH_EXPORT vtkRendererNode : public vtkViewNode
34 {
35 public:
36  static vtkRendererNode* New();
37  vtkTypeMacro(vtkRendererNode, vtkViewNode);
38  void PrintSelf(ostream& os, vtkIndent indent) override;
39 
43  void Build(bool prepass) override;
44 
48  vtkGetVector2Macro(Size, int);
49  vtkSetVector2Macro(Size, int);
50 
54  vtkGetVector4Macro(Viewport, double);
55  vtkSetVector4Macro(Viewport, double);
56 
60  vtkGetVector2Macro(Scale, int);
61  vtkSetVector2Macro(Scale, int);
62 
63 protected:
65  ~vtkRendererNode() override;
66 
67  int Size[2];
68  double Viewport[4];
69  int Scale[2];
70 
71 private:
72  vtkRendererNode(const vtkRendererNode&) = delete;
73  void operator=(const vtkRendererNode&) = delete;
74 };
75 
76 #endif
virtual void Build(bool)
Builds myself.
Definition: vtkViewNode.h:57
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:39
vtkViewNode specialized for vtkRenderers
create and manipulate ordered lists of objects
Definition: vtkCollection.h:55
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:41