24 #ifndef COM_DAFER45_TBTK_PLOT_POINT
25 #define COM_DAFER45_TBTK_PLOT_POINT
27 #include "TBTK/Plot/PlotCanvas.h"
28 #include "TBTK/Plot/Coordinate.h"
29 #include "TBTK/Plot/Decoration.h"
30 #include "TBTK/Plot/Drawable.h"
35 class Point :
public Drawable{
41 Point(
const Coordinate &coordinate,
const Decoration &decoration);
47 void setCoordinate(
const Coordinate &coordinate);
50 void setDecoration(
const Decoration &decoration);
53 virtual void draw(PlotCanvas &canvas);
56 virtual double getMinX()
const;
59 virtual double getMaxX()
const;
62 virtual double getMinY()
const;
65 virtual double getMaxY()
const;
68 Coordinate coordinate;
71 Decoration decoration;
74 inline Point::Point() : coordinate(0, 0){
78 const Coordinate &coordinate,
79 const Decoration &decoration
81 coordinate(coordinate)
83 this->decoration = decoration;
86 inline Point::~Point(){
89 inline void Point::setCoordinate(
const Coordinate &coordinate){
90 this->coordinate = coordinate;
93 inline void Point::setDecoration(
const Decoration &decoration){
94 this->decoration = decoration;
97 inline double Point::getMinX()
const{
101 inline double Point::getMaxX()
const{
105 inline double Point::getMinY()
const{
109 inline double Point::getMaxY()
const{