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 =========================================================================*/
24 #ifndef vtkUGFacetReader_h
25 #define vtkUGFacetReader_h
26 
27 #include "vtkIOGeometryModule.h" // For export macro
28 #include "vtkPolyDataAlgorithm.h"
29 
31 class vtkShortArray;
32 
33 class VTKIOGEOMETRY_EXPORT vtkUGFacetReader : public vtkPolyDataAlgorithm
34 {
35 public:
37  void PrintSelf(ostream& os, vtkIndent indent) VTK_OVERRIDE;
38 
43  static vtkUGFacetReader *New();
44 
49  vtkMTimeType GetMTime() VTK_OVERRIDE;
50 
52 
55  vtkSetStringMacro(FileName);
56  vtkGetStringMacro(FileName);
58 
62  int GetNumberOfParts();
63 
67  short GetPartColorIndex(int partId);
68 
70 
76  vtkSetMacro(PartNumber,int);
77  vtkGetMacro(PartNumber,int);
79 
81 
84  vtkSetMacro(Merging,int);
85  vtkGetMacro(Merging,int);
86  vtkBooleanMacro(Merging,int);
88 
90 
94  void SetLocator(vtkIncrementalPointLocator *locator);
95  vtkGetObjectMacro(Locator,vtkIncrementalPointLocator);
97 
101  void CreateDefaultLocator();
102 
103 protected:
105  ~vtkUGFacetReader() VTK_OVERRIDE;
106 
107  int RequestData(vtkInformation *, vtkInformationVector **, vtkInformationVector *) VTK_OVERRIDE;
108 
109  char *FileName;
110  vtkShortArray *PartColors;
111  int PartNumber;
112  int Merging;
113  vtkIncrementalPointLocator *Locator;
114 private:
115  vtkUGFacetReader(const vtkUGFacetReader&) VTK_DELETE_FUNCTION;
116  void operator=(const vtkUGFacetReader&) VTK_DELETE_FUNCTION;
117 };
118 
119 #endif
read EDS Unigraphics facet files
dynamic, self-adjusting array of short
Definition: vtkShortArray.h:39
Store vtkAlgorithm input/output information.
vtkTypeUInt32 vtkMTimeType
Definition: vtkType.h:300
Abstract class in support of both point location and point insertion.
static vtkPolyDataAlgorithm * New()
Superclass for algorithms that produce only polydata as output.
a simple class to control print indentation
Definition: vtkIndent.h:33
virtual vtkMTimeType GetMTime()
Return this object's modified time.
vtkGetStringMacro(ExtensionsString)
Returns a string listing all available extensions.
vtkSetMacro(IgnoreDriverBugs, bool)
When set known driver bugs are ignored during driver feature detection.
Store zero or more vtkInformation instances.
vtkBooleanMacro(IgnoreDriverBugs, bool)
When set known driver bugs are ignored during driver feature detection.
void PrintSelf(ostream &os, vtkIndent indent) override
Methods invoked by print to print information about the object including superclasses.