00001 /*========================================================================= 00002 00003 Program: Visualization Toolkit 00004 Module: $RCSfile: vtkAssemblyPath.h,v $ 00005 00006 Copyright (c) Ken Martin, Will Schroeder, Bill Lorensen 00007 All rights reserved. 00008 See Copyright.txt or http://www.kitware.com/Copyright.htm for details. 00009 00010 This software is distributed WITHOUT ANY WARRANTY; without even 00011 the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR 00012 PURPOSE. See the above copyright notice for more information. 00013 00014 =========================================================================*/ 00032 #ifndef __vtkAssemblyPath_h 00033 #define __vtkAssemblyPath_h 00034 00035 #include "vtkCollection.h" 00036 00037 class vtkAssemblyNode; 00038 class vtkMatrix4x4; 00039 class vtkTransform; 00040 class vtkProp; 00041 00042 class VTK_COMMON_EXPORT vtkAssemblyPath : public vtkCollection 00043 { 00044 public: 00045 vtkTypeRevisionMacro(vtkAssemblyPath,vtkCollection); 00046 void PrintSelf(ostream& os, vtkIndent indent); 00047 00049 static vtkAssemblyPath *New(); 00050 00054 void AddNode(vtkProp *p, vtkMatrix4x4 *m); 00055 00061 vtkAssemblyNode *GetNextNode(); 00062 00066 vtkAssemblyNode *GetFirstNode(); 00067 00070 vtkAssemblyNode *GetLastNode(); 00071 00073 void DeleteLastNode(); 00074 00076 void ShallowCopy(vtkAssemblyPath *path); 00077 00080 virtual unsigned long GetMTime(); 00081 00082 protected: 00083 vtkAssemblyPath(); 00084 ~vtkAssemblyPath(); 00085 00086 void AddNode(vtkAssemblyNode *n); //Internal method adds assembly node 00087 vtkTransform *Transform; //Used to perform matrix concatentation 00088 vtkProp *TransformedProp; //A transformed prop used to do the rendering 00089 00090 private: 00091 // hide the standard AddItem from the user and the compiler. 00092 void AddItem(vtkObject *o) { this->vtkCollection::AddItem(o); }; 00093 00094 private: 00095 vtkAssemblyPath(const vtkAssemblyPath&); // Not implemented. 00096 void operator=(const vtkAssemblyPath&); // Not implemented. 00097 }; 00098 00099 #endif