VTK  9.1.0
vtkAssemblyPath.h
Go to the documentation of this file.
1 /*=========================================================================
2 
3  Program: Visualization Toolkit
4  Module: vtkAssemblyPath.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 =========================================================================*/
79 #ifndef vtkAssemblyPath_h
80 #define vtkAssemblyPath_h
81 
82 #include "vtkAssemblyNode.h" // used for inlines
83 #include "vtkCollection.h"
84 #include "vtkRenderingCoreModule.h" // For export macro
85 
86 class vtkMatrix4x4;
87 class vtkTransform;
88 class vtkProp;
89 
90 class VTKRENDERINGCORE_EXPORT vtkAssemblyPath : public vtkCollection
91 {
92 public:
94  void PrintSelf(ostream& os, vtkIndent indent) override;
95 
99  static vtkAssemblyPath* New();
100 
108 
118 
125 
131 
137 
143 
148  vtkMTimeType GetMTime() override;
149 
155  {
156  return static_cast<vtkAssemblyNode*>(this->GetNextItemAsObject(cookie));
157  }
158 
159 protected:
161  ~vtkAssemblyPath() override;
162 
163  void AddNode(vtkAssemblyNode* n); // Internal method adds assembly node
164  vtkTransform* Transform; // Used to perform matrix concatenation
165  vtkProp* TransformedProp; // A transformed prop used to do the rendering
166 
167 private:
168  // hide the standard AddItem from the user and the compiler.
169  void AddItem(vtkObject* o) { this->vtkCollection::AddItem(o); }
170 
171 private:
172  vtkAssemblyPath(const vtkAssemblyPath&) = delete;
173  void operator=(const vtkAssemblyPath&) = delete;
174 };
175 
176 #endif
vtkAssemblyNode.h
vtkAssemblyPath::GetFirstNode
vtkAssemblyNode * GetFirstNode()
Get the first assembly node in the list.
vtkAssemblyPath::ShallowCopy
void ShallowCopy(vtkAssemblyPath *path)
Perform a shallow copy (reference counted) on the incoming path.
vtkAssemblyNode
represent a node in an assembly
Definition: vtkAssemblyNode.h:85
vtkCollectionSimpleIterator
void * vtkCollectionSimpleIterator
Definition: vtkCollection.h:48
vtkAssemblyPath::Transform
vtkTransform * Transform
Definition: vtkAssemblyPath.h:164
vtkAssemblyPath::~vtkAssemblyPath
~vtkAssemblyPath() override
vtkAssemblyPath::GetMTime
vtkMTimeType GetMTime() override
Override the standard GetMTime() to check for the modified times of the nodes in this path.
vtkCollection.h
vtkAssemblyPath::GetNextNode
vtkAssemblyNode * GetNextNode(vtkCollectionSimpleIterator &cookie)
Reentrant safe way to get an object in a collection.
Definition: vtkAssemblyPath.h:154
vtkObject
abstract base class for most VTK objects
Definition: vtkObject.h:82
vtkAssemblyPath::TransformedProp
vtkProp * TransformedProp
Definition: vtkAssemblyPath.h:165
vtkTransform
describes linear transformations via a 4x4 matrix
Definition: vtkTransform.h:164
vtkAssemblyPath
a list of nodes that form an assembly path
Definition: vtkAssemblyPath.h:91
vtkCollection::GetNextItemAsObject
vtkObject * GetNextItemAsObject()
Get the next item in the collection.
Definition: vtkCollection.h:179
vtkCollection
create and manipulate ordered lists of objects
Definition: vtkCollection.h:53
vtkAssemblyPath::vtkAssemblyPath
vtkAssemblyPath()
vtkAssemblyPath::GetLastNode
vtkAssemblyNode * GetLastNode()
Get the last assembly node in the list.
vtkAssemblyPath::New
static vtkAssemblyPath * New()
Instantiate empty path with identify matrix.
vtkAssemblyPath::PrintSelf
void PrintSelf(ostream &os, vtkIndent indent) override
Methods invoked by print to print information about the object including superclasses.
vtkAssemblyPath::AddNode
void AddNode(vtkProp *p, vtkMatrix4x4 *m)
Convenience method adds a prop and matrix together, creating an assembly node transparently.
vtkIndent
a simple class to control print indentation
Definition: vtkIndent.h:113
vtkMatrix4x4
represent and manipulate 4x4 transformation matrices
Definition: vtkMatrix4x4.h:145
vtkAssemblyPath::GetNextNode
vtkAssemblyNode * GetNextNode()
Get the next assembly node in the list.
vtkAssemblyPath::DeleteLastNode
void DeleteLastNode()
Delete the last assembly node in the list.
vtkProp
abstract superclass for all actors, volumes and annotations
Definition: vtkProp.h:76
vtkCollection::AddItem
void AddItem(vtkObject *)
Add an object to the bottom of the list.
vtkAssemblyPath::AddNode
void AddNode(vtkAssemblyNode *n)
vtkMTimeType
vtkTypeUInt32 vtkMTimeType
Definition: vtkType.h:287