13 #include "msdevstudio/MSconfig.h"
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.";
float m_size
The size of the representation.
Value
A few common colors.
std::string m_text
The text to be displayed before the statistics.
virtual void displayError(ViewBase &view)
Display an error message.
The base class for the point representation hierarchy.
virtual unsigned int getStyle() const
Returns the style of the point representation.
hippodraw::ViewBase class interface
hippodraw::RepBase class interface
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 void setSize(float value)
Sets the size of the representation.
virtual void setColor(const Color &)
Sets the color of the representation.
RepBase(const char *, float size)
A constructor that sets the name and size of the representation.
void setText(const std::string &text)
Sets the text.
The base class for the value to the color transformation.
float size() const
Returns 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.
virtual const BinToColor * getValueTransform() const
Returns the value transform.
Type
Enumeration of the type of symbols supported by this class.
bool m_highlite
Sets the state of highlighting.
virtual ~RepBase()
The virtual destructor.
intp size(numeric::array arr)
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.
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.
A Color class for creating the color object following the standard RGB color space.
Style
Line style constants.
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.
const std::string & getText() const
Gets the text.
virtual bool uses(Color::Value) const
Returns true if receiving object uses a Color::Value as a property, otherwise returns false...
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.
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.
virtual void setSelected(bool yes=true)
Sets the representation to be selected if yes is true, otherwise set it to be deselected.
virtual const Color & color() const
Returns the representation's color.
Color m_color
The color of the representation.
virtual void setValueTransform(BinToColor *)
Sets the value transform.
The abstract base class for views.