VTK  9.5.20250805
vtkAssemblyNode.h
Go to the documentation of this file.
1// SPDX-FileCopyrightText: Copyright (c) Ken Martin, Will Schroeder, Bill Lorensen
2// SPDX-License-Identifier: BSD-3-Clause
53#ifndef vtkAssemblyNode_h
54#define vtkAssemblyNode_h
55
56#include "vtkObject.h"
57#include "vtkRenderingCoreModule.h" // For export macro
58#include "vtkWrappingHints.h" // For VTK_MARSHALAUTO
59
60VTK_ABI_NAMESPACE_BEGIN
61class vtkProp;
62class vtkMatrix4x4;
63
64class VTKRENDERINGCORE_EXPORT VTK_MARSHALAUTO vtkAssemblyNode : public vtkObject
65{
66public:
71
72 vtkTypeMacro(vtkAssemblyNode, vtkObject);
73 void PrintSelf(ostream& os, vtkIndent indent) override;
74
76
79 virtual void SetViewProp(vtkProp* prop);
80 vtkGetObjectMacro(ViewProp, vtkProp);
82
84
91 void SetMatrix(vtkMatrix4x4* matrix);
92 vtkGetObjectMacro(Matrix, vtkMatrix4x4);
94
100
101protected:
104
105private:
106 vtkProp* ViewProp; // reference to vtkProp
107 vtkMatrix4x4* Matrix; // associated matrix
108
109 void operator=(const vtkAssemblyNode&) = delete;
110 vtkAssemblyNode(const vtkAssemblyNode&) = delete;
111};
112
113VTK_ABI_NAMESPACE_END
114#endif
represent a node in an assembly
void SetMatrix(vtkMatrix4x4 *matrix)
Specify a transformation matrix associated with the prop.
~vtkAssemblyNode() override
static vtkAssemblyNode * New()
Create an assembly node.
void PrintSelf(ostream &os, vtkIndent indent) override
Methods invoked by print to print information about the object including superclasses.
vtkMTimeType GetMTime() override
Override the standard GetMTime() to check for the modified times of the prop and matrix.
virtual void SetViewProp(vtkProp *prop)
Set/Get the prop that this assembly node refers to.
a simple class to control print indentation
Definition vtkIndent.h:108
represent and manipulate 4x4 transformation matrices
abstract base class for most VTK objects
Definition vtkObject.h:162
abstract superclass for all actors, volumes and annotations
Definition vtkProp.h:69
vtkTypeUInt32 vtkMTimeType
Definition vtkType.h:287
#define VTK_MARSHALAUTO