uLib-0.2
Main Page
Namespaces
Data Structures
Files
File List
Globals
All
Data Structures
Namespaces
Files
Functions
Variables
Typedefs
Enumerations
Enumerator
Friends
Macros
vtkTriangleMesh.h
Go to the documentation of this file.
1
/*//////////////////////////////////////////////////////////////////////////////
2
// CMT Cosmic Muon Tomography project //////////////////////////////////////////
4
5
Copyright (c) 2014, Universita' degli Studi di Padova, INFN sez. di Padova
6
All rights reserved
7
8
Authors: Andrea Rigoni Garola < andrea.rigoni@pd.infn.it >
9
10
------------------------------------------------------------------
11
This library is free software; you can redistribute it and/or
12
modify it under the terms of the GNU Lesser General Public
13
License as published by the Free Software Foundation; either
14
version 3.0 of the License, or (at your option) any later version.
15
16
This library is distributed in the hope that it will be useful,
17
but WITHOUT ANY WARRANTY; without even the implied warranty of
18
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
19
Lesser General Public License for more details.
20
21
You should have received a copy of the GNU Lesser General Public
22
License along with this library.
23
25
26
27
28
#ifndef VTKTRIANGLEMESH_H
29
#define VTKTRIANGLEMESH_H
30
31
32
#include "uLibVtkInterface.h"
33
#include "Math/TriangleMesh.h"
34
35
class vtkPolyData;
36
37
namespace uLib {
38
39
40
class vtkTriangleMesh : public Abstract::uLibVtkPolydata {
41
typedef TriangleMesh Content;
42
public:
43
vtkTriangleMesh(Content &content);
44
~vtkTriangleMesh();
45
46
void ReadFromFile(const char *filename);
47
48
void ReadFromXMLFile(const char *filename);
49
50
void ReadFromObjFile(const char *filename);
51
52
void ReadFromStlFile(const char *filename);
53
54
virtual class vtkProp *GetProp();
55
56
virtual class vtkPolyData *GetPolyData() const;
57
58
void Update();
59
60
private:
61
friend class vtkTriangleMeshPimpl;
62
class vtkTriangleMeshPimpl *d;
63
};
64
65
66
67
}
68
69
#endif // VTKTRIANGLEMESH_H
Vtk
vtkTriangleMesh.h
Generated by
1.8.5