VTK
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 =========================================================================*/
30 #ifndef vtkAssemblyPath_h
31 #define vtkAssemblyPath_h
32 
33 #include "vtkRenderingCoreModule.h" // For export macro
34 #include "vtkCollection.h"
35 #include "vtkAssemblyNode.h" // used for inlines
36 
37 class vtkMatrix4x4;
38 class vtkTransform;
39 class vtkProp;
40 
41 class VTKRENDERINGCORE_EXPORT vtkAssemblyPath : public vtkCollection
42 {
43 public:
45  void PrintSelf(ostream& os, vtkIndent indent);
46 
50  static vtkAssemblyPath *New();
51 
59 
69 
76 
82 
88 
94 
100 
106  { return static_cast<vtkAssemblyNode *>(this->GetNextItemAsObject(cookie)); }
107 
108 protected:
111 
112  void AddNode(vtkAssemblyNode *n); //Internal method adds assembly node
113  vtkTransform *Transform; //Used to perform matrix concatentation
114  vtkProp *TransformedProp; //A transformed prop used to do the rendering
115 
116 private:
117  // hide the standard AddItem from the user and the compiler.
118  void AddItem(vtkObject *o)
119  { this->vtkCollection::AddItem(o); }
120 
121 private:
122  vtkAssemblyPath(const vtkAssemblyPath&) VTK_DELETE_FUNCTION;
123  void operator=(const vtkAssemblyPath&) VTK_DELETE_FUNCTION;
124 };
125 
126 #endif
represent a node in an assembly
a list of nodes that form an assembly path
vtkProp * TransformedProp
static vtkAssemblyPath * New()
Instantiate empty path with identify matrix.
void AddNode(vtkAssemblyNode *n)
void AddNode(vtkProp *p, vtkMatrix4x4 *m)
Convenience method adds a prop and matrix together, creating an assembly node transparently.
vtkAssemblyNode * GetNextNode()
Get the next assembly node in the list.
void ShallowCopy(vtkAssemblyPath *path)
Perform a shallow copy (reference counted) on the incoming path.
virtual vtkMTimeType GetMTime()
Override the standard GetMTime() to check for the modified times of the nodes in this path.
vtkAssemblyNode * GetNextNode(vtkCollectionSimpleIterator &cookie)
Reentrant safe way to get an object in a collection.
vtkAssemblyNode * GetFirstNode()
Get the first assembly node in the list.
void PrintSelf(ostream &os, vtkIndent indent)
Methods invoked by print to print information about the object including superclasses.
vtkAssemblyNode * GetLastNode()
Get the last assembly node in the list.
vtkTransform * Transform
void DeleteLastNode()
Delete the last assembly node in the list.
create and manipulate unsorted lists of objects
Definition: vtkCollection.h:52
void AddItem(vtkObject *)
Add an object to the list.
vtkObject * GetNextItemAsObject()
Get the next item in the collection.
a simple class to control print indentation
Definition: vtkIndent.h:40
represent and manipulate 4x4 transformation matrices
Definition: vtkMatrix4x4.h:42
abstract base class for most VTK objects
Definition: vtkObject.h:60
abstract superclass for all actors, volumes and annotations
Definition: vtkProp.h:48
describes linear transformations via a 4x4 matrix
Definition: vtkTransform.h:61
void * vtkCollectionSimpleIterator
Definition: vtkCollection.h:47
vtkTypeUInt64 vtkMTimeType
Definition: vtkType.h:248