Main Page
Related Pages
Namespaces
Classes
Files
File List
File Members
datareps
DyHistogramEqualEntries.cxx
Go to the documentation of this file.
1
12
// for truncation warning in debug mode
13
#ifdef _MSC_VER
14
#include "msdevstudio/MSconfig.h"
15
#endif
16
17
#include "
DyHistogramEqualEntries.h
"
18
19
#include "
projectors/EqualEntriesHist1DProjector.h
"
20
#include "
reps/ColumnPointRep.h
"
21
22
// using namespace hippodraw;
23
namespace
hippodraw {
24
25
DyHistogramEqualEntries::DyHistogramEqualEntries
( )
26
:
DataRep
()
27
{
28
m_name
=
"Histogram (EqualEntries)"
;
29
30
m_projector
=
new
EqualEntriesHist1DProjector
( );
31
m_rep
=
new
ColumnPointRep
();
32
}
33
34
DataRep
*
DyHistogramEqualEntries::clone
()
35
{
36
return
new
DyHistogramEqualEntries
( *
this
);
37
}
38
39
bool
DyHistogramEqualEntries::acceptFunction
(
int
num )
40
{
41
return
num == 1;
42
}
43
44
bool
45
DyHistogramEqualEntries::
46
hasErrorDisplay
()
const
47
{
48
return
true
;
49
}
50
51
void
52
DyHistogramEqualEntries::
53
setPointRep
(
RepBase
* rep )
54
{
55
DataRep::setPointRep
( rep );
56
if
( rep ->
name
() ==
"Symbol"
) {
57
rep -> setSize ( 4. );
58
setErrorDisplay
(
Axes::Y
,
true
);
59
notifyObservers
();
60
}
61
}
62
63
bool
64
DyHistogramEqualEntries::
65
hasAxis
(
hippodraw::Axes::Type
axis )
const
66
{
67
return
axis ==
Axes::X
|| axis ==
Axes::Y
;
68
}
69
70
}
// namespace hippodraw
Generated for HippoDraw Class Library by