13 #include "msdevstudio/MSconfig.h"
22 using namespace hippodraw;
34 : m_name ( rep.m_name ),
35 m_text ( rep.m_text ),
36 m_color ( rep.m_color ),
37 m_size ( rep.m_size ),
38 m_desel ( rep.m_desel )
163 string error (
"Error: " );
165 error +=
" can not be displayed.";
virtual void setHighLighted(bool yes)
Sets the highlighted state of the point representation.
bool m_desel
A flag to indicate the representation is de-selected.
virtual ~RepBase()
The virtual destructor.
virtual bool uses(Color::Value) const
Returns true if receiving object uses a Color::Value as a property, otherwise returns false...
The base class for the value to the color transformation.
Type
Enumeration of the type of symbols supported by this class.
virtual void setSelected(bool yes=true)
Sets the representation to be selected if yes is true, otherwise set it to be deselected.
Value
A few common colors.
const std::string & getText() const
Gets the text.
std::string m_name
The name of the representation.
virtual bool yError() const
Returns true if the point representation displays error on the Y axis.
A Color class for creating the color object following the standard RGB color space.
static const Color s_desel_color
The color of the representation when it is de-selected.
virtual void setStyle(unsigned int style)
Sets the symbol of the representation.
intp size(numeric::array arr)
virtual void setSize(float value)
Sets the size of the representation.
virtual const Color & color() const
Returns the representation's color.
virtual void setColor(const Color &)
Sets the color of the representation.
Color m_color
The color of the representation.
Style
Line style constants.
virtual void setValueTransform(BinToColor *)
Sets the value transform.
RepBase(const char *, float size)
A constructor that sets the name and size of the representation.
hippodraw::RepBase class interface
float m_size
The size of the representation.
virtual void setErrorOn(hippodraw::Axes::Type axis, bool yes=true)
Sets the error representation on specified axis, if any, to yes.
std::string m_text
The text to be displayed before the statistics.
The abstract base class for views.
virtual void displayError(ViewBase &view)
Display an error message.
virtual const BinToColor * getValueTransform() const
Returns the value transform.
virtual void drawText(const std::string &s, float x, float y, float fontsize, float angle=0.0, char xp= 'l', char yp= 't', bool resize=false, const FontBase *font=0, const Color *color=0)=0
Draws a text string at a point in the view's coordinate system.
bool m_highlite
Sets the state of highlighting.
virtual unsigned int getStyle() const
Returns the style of the point representation.
virtual bool isSelected() const
Returns true if representation is in selected state, otherwise returns false.
const std::string & name() const
Returns the name of the representation.
virtual const Color & getColor() const
Get the color of the representation.
virtual bool xError() const
Returns true if the point representation displays error on the X axis.
hippodraw::ViewBase class interface
void setText(const std::string &text)
Sets the text.
float size() const
Returns the size of the representation.
The base class for the point representation hierarchy.