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.";
The abstract base class for views.
Style
Line style constants.
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...
Type
Enumeration of the type of symbols supported by this class.
virtual void setStyle(unsigned int style)
Sets the symbol of the representation.
virtual void setHighLighted(bool yes)
Sets the highlighted state of the point representation.
hippodraw::ViewBase class interface
The base class for the point representation hierarchy.
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.
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.
Color m_color
The color of the representation.
virtual void setValueTransform(BinToColor *)
Sets the value transform.
static const Color s_desel_color
The color of the representation when it is de-selected.
std::string m_text
The text to be displayed before the statistics.
The base class for the value to the color transformation.
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.
virtual unsigned int getStyle() const
Returns the style of the point representation.
const std::string & name() const
Returns the name of the representation.
float m_size
The size of the representation.
Value
A few common colors.
intp size(numeric::array arr)
virtual void displayError(ViewBase &view)
Display an error message.
float size() const
Returns the size of the representation.
virtual bool isSelected() const
Returns true if representation is in selected state, otherwise returns false.
virtual const BinToColor * getValueTransform() const
Returns the value transform.
A Color class for creating the color object following the standard RGB color space.
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.
virtual ~RepBase()
The virtual destructor.
virtual const Color & getColor() const
Get the color of the representation.
void setText(const std::string &text)
Sets the text.
virtual bool xError() const
Returns true if the point representation displays error on the X axis.
virtual void setErrorOn(hippodraw::Axes::Type axis, bool yes=true)
Sets the error representation on specified axis, if any, to yes.
bool m_highlite
Sets the state of highlighting.
hippodraw::RepBase class interface