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 
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 
95  vtkGetObjectMacro(Locator,vtkIncrementalPointLocator);
97 
102 
103 protected:
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::New
static vtkUGFacetReader * New()
Construct object to extract all parts, and with point merging turned on.
vtkUGFacetReader::PartNumber
int PartNumber
Definition: vtkUGFacetReader.h:111
vtkInformationVector
Store zero or more vtkInformation instances.
Definition: vtkInformationVector.h:42
vtkUGFacetReader::Locator
vtkIncrementalPointLocator * Locator
Definition: vtkUGFacetReader.h:113
vtkUGFacetReader::CreateDefaultLocator
void CreateDefaultLocator()
Create default locator.
vtkMTimeType
vtkTypeUInt64 vtkMTimeType
Definition: vtkType.h:248
vtkPolyDataAlgorithm.h
vtkUGFacetReader::PrintSelf
void PrintSelf(ostream &os, vtkIndent indent)
Methods invoked by print to print information about the object including superclasses.
vtkIndent
a simple class to control print indentation
Definition: vtkIndent.h:40
vtkUGFacetReader::SetLocator
void SetLocator(vtkIncrementalPointLocator *locator)
Specify a spatial locator for merging points.
vtkIncrementalPointLocator
Abstract class in support of both point location and point insertion.
Definition: vtkIncrementalPointLocator.h:52
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:87
vtkSetMacro
vtkSetMacro(IgnoreDriverBugs, bool)
Updates the extensions string.
vtkUGFacetReader::~vtkUGFacetReader
~vtkUGFacetReader()
vtkUGFacetReader::PartColors
vtkShortArray * PartColors
Definition: vtkUGFacetReader.h:110
vtkShortArray
dynamic, self-adjusting array of short
Definition: vtkShortArray.h:43
vtkUGFacetReader::vtkUGFacetReader
vtkUGFacetReader()
vtkUGFacetReader::GetPartColorIndex
short GetPartColorIndex(int partId)
Retrieve color index for the parts in the file.
vtkUGFacetReader::GetMTime
vtkMTimeType GetMTime()
Overload standard modified time function.
vtkUGFacetReader
read EDS Unigraphics facet files
Definition: vtkUGFacetReader.h:34
vtkUGFacetReader::RequestData
int RequestData(vtkInformation *, vtkInformationVector **, vtkInformationVector *)
This is called by the superclass.
vtkUGFacetReader::GetNumberOfParts
int GetNumberOfParts()
Special methods for interrogating the data file.
vtkPolyDataAlgorithm
Superclass for algorithms that produce only polydata as output.
Definition: vtkPolyDataAlgorithm.h:45