Main Page
Related Pages
Namespaces
Classes
Files
File List
File Members
datareps
YPlot.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 "
YPlot.h
"
18
19
#include "
projectors/Map1Projector.h
"
20
#include "
reps/SymbolPointRep.h
"
21
22
namespace
hippodraw {
23
24
YPlot::YPlot
( )
25
{
26
m_name
=
"Y Plot"
;
27
28
Map1Projector
* projector =
new
Map1Projector
();
29
// projector -> setYErrorOption ( true );
30
31
m_projector
= projector;
32
m_rep
=
new
SymbolPointRep
(
Symbol::SOLIDSQUARE
, 4.0 );
33
}
34
35
DataRep
*
YPlot::clone
()
36
{
37
return
new
YPlot
( *
this
);
38
}
39
40
bool
YPlot::acceptFunction
(
int
num )
41
{
42
return
num == 1;
43
}
44
45
bool
46
YPlot::
47
hasAxis
(
hippodraw::Axes::Type
axis )
const
48
{
49
return
axis ==
Axes::X
|| axis ==
Axes::Y
;
50
}
51
52
}
// namespace hippodraw
53
Generated for HippoDraw Class Library by