24 #include "KDChartLeveyJenningsCoordinatePlane_p.h" 30 #include "KDChartPainterSaver_p.h" 38 LeveyJenningsCoordinatePlane::Private::Private()
43 LeveyJenningsCoordinatePlane::LeveyJenningsCoordinatePlane(
Chart* parent )
52 void LeveyJenningsCoordinatePlane::init()
58 Q_ASSERT_X ( dynamic_cast<LeveyJenningsDiagram*>( diagram ),
59 "LeveyJenningsCoordinatePlane::addDiagram",
"Only Levey Jennings " 60 "diagrams can be added to a ternary coordinate plane!" );
67 Q_ASSERT( dynamic_cast<LeveyJenningsGrid*>(
d->grid ) );
68 return leveyJenningsGrid;
73 return d->gridAttributes;
78 d->gridAttributes = attr;
void addDiagram(AbstractDiagram *diagram) override
Adds a diagram to this coordinate plane.
A chart with one or more diagrams.
void setGridAttributes(const LeveyJenningsGridAttributes &attr)
const QPointF translateBack(const QPointF &screenPoint) const
friend class LeveyJenningsGrid
void addDiagram(AbstractDiagram *diagram) override
Adds a diagram to this coordinate plane.
AbstractDiagram defines the interface for diagram classes.
~LeveyJenningsCoordinatePlane() override
AbstractDiagram * diagram()
LeveyJenningsGridAttributes gridAttributes() const
A set of attributes controlling the appearance of grids.
const QPointF translateBack(const QPointF &screenPoint) const
Cartesian coordinate plane.