14 #include "msdevstudio/MSconfig.h" 29 m_fill_color (
Color::red )
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 destructor.
Color m_fill_color
The color to use for the fill.
virtual RepBase * clone()
The clone function returns an object of its own kind which is a copy of this object at this moment...
FilledColumnPointRep()
The default constructor.
hippodraw::ViewBase class interface
virtual void drawValues(ViewBase *view) const
Does the drawing based on the accumulated polyline.
The base class for the point representation hierarchy.
virtual void drawValues(ViewBase *view) const
Does the drawing based on the accumulated polyline.
virtual void setColor(const Color &color)
Sets the color fill.
double low() const
Returns the minimum of the range object.
A Color class for creating the color object following the standard RGB color space.
A PointRep class that draws a filled column to represent the value.
hippodraw::FilledColumnPointRep class interface
std::vector< double > m_x
A cache of the points to be drawn along the X axis.
float size() const
Returns the size of the representation.
Expresses a range of values.
virtual const Color & color() const
Returns the representation's color.
The abstract base class for views.
std::string m_name
The name of the representation.
A PointRep class that draws a column to represent the value.
hippodraw::Range class interface
std::vector< double > m_y
A cache of the points to be drawn along the Y axis.