14 #include "msdevstudio/MSconfig.h"
24 using namespace hippodraw;
29 m_fill_color (
Color::red )
37 m_fill_color ( point_rep.m_fill_color )
72 unsigned int size =
m_x.size () -1;
73 for (
unsigned int i = 1;
i <
size;
i += 2 ) {
74 double y2 =
m_y [
i+1 ];
75 double y1 = range.
low ();
76 double x1 =
m_x [
i ];
77 double x2 =
m_x [
i+1 ];
79 view -> drawSquare ( x1, y1, x2, y2, red, green, blue );
FilledColumnPointRep()
The default constructor.
virtual void setColor(const Color &color)
Sets the color fill.
A PointRep class that draws a filled column to represent the value.
~FilledColumnPointRep()
The destructor.
hippodraw::FilledColumnPointRep class interface
std::string m_name
The name of the representation.
A Color class for creating the color object following the standard RGB color space.
virtual void drawValues(ViewBase *view) const
Does the drawing based on the accumulated polyline.
virtual const Color & color() const
Returns the representation's color.
std::vector< double > m_y
A cache of the points to be drawn along the Y axis.
The abstract base class for views.
virtual void drawValues(ViewBase *view) const
Does the drawing based on the accumulated polyline.
hippodraw::Range class interface
double low() const
Returns the minimum of the range object.
Expresses a range of values.
A PointRep class that draws a column to represent the value.
hippodraw::ViewBase class interface
Color m_fill_color
The color to use for the fill.
float size() const
Returns the size of the representation.
virtual RepBase * clone()
The clone function returns an object of its own kind which is a copy of this object at this moment...
The base class for the point representation hierarchy.
std::vector< double > m_x
A cache of the points to be drawn along the X axis.