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 
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 =========================================================================*/
00029 #ifndef __vtkAssemblyPath_h
00030 #define __vtkAssemblyPath_h
00031 
00032 #include "vtkCollection.h"
00033 #include "vtkAssemblyNode.h" // used for inlines
00034 
00035 class vtkMatrix4x4;
00036 class vtkTransform;
00037 class vtkProp;
00038 
00039 class VTK_COMMON_EXPORT vtkAssemblyPath : public vtkCollection
00040 {
00041 public:
00042   vtkTypeRevisionMacro(vtkAssemblyPath,vtkCollection);
00043   void PrintSelf(ostream& os, vtkIndent indent);
00044 
00046   static vtkAssemblyPath *New();
00047 
00051   void AddNode(vtkProp *p, vtkMatrix4x4 *m);
00052 
00058   vtkAssemblyNode *GetNextNode();
00059 
00063   vtkAssemblyNode *GetFirstNode();
00064   
00067   vtkAssemblyNode *GetLastNode();
00068   
00070   void DeleteLastNode();
00071   
00073   void ShallowCopy(vtkAssemblyPath *path);
00074   
00077   virtual unsigned long GetMTime();
00078 
00079   //BTX
00081 
00083   vtkAssemblyNode *GetNextNode(vtkCollectionSimpleIterator &cookie) {
00084     return static_cast<vtkAssemblyNode *>(this->GetNextItemAsObject(cookie));};
00085   //ETX
00087 
00088 protected:
00089   vtkAssemblyPath();
00090   ~vtkAssemblyPath();
00091   
00092   void AddNode(vtkAssemblyNode *n); //Internal method adds assembly node
00093   vtkTransform *Transform; //Used to perform matrix concatentation
00094   vtkProp *TransformedProp; //A transformed prop used to do the rendering
00095 
00096 private:
00097   // hide the standard AddItem from the user and the compiler.
00098   void AddItem(vtkObject *o) { this->vtkCollection::AddItem(o); };
00099 
00100 private:
00101   vtkAssemblyPath(const vtkAssemblyPath&);  // Not implemented.
00102   void operator=(const vtkAssemblyPath&);  // Not implemented.
00103 };
00104 
00105 #endif

Generated on Mon Jan 21 23:07:16 2008 for VTK by  doxygen 1.4.3-20050530