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