uLib-0.2
Main Page
Namespaces
Data Structures
Files
File List
Globals
All
Data Structures
Namespaces
Files
Functions
Variables
Typedefs
Enumerations
Enumerator
Friends
Macros
vtkMuonEvent.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 VTKMUONEVENT_H
29
#define VTKMUONEVENT_H
30
31
#include <vtkSmartPointer.h>
32
#include <vtkSphereSource.h>
33
#include <vtkAppendPolyData.h>
34
#include <vtkPolyDataMapper.h>
35
#include <vtkLineSource.h>
36
#include <vtkActor.h>
37
38
#include <vtk3DWidget.h>
39
#include <vtkBoxWidget.h>
40
41
#include <vtkRenderWindowInteractor.h>
42
43
#include <vtkCommand.h>
44
#include <vtkTransform.h>
45
46
#include "Math/Dense.h"
47
48
#include "uLibVtkInterface.h"
49
#include "Detectors/MuonEvent.h"
50
51
52
53
54
namespace uLib {
55
56
class vtkMuonEvent : public Abstract::uLibVtkPolydata {
57
typedef MuonEventData Content;
58
public:
59
vtkMuonEvent(const MuonEventData &content);
60
vtkMuonEvent(MuonEventData &content);
61
~vtkMuonEvent();
62
63
Content& GetContent();
64
65
void PrintSelf(std::ostream &o) const;
66
67
virtual vtkProp *GetProp();
68
69
virtual vtkPolyData* GetPolyData() const;
70
71
void AddPocaPoint(HPoint3f poca);
72
73
HPoint3f GetPocaPoint();
74
75
void vtkStartInteractive();
76
77
78
private:
79
void InstallPipe();
80
81
vtkMuonEvent::Content *content;
82
vtkPolyData *m_PolyData;
83
vtkActor *m_Prop;
84
85
vtkAppendPolyData *m_Appender;
86
vtkBoxWidget *m_WidgetIN;
87
vtkBoxWidget *m_WidgetOUT;
88
HPoint3f m_Poca;
89
};
90
91
92
}
93
94
#endif // VTKMUONSCATTER_H
Vtk
vtkMuonEvent.h
Generated by
1.8.5