VTK
vtkUGFacetReader.h
Go to the documentation of this file.
1 /*=========================================================================
2 
3  Program: Visualization Toolkit
4  Module: vtkUGFacetReader.h
5 
6  Copyright (c) Ken Martin, Will Schroeder, Bill Lorensen
7  All rights reserved.
8  See Copyright.txt or http://www.kitware.com/Copyright.htm for details.
9 
10  This software is distributed WITHOUT ANY WARRANTY; without even
11  the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR
12  PURPOSE. See the above copyright notice for more information.
13 
14 =========================================================================*/
23 #ifndef __vtkUGFacetReader_h
24 #define __vtkUGFacetReader_h
25 
26 #include "vtkIOGeometryModule.h" // For export macro
27 #include "vtkPolyDataAlgorithm.h"
28 
30 class vtkShortArray;
31 
32 class VTKIOGEOMETRY_EXPORT vtkUGFacetReader : public vtkPolyDataAlgorithm
33 {
34 public:
36  void PrintSelf(ostream& os, vtkIndent indent);
37 
40  static vtkUGFacetReader *New();
41 
44  unsigned long GetMTime();
45 
47 
48  vtkSetStringMacro(FileName);
49  vtkGetStringMacro(FileName);
51 
53  int GetNumberOfParts();
54 
56  short GetPartColorIndex(int partId);
57 
59 
63  vtkSetMacro(PartNumber,int);
64  vtkGetMacro(PartNumber,int);
66 
68 
69  vtkSetMacro(Merging,int);
70  vtkGetMacro(Merging,int);
71  vtkBooleanMacro(Merging,int);
73 
75 
77  void SetLocator(vtkIncrementalPointLocator *locator);
78  vtkGetObjectMacro(Locator,vtkIncrementalPointLocator);
80 
82  void CreateDefaultLocator();
83 
84 protected:
87 
89 
90  char *FileName;
93  int Merging;
95 private:
96  vtkUGFacetReader(const vtkUGFacetReader&); // Not implemented.
97  void operator=(const vtkUGFacetReader&); // Not implemented.
98 };
99 
100 #endif