Main Page
Related Pages
Namespaces
Classes
Files
File List
File Members
projectors
LineProjector.h
Go to the documentation of this file.
1
/* -*- mode: c++ -*- */
2
14
#ifndef _LineProjector_H_
15
#define _LineProjector_H_
16
17
#include "
ProjectorBase.h
"
18
19
#include "
datasrcs/DataPointTuple.h
"
20
21
namespace
hippodraw {
22
27
class
MDL_HIPPOPLOT_API
LineProjector
:
public
ProjectorBase
28
{
29
30
private
:
31
34
double
m_value
;
35
38
hippodraw::Axes::Type
m_axis
;
39
42
std::string
m_title
;
43
45
LineProjector
(
const
LineProjector
& );
46
47
public
:
48
51
LineProjector
(
hippodraw::Axes::Type
,
double
value );
52
55
virtual
~
LineProjector
();
56
57
virtual
ProjectorBase
*
clone
();
58
59
/* The required virtual functions. */
60
virtual
void
addPointReps ();
61
virtual
bool
isEmpty ()
const
;
62
virtual
Range
dataRangeOn (
hippodraw::Axes::Type
)
const
;
63
virtual
const
std::string & getTitle()
const
;
64
virtual
Range
valueRange ()
const
;
65
virtual
double
getPosOn (
hippodraw::Axes::Type
)
const
;
66
virtual
const
std::string & getXLabel()
const
;
67
virtual
const
std::string & getYLabel (
bool
flag =
false
)
const
;
68
virtual
int
getNumberOfEntries ()
const
;
69
71
int
getUnderflow ()
const
;
72
74
int
getOverflow ()
const
;
75
76
virtual
DataSource
* createNTuple ()
const
;
77
78
virtual
void
prepareValues ();
79
82
void
setValue (
double
value );
83
84
protected
:
85
86
virtual
void
fillProjectedValues (
DataSource
* ntuple,
87
bool
in_range =
false
)
const
;
88
89
};
90
91
}
// namespace hippodraw
92
93
#endif // _LineProjector_H_
Generated for HippoDraw Class Library by