uLib-0.2
Main Page
Namespaces
Data Structures
Files
File List
Globals
All
Data Structures
Namespaces
Files
Functions
Variables
Typedefs
Enumerations
Enumerator
Friends
Macros
uLibVtkInterface.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 ULIBVTKINTERFACE_H
29
#define ULIBVTKINTERFACE_H
30
31
32
33
#include <ostream>
34
#include <iomanip>
35
36
#include <Core/Object.h>
37
38
39
40
// vtk classes forward declaration //
41
class vtkProp;
42
class vtkPolyData;
43
class vtkPropCollection;
44
class vtkRenderer;
45
class vtkRendererCollection;
46
47
48
namespace uLib {
49
namespace Vtk {
50
51
52
53
//template <class T>
54
//class Tie {
55
56
//public:
57
// typedef T Content;
58
59
60
//};
61
62
63
64
class Puppet : public Object
65
{
66
uLibTypeMacro(Puppet, Object)
67
public:
68
Puppet();
69
~Puppet();
70
71
virtual vtkProp * GetProp();
72
73
virtual vtkPropCollection * GetProps();
74
75
void ConnectRenderer(vtkRenderer *renderer);
76
77
void DisconnectRenderer(vtkRenderer *renderer);
78
79
void ConnectViewer(class Viewer *viewer);
80
81
void DisonnectViewer(class Viewer *viewer);
82
83
vtkRendererCollection * GetRenderers() const;
84
85
86
virtual void PrintSelf(std::ostream &o) const;
87
88
virtual void ConnectInteractor(class vtkRenderWindowInteractor *interactor) { (void)interactor; }
89
90
protected:
91
92
void SetProp(vtkProp *prop);
93
94
void RemoveProp(vtkProp *prop);
95
96
private:
97
friend class PuppetData;
98
class PuppetData *d;
99
};
100
101
102
103
104
class Polydata {
105
public:
106
107
virtual vtkPolyData * GetPolyData() const { return NULL; }
108
109
virtual void SaveToFile(const char *vtk_file);
110
111
virtual void SaveToXMLFile(const char *vtp_file);
112
113
protected:
114
virtual ~Polydata() {}
115
};
116
117
118
} // vtk
119
} // uLib
120
121
122
123
#endif // ULIBVTKINTERFACE_H
Vtk
uLibVtkInterface.h
Generated by
1.8.5