forked from Derek-yfqiu/OCCReader
-
Notifications
You must be signed in to change notification settings - Fork 1
/
vtkOCCReader.h
79 lines (67 loc) · 2.47 KB
/
vtkOCCReader.h
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
// Copyright (C) 2014-2015 KIT-INR/NK
//
// This library is free software; you can redistribute it and/or
// modify it under the terms of the GNU Lesser General Public
// License as published by the Free Software Foundation; either
// version 2.1 of the License.
//
// This library is distributed in the hope that it will be useful,
// but WITHOUT ANY WARRANTY; without even the implied warranty of
// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
// Lesser General Public License for more details.
//
// You should have received a copy of the GNU Lesser General Public
// License along with this library; if not, write to the Free Software
// Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
//
//
#ifndef __vtkOCCReader_h
#define __vtkOCCReader_h
#define OCCReader_EXPORTS
#include "OCC2VTK.h"
#include "vtkPolyDataAlgorithm.h"
#include <vtksys/stl/vector>
//#include <GEOM_Gen.hh>
#include "GEOM_VertexSource.h"
#include "GEOM_EdgeSource.h"
#include "GEOM_WireframeFace.h"
#include "GEOM_ShadingFace.h"
#include <string>
//#include <config.h>
class vtkDoubleArray;
class vtkUnstructuredGrid;
class vtkOCCReader : public vtkAlgorithm //
{
public:
vtkTypeMacro(vtkOCCReader, vtkAlgorithm)
OCC2VTK_EXPORT static vtkOCCReader* New();
virtual void PrintSelf( ostream& os, vtkIndent indent );
// virtual const char *GetFileName();
// virtual void SetFileName(const char *FileName);
// Specifies the name of the file
vtkGetStringMacro(FileName);
vtkSetStringMacro(FileName);
// void SetBufferingPolicy(int pol);
// int GetBufferingPolicy();
void SetMode(int dispMode);
int getMode();
void SetDeflection(double aDeflection);
double getDeflection();
protected:
vtkOCCReader();
virtual ~vtkOCCReader();
int FillOutputPortInformation(int vtkNotUsed(port), vtkInformation* info);
int ProcessRequest(vtkInformation* request, vtkInformationVector** inputVector, vtkInformationVector* outputVector);
virtual int RequestData( vtkInformation* request, vtkInformationVector** inInfo, vtkInformationVector* outInfo );
int DispMode; //1-wireframe 2-shading
float myDeflection; //for adjusting the smoothing of the shading
vtkPointData *MyDataSet;
// std::string myFileName;
// name of the file to read
char* FileName;
//not clean but to avoid to include CORBA.h in this *.h
static void *Orb;
vtkOCCReader( const vtkOCCReader& ); // Not implemented.
void operator = ( const vtkOCCReader& ); // Not implemented.
};
#endif // __vtkOCCReader_h