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 #if !defined(VTK_LEGACY_REMOVE)
28 
29 #include "vtkIOGeometryModule.h" // For export macro
30 #include "vtkPolyDataAlgorithm.h"
31 
33 class vtkShortArray;
34 
35 class VTKIOGEOMETRY_EXPORT vtkUGFacetReader : public vtkPolyDataAlgorithm
36 {
37 public:
39  void PrintSelf(ostream& os, vtkIndent indent) override;
40 
45  static vtkUGFacetReader *New();
46 
51  vtkMTimeType GetMTime() override;
52 
54 
57  vtkSetStringMacro(FileName);
58  vtkGetStringMacro(FileName);
60 
64  int GetNumberOfParts();
65 
69  short GetPartColorIndex(int partId);
70 
72 
78  vtkSetMacro(PartNumber,int);
79  vtkGetMacro(PartNumber,int);
81 
83 
86  vtkSetMacro(Merging,int);
87  vtkGetMacro(Merging,int);
88  vtkBooleanMacro(Merging,int);
90 
92 
96  void SetLocator(vtkIncrementalPointLocator *locator);
97  vtkGetObjectMacro(Locator,vtkIncrementalPointLocator);
99 
103  void CreateDefaultLocator();
104 
105 protected:
107  ~vtkUGFacetReader() override;
108 
110 
111  char *FileName;
114  int Merging;
116 private:
117  vtkUGFacetReader(const vtkUGFacetReader&) = delete;
118  void operator=(const vtkUGFacetReader&) = delete;
119 };
120 
121 #endif //VTK_LEGACY_REMOVE
122 
123 #endif
read EDS Unigraphics facet files
dynamic, self-adjusting array of short
Definition: vtkShortArray.h:42
Store vtkAlgorithm input/output information.
vtkTypeUInt32 vtkMTimeType
Definition: vtkType.h:300
virtual int RequestData(vtkInformation *request, vtkInformationVector **inputVector, vtkInformationVector *outputVector)
This is called by the superclass.
Abstract class in support of both point location and point insertion.
vtkShortArray * PartColors
static vtkPolyDataAlgorithm * New()
Superclass for algorithms that produce only polydata as output.
a simple class to control print indentation
Definition: vtkIndent.h:39
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.
vtkIncrementalPointLocator * Locator
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.