vtkUGFacetReader.h
Go to the documentation of this file.00001
00002
00003
00004
00005
00006
00007
00008
00009
00010
00011
00012
00013
00014
00038 #ifndef __vtkUGFacetReader_h
00039 #define __vtkUGFacetReader_h
00040
00041 #include "vtkPolyDataSource.h"
00042
00043 class vtkPointLocator;
00044 class vtkShortArray;
00045
00046 class VTK_IO_EXPORT vtkUGFacetReader : public vtkPolyDataSource
00047 {
00048 public:
00049 vtkTypeRevisionMacro(vtkUGFacetReader,vtkPolyDataSource);
00050 void PrintSelf(ostream& os, vtkIndent indent);
00051
00054 static vtkUGFacetReader *New();
00055
00058 unsigned long GetMTime();
00059
00061
00062 vtkSetStringMacro(FileName);
00063 vtkGetStringMacro(FileName);
00065
00067 int GetNumberOfParts();
00068
00070 short GetPartColorIndex(int partId);
00071
00073
00077 vtkSetMacro(PartNumber,int);
00078 vtkGetMacro(PartNumber,int);
00080
00082
00083 vtkSetMacro(Merging,int);
00084 vtkGetMacro(Merging,int);
00085 vtkBooleanMacro(Merging,int);
00087
00089
00091 void SetLocator(vtkPointLocator *locator);
00092 vtkGetObjectMacro(Locator,vtkPointLocator);
00094
00096 void CreateDefaultLocator();
00097
00098 protected:
00099 vtkUGFacetReader();
00100 ~vtkUGFacetReader();
00101
00102 void Execute();
00103
00104 char *FileName;
00105 vtkShortArray *PartColors;
00106 int PartNumber;
00107 int Merging;
00108 vtkPointLocator *Locator;
00109 private:
00110 vtkUGFacetReader(const vtkUGFacetReader&);
00111 void operator=(const vtkUGFacetReader&);
00112 };
00113
00114 #endif
00115
00116