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);
38 
43  static vtkUGFacetReader *New();
44 
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();
106 
108 
109  char *FileName;
112  int Merging;
114 private:
115  vtkUGFacetReader(const vtkUGFacetReader&) VTK_DELETE_FUNCTION;
116  void operator=(const vtkUGFacetReader&) VTK_DELETE_FUNCTION;
117 };
118 
119 #endif
vtkUGFacetReader::PartNumber
int PartNumber
Definition: vtkUGFacetReader.h:111
vtkInformationVector
Store zero or more vtkInformation instances.
Definition: vtkInformationVector.h:41
vtkUGFacetReader::Locator
vtkIncrementalPointLocator * Locator
Definition: vtkUGFacetReader.h:113
vtkPolyDataAlgorithm::PrintSelf
void PrintSelf(ostream &os, vtkIndent indent) override
Methods invoked by print to print information about the object including superclasses.
vtkMTimeType
vtkTypeUInt64 vtkMTimeType
Definition: vtkType.h:248
vtkPolyDataAlgorithm.h
vtkPolyDataAlgorithm::RequestData
virtual int RequestData(vtkInformation *request, vtkInformationVector **inputVector, vtkInformationVector *outputVector)
This is called by the superclass.
vtkObject::GetMTime
virtual vtkMTimeType GetMTime()
Return this object's modified time.
vtkIndent
a simple class to control print indentation
Definition: vtkIndent.h:39
vtkIncrementalPointLocator
Abstract class in support of both point location and point insertion.
Definition: vtkIncrementalPointLocator.h:51
vtkUGFacetReader::FileName
char * FileName
Definition: vtkUGFacetReader.h:109
vtkGetStringMacro
vtkGetStringMacro(ExtensionsString)
Returns a string listing all available extensions.
vtkUGFacetReader::Merging
int Merging
Definition: vtkUGFacetReader.h:112
vtkBooleanMacro
vtkBooleanMacro(IgnoreDriverBugs, bool)
Updates the extensions string.
vtkInformation
Store vtkAlgorithm input/output information.
Definition: vtkInformation.h:86
vtkSetMacro
vtkSetMacro(IgnoreDriverBugs, bool)
Updates the extensions string.
vtkUGFacetReader::PartColors
vtkShortArray * PartColors
Definition: vtkUGFacetReader.h:110
vtkShortArray
dynamic, self-adjusting array of short
Definition: vtkShortArray.h:42
vtkUGFacetReader
read EDS Unigraphics facet files
Definition: vtkUGFacetReader.h:33
vtkPolyDataAlgorithm::New
static vtkPolyDataAlgorithm * New()
vtkPolyDataAlgorithm
Superclass for algorithms that produce only polydata as output.
Definition: vtkPolyDataAlgorithm.h:44