(abstract) graphical shape class, superclass of box, ellipse, line etc.
![]() | GShape (ShapeView *v, Grafport *g, int x, int y) constructor, creates shape at position (x,y). |
![]() | GShape (const GShape &) |
![]() | ~GShape () |
![]() | Draw () |
![]() | Undraw () |
![]() | DrawShape () draw the shape. |
![]() | UndrawShape () |
![]() | DrawTextShapes () |
![]() | UndrawTextShapes () |
![]() | UpdateNameString (const string *s) update string of name text shape and redraw. |
![]() | SetNameString (const string *s) |
![]() | GetNameString () |
![]() | GetName () const |
![]() | SetTextShape () |
![]() | SetSelect (bool s) select this shape and its text shapes are selected. |
![]() | GetLineWidth () const |
![]() | SetLineWidth (unsigned n) |
![]() | UpdateLineWidth (unsigned n) |
![]() | GetLineStyle () const |
![]() | SetLineStyle (LineStyle::Type x) |
![]() | UpdateLineStyle (LineStyle::Type x) |
![]() | GetTextColor () const |
![]() | UpdateTextColor (const string *c) |
![]() | HitTextShape (int x, int y) Returns if (x,y) is in name, and if so returns name. |
![]() | HasTextShape (TextShape *t) const return if it has t as one of the text shapes. |
![]() | GetLeftMost () const refinements of those shape members. |
![]() | GetTopMost () const |
![]() | GetRightMost () const |
![]() | GetBottomMost () const |
![]() | IsFixedName () |
![]() | SetFixedName (bool b) |
![]() | SetGrafport (Grafport *g) set grafport of itself and its text shapes. |
![]() | SetView (ShapeView *v) set view of itself and its text shapes. |
![]() | UpdateFont (XFont *ft) update font and redraw. |
![]() | UpdateAlignment (TextAlign::Type alignment) update text alignments and redraw. |
![]() | ChooseTextShape (int, int) return a text shape near (x,y). |
![]() | NotifyTextMove (TextShape *) react on movement of some text shape. |
![]() | GetFont () const return font of the textshapes (all textshapes have same font). |
![]() | GetAlignment () const |
![]() | HasNameString (const string *s, bool c1, bool c2) const return if name text shape contains 's'. |
![]() | HasString (const string *s, bool c1, bool c2) const return if some text shape contains 's'. |
![]() | HasString (const string *s, bool cI, bool aS, List<TextShape *> *l) put all textshapes containing 's' in the list l. |
![]() | CheckReferences () Check also that name reference is ok. |
![]() | SetFont (XFont *ft) set fonts of text shapes. |
![]() | SetTextColor (const string *c) set color of text shapes. |
![]() | WriteGraphicsPart (OutputFile *ofile) write line width and style to file. |
![]() | ReadGraphicsPart (InputFile *ifile, double format) read line width and style from file. |
![]() | WriteTextPart (OutputFile *ofile) write font and alignment to file. |
![]() | ReadTextPart (InputFile *ifile, double format) read and parse font and alignment from file. |
![]() | SetDrawAttributes () |
![]() | SetAlignment (TextAlign::Type a) set alignments of text shapes. |
![]() | SnapPosition () snap at position and text shapes are moved with. |
![]() | SnapTopleft () snap at topleft and text shapes are moved with. |
(abstract) graphical shape class, superclass of box, ellipse, line etc.
GShape(const GShape &)
virtual ~GShape()
void Draw()
void Undraw()
virtual void DrawShape()
virtual void UndrawShape()
virtual void DrawTextShapes()
virtual void UndrawTextShapes()
virtual void UpdateNameString(const string *s)
void SetNameString(const string *s)
const string* GetNameString()
TextShape* GetName() const
void SetTextShape()
virtual void SetSelect(bool s)
unsigned GetLineWidth() const
void SetLineWidth(unsigned n)
void UpdateLineWidth(unsigned n)
LineStyle::Type GetLineStyle() const
void SetLineStyle(LineStyle::Type x)
void UpdateLineStyle(LineStyle::Type x)
const string* GetTextColor() const
void UpdateTextColor(const string *c)
virtual TextShape* HitTextShape(int x, int y)
bool HasTextShape(TextShape *t) const
virtual int GetLeftMost() const
virtual int GetTopMost() const
virtual int GetRightMost() const
virtual int GetBottomMost() const
bool IsFixedName()
void SetFixedName(bool b)
void SetGrafport(Grafport *g)
void SetView(ShapeView *v)
virtual void UpdateFont(XFont *ft)
virtual void UpdateAlignment(TextAlign::Type alignment)
TextShape* ChooseTextShape(int, int)
virtual void NotifyTextMove(TextShape *)
XFont* GetFont() const
TextAlign::Type GetAlignment() const
bool HasNameString(const string *s, bool c1, bool c2) const
bool HasString(const string *s, bool c1, bool c2) const
bool HasString(const string *s, bool cI, bool aS, List<TextShape *> *l)
bool CheckReferences()
virtual void SetFont(XFont *ft)
virtual void SetTextColor(const string *c)
void WriteGraphicsPart(OutputFile *ofile)
bool ReadGraphicsPart(InputFile *ifile, double format)
void WriteTextPart(OutputFile *ofile)
bool ReadTextPart(InputFile *ifile, double format)
void SetDrawAttributes()
virtual void SetAlignment(TextAlign::Type a)
void SnapPosition()
void SnapTopleft()
alphabetic index hierarchy of classes
this page has been generated automatically by doc++
(c)opyright by Malte Zöckler, Roland Wunderling
contact: doc++@zib.de