VTK  9.5.2
vtkAssemblyPath.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
20
21#ifndef vtkAssemblyPath_h
22#define vtkAssemblyPath_h
23
24#include "vtkAssemblyNode.h" // used for inlines
25#include "vtkCollection.h"
26#include "vtkRenderingCoreModule.h" // For export macro
27#include "vtkWrappingHints.h" // For VTK_MARSHALAUTO
28
29VTK_ABI_NAMESPACE_BEGIN
30class vtkMatrix4x4;
31class vtkTransform;
32class vtkProp;
33
34class VTKRENDERINGCORE_EXPORT VTK_MARSHALAUTO vtkAssemblyPath : public vtkCollection
35{
36public:
38 void PrintSelf(ostream& os, vtkIndent indent) override;
39
44
52
62
69
75
81
87
93
99 {
100 return static_cast<vtkAssemblyNode*>(this->GetNextItemAsObject(cookie));
101 }
102
103protected:
106
107 void AddNode(vtkAssemblyNode* n); // Internal method adds assembly node
108 vtkTransform* Transform; // Used to perform matrix concatenation
109 vtkProp* TransformedProp; // A transformed prop used to do the rendering
110
111private:
112 // hide the standard AddItem from the user and the compiler.
113 void AddItem(vtkObject* o) { this->vtkCollection::AddItem(o); }
114
115 vtkAssemblyPath(const vtkAssemblyPath&) = delete;
116 void operator=(const vtkAssemblyPath&) = delete;
117};
118
119VTK_ABI_NAMESPACE_END
120#endif
represent a node in an assembly
a list of nodes that form an assembly path
vtkProp * TransformedProp
void AddNode(vtkAssemblyNode *n)
static vtkAssemblyPath * New()
Instantiate empty path with identify matrix.
void AddNode(vtkProp *p, vtkMatrix4x4 *m)
Convenience method adds a prop and matrix together, creating an assembly node transparently.
void ShallowCopy(vtkAssemblyPath *path)
Perform a shallow copy (reference counted) on the incoming path.
vtkMTimeType GetMTime() override
Override the standard GetMTime() to check for the modified times of the nodes in this path.
vtkAssemblyNode * GetNextNode()
Get the next assembly node in the list.
vtkAssemblyNode * GetFirstNode()
Get the first assembly node in the list.
~vtkAssemblyPath() override
vtkAssemblyNode * GetLastNode()
Get the last assembly node in the list.
void PrintSelf(ostream &os, vtkIndent indent) override
Methods invoked by print to print information about the object including superclasses.
vtkTransform * Transform
void DeleteLastNode()
Delete the last assembly node in the list.
vtkAssemblyNode * GetNextNode(vtkCollectionSimpleIterator &cookie)
Reentrant safe way to get an object in a collection.
void AddItem(vtkObject *)
Add an object to the bottom of the list.
vtkObject * GetNextItemAsObject()
Get the next item in the collection.
a simple class to control print indentation
Definition vtkIndent.h:29
represent and manipulate 4x4 transformation matrices
abstract superclass for all actors, volumes and annotations
Definition vtkProp.h:44
describes linear transformations via a 4x4 matrix
void * vtkCollectionSimpleIterator
vtkTypeUInt32 vtkMTimeType
Definition vtkType.h:287
#define VTK_MARSHALAUTO