Main Page
Related Pages
Namespaces
Classes
Files
File List
File Members
datareps
LineDataRep.cxx
Go to the documentation of this file.
1
12
#include "
LineDataRep.h
"
13
14
#include "
projectors/LineProjector.h
"
15
#include "
reps/LinePointRep.h
"
16
17
namespace
hippodraw {
18
19
LineDataRep::
20
LineDataRep
(
hippodraw::Axes::Type
axis,
double
value )
21
{
22
m_name
=
"Static Line"
;
23
m_projector
=
new
LineProjector
( axis, value );
24
m_rep
=
new
LinePointRep
( );
25
// The above deleted in ~DataRep()
26
const
Color
red (
Color::red
);
27
28
m_rep
->
setColor
( red );
29
}
30
31
LineDataRep::
32
LineDataRep
()
33
{
34
m_name
=
"Static Line"
;
35
}
36
37
DataRep
*
LineDataRep::clone
()
38
{
39
return
new
LineDataRep
( *
this
);
40
}
41
42
/* virtual */
43
bool
LineDataRep::hasNTupleBindings
()
const
44
{
45
return
false
;
46
}
47
48
void
49
LineDataRep::
50
setValue
(
double
value )
51
{
52
LineProjector
* projector
53
= dynamic_cast <
LineProjector
* > (
m_projector
);
54
projector ->
setValue
( value );
55
}
56
57
bool
58
LineDataRep::
59
hasAxis
(
hippodraw::Axes::Type
axis )
const
60
{
61
return
axis ==
Axes::X
|| axis ==
Axes::Y
;
62
}
63
64
}
// namespace hippodraw
65
Generated for HippoDraw Class Library by