VTK
dox/Common/DataModel/vtkPath.h
Go to the documentation of this file.
00001 /*=========================================================================
00002 
00003   Program:   Visualization Toolkit
00004   Module:    vtkPath.h
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 =========================================================================*/
00026 #ifndef __vtkPath_h
00027 #define __vtkPath_h
00028 
00029 #include "vtkCommonDataModelModule.h" // For export macro
00030 #include "vtkPointSet.h"
00031 
00032 class vtkIntArray;
00033 
00034 class VTKCOMMONDATAMODEL_EXPORT vtkPath : public vtkPointSet
00035 {
00036 public:
00037   static vtkPath *New();
00038 
00039   vtkTypeMacro(vtkPath,vtkPointSet);
00040   void PrintSelf(ostream& os, vtkIndent indent);
00041 
00043   int GetDataObjectType() {return VTK_PATH;}
00044 
00046 
00057   enum ControlPointType
00058     {
00059     MOVE_TO = 0,
00060     LINE_TO,
00061     CONIC_CURVE,
00062     CUBIC_CURVE
00063     };
00065 
00067 
00068   void InsertNextPoint(float pts[3], int code);
00069   void InsertNextPoint(double pts[3], int code);
00070   void InsertNextPoint(double x, double y, double z, int code);
00072 
00074 
00075   void SetCodes(vtkIntArray *);
00076   vtkIntArray *GetCodes();
00078 
00080 
00081   vtkIdType GetNumberOfCells() { return 0; }
00082   vtkCell *GetCell(vtkIdType) { return NULL; }
00083   void GetCell(vtkIdType, vtkGenericCell *);
00084   int GetCellType(vtkIdType) { return 0; }
00086 
00088   void GetCellPoints(vtkIdType, vtkIdList *ptIds);
00089 
00091   void GetPointCells(vtkIdType ptId, vtkIdList *cellIds);
00092 
00094   int GetMaxCellSize() { return 0; }
00095 
00098   void Allocate(vtkIdType size=1000, int extSize=1000);
00099 
00102   void Reset();
00103 
00105 
00106   static vtkPath* GetData(vtkInformation* info);
00107   static vtkPath* GetData(vtkInformationVector* v, int i=0);
00109 
00110 protected:
00111   vtkPath();
00112   ~vtkPath();
00113 
00114 private:
00115   vtkPath(const vtkPath&);  // Not implemented.
00116   void operator=(const vtkPath&);  // Not implemented.
00117 };
00118 
00119 #endif