Main Page | Class Hierarchy | Alphabetical List | Class List | Directories | File List | Class Members | File Members | Related Pages

vtkAssemblyPath.h

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