VTK  9.1.0
vtkAssemblyNode.h
Go to the documentation of this file.
1 /*=========================================================================
2 
3  Program: Visualization Toolkit
4  Module: vtkAssemblyNode.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 =========================================================================*/
75 #ifndef vtkAssemblyNode_h
76 #define vtkAssemblyNode_h
77 
78 #include "vtkObject.h"
79 #include "vtkRenderingCoreModule.h" // For export macro
80 
81 class vtkProp;
82 class vtkMatrix4x4;
83 
84 class VTKRENDERINGCORE_EXPORT vtkAssemblyNode : public vtkObject
85 {
86 public:
90  static vtkAssemblyNode* New();
91 
92  vtkTypeMacro(vtkAssemblyNode, vtkObject);
93  void PrintSelf(ostream& os, vtkIndent indent) override;
94 
96 
99  virtual void SetViewProp(vtkProp* prop);
100  vtkGetObjectMacro(ViewProp, vtkProp);
102 
104 
111  void SetMatrix(vtkMatrix4x4* matrix);
112  vtkGetObjectMacro(Matrix, vtkMatrix4x4);
114 
119  vtkMTimeType GetMTime() override;
120 
121 protected:
123  ~vtkAssemblyNode() override;
124 
125 private:
126  vtkProp* ViewProp; // reference to vtkProp
127  vtkMatrix4x4* Matrix; // associated matrix
128 
129 private:
130  void operator=(const vtkAssemblyNode&) = delete;
131  vtkAssemblyNode(const vtkAssemblyNode&) = delete;
132 };
133 
134 #endif
vtkAssemblyNode
represent a node in an assembly
Definition: vtkAssemblyNode.h:85
vtkAssemblyNode::PrintSelf
void PrintSelf(ostream &os, vtkIndent indent) override
Methods invoked by print to print information about the object including superclasses.
vtkAssemblyNode::~vtkAssemblyNode
~vtkAssemblyNode() override
vtkAssemblyNode::vtkAssemblyNode
vtkAssemblyNode()
vtkObject
abstract base class for most VTK objects
Definition: vtkObject.h:82
vtkAssemblyNode::SetViewProp
virtual void SetViewProp(vtkProp *prop)
Set/Get the prop that this assembly node refers to.
vtkAssemblyNode::GetMTime
vtkMTimeType GetMTime() override
Override the standard GetMTime() to check for the modified times of the prop and matrix.
vtkAssemblyNode::SetMatrix
void SetMatrix(vtkMatrix4x4 *matrix)
Specify a transformation matrix associated with the prop.
vtkIndent
a simple class to control print indentation
Definition: vtkIndent.h:113
vtkMatrix4x4
represent and manipulate 4x4 transformation matrices
Definition: vtkMatrix4x4.h:145
vtkObject.h
vtkProp
abstract superclass for all actors, volumes and annotations
Definition: vtkProp.h:76
vtkAssemblyNode::New
static vtkAssemblyNode * New()
Create an assembly node.
vtkMTimeType
vtkTypeUInt32 vtkMTimeType
Definition: vtkType.h:287