(abstract) shape class, superclass of all possible shapes (graphics + text).
![]() | MIN_HEIGHT minimal height of a shape. |
![]() | MIN_WIDTH minimal width of a shape. |
![]() | HANDLE_WIDTH size of selection handle. |
![]() | Shape (ShapeView *s, Grafport *g) creates a shape at position (0,0) and size (0,0). |
![]() | IsShape () const |
![]() | IsTextShape () const |
![]() | Clone () |
![]() | Draw () Draws the shape: shape itself and its text and selection handles. |
![]() | Undraw () Erases the shape: by redrawing it in XOR mode. |
![]() | UpdatePosition (const Point *position, bool snap=True) update position and redraw. |
![]() | UpdateSize (int w, int h) update size and redraw. |
![]() | UpdateMove (const Point *delta) update movement and redraw. |
![]() | UpdateSelect (bool s) update selection handles and redraw. |
![]() | UpdateFirstSelect (bool s) update first selection handles and redraw. |
![]() | UpdateColor (string *color) update color and redraw. |
![]() | SetSelect (bool s) |
![]() | SetFirstSelect (bool s) |
![]() | IsFirstSelected () const |
![]() | SetVisible (bool s) |
![]() | SetSubject (Subject *s) |
![]() | SetView (ShapeView *v) |
![]() | GetSubject () const |
![]() | GetView () const |
![]() | SetGrafport (Grafport *g) |
![]() | SetColor (const string *c) |
![]() | GetColor () const |
![]() | Move (const Point *delta) move position by delta. |
![]() | AdjustSize () update size to make the shape fit the text shape strings. |
![]() | DrawOutLine (const Point *center) Draw outline of the shape (when it is dragged). |
![]() | GiveSnp (Point) const intersection of boundary and line from given point to shape center. |
![]() | GiveSnp (Point, int, int, int &) As GiveSnp but takes into account distribution of multiple lines. |
![]() | GiveOrthoSnp (Point to) const Calc the intersection of an orthogonal line with shape boundary. |
![]() | SetHandles (int n) set n handle rectangles. |
![]() | HitHandles (int x, int y) Return (x,y) handle hit (-1 if not, 0 when shape is line). |
![]() | ContainsPt (int x, int y) returns whether (x,y) is geometrically in the shape. |
![]() | GetPosition () const |
![]() | GetTopLeft () const |
![]() | IsSelected () const |
![]() | IsVisible () const |
![]() | IsDuplicate () const |
![]() | GetWidth () const |
![]() | GetHeight () const |
![]() | DrawDuplicate () draw duplication indicator (asterisk). |
![]() | UndrawDuplicate () |
![]() | SetDuplicate (bool b) |
![]() | UpdateDuplicate (bool b) set whether shape is a duplicate shape. |
![]() | IsLine () const |
![]() | GetLeftMost () const smallest x-coordinate in shape. |
![]() | GetTopMost () const smallest y-coordinate in shape. |
![]() | GetRightMost () const largest x-coordinate in shape. |
![]() | GetBottomMost () const largest y-coordinate in shape. |
![]() | WriteMembers (OutputFile *ofile) write members of shape to file. |
![]() | ReadMembers (InputFile *f, double format) read and parse shape members from file ofile. |
![]() | SetAssocSubject (AssocList *) update subject reference from assocList. |
![]() | SetAssocView (AssocList *) update view reference from assocList. |
![]() | CheckReferences () Check if subject exists as graph element and that view exists. |
![]() | SetTextShape () update the strings of text shapes with the subject strings. |
![]() | ChooseTextShape (int, int) return a text shape near (x,y). |
![]() | HitTextShape (int, int) return the text shape at (x,y). |
![]() | InTextArea (int x, int y) Returns if (x,y) is in text-area. |
![]() | HasNameString (const string *, bool, bool) const true if shape's name text shape contains 's'. |
![]() | HasString (const string *, bool, bool) const true if some of shape's text shapes contains 's'. |
![]() | HasString (const string *, bool, bool, List<TextShape *> *) put all text shapes containing 's' in the list l. |
![]() | HasTextShape (TextShape *t) const return if it has t as one of the text shapes. |
![]() | MoveRaw (const Point *delta) move the shape over exact delta, without snap. |
![]() | MIN_HANDLES minimal nr. of handles. |
![]() | GetGrafport () const |
![]() | SetDrawAttributes () set attributes of grafport before drawing. |
![]() | SetOutlineAttributes () set attributes of grafport for drawing outlines. |
![]() | SetSize (int w, int h) set the size of the shape (with a minimum). |
![]() | SetPosition (const Point *position, bool snap=True) set the position (takes into account the grid when snap=True). |
![]() | SnapTopleft () align the shape to the grid (by its topleft). |
![]() | SnapPosition () align the shape to the grid (by its center). |
![]() | SetWidth (int w) |
![]() | SetHeight (int h) |
![]() | SetNrHandles (int n) |
![]() | GetViewer () const |
![]() | PositiveCoord (const Point*) change position so that shape has only positive coordinates. |
![]() | DrawSelect () Draw the handles if object is (first) selected. |
![]() | DrawGraySelect () Draw grey handles if the object is selected. |
![]() | UndrawSelect () |
![]() | UndrawGraySelect () |
![]() | SetTopLeft (const Point *topLeft) set the top-left and position (take into account width and height). |
![]() | SetPositionHandles () set all handle rectangles. |
![]() | ForcePosition (const Point *position) |
(abstract) shape class, superclass of all possible shapes (graphics + text).
bool IsShape() const
virtual bool IsTextShape() const
virtual Shape* Clone()
virtual void Draw()
virtual void Undraw()
virtual void UpdatePosition(const Point *position, bool snap=True)
virtual void UpdateSize(int w, int h)
virtual void UpdateMove(const Point *delta)
virtual void UpdateSelect(bool s)
virtual void UpdateFirstSelect(bool s)
virtual void UpdateColor(string *color)
virtual void SetSelect(bool s)
virtual void SetFirstSelect(bool s)
bool IsFirstSelected() const
void SetVisible(bool s)
void SetSubject(Subject *s)
virtual void SetView(ShapeView *v)
Subject* GetSubject() const
ShapeView* GetView() const
virtual void SetGrafport(Grafport *g)
void SetColor(const string *c)
const string* GetColor() const
virtual void Move(const Point *delta)
virtual void AdjustSize()
virtual void DrawOutLine(const Point *center)
virtual Point GiveSnp(Point) const
virtual Point GiveSnp(Point, int, int, int &)
virtual Point GiveOrthoSnp(Point to) const
void SetHandles(int n)
virtual int HitHandles(int x, int y)
virtual bool ContainsPt(int x, int y)
const Point* GetPosition() const
const Point* GetTopLeft() const
bool IsSelected() const
bool IsVisible() const
bool IsDuplicate() const
int GetWidth() const
int GetHeight() const
static const int MIN_HEIGHT
static const int MIN_WIDTH
virtual void DrawDuplicate()
void UndrawDuplicate()
void SetDuplicate(bool b)
void UpdateDuplicate(bool b)
virtual bool IsLine() const
virtual int GetLeftMost() const
virtual int GetTopMost() const
virtual int GetRightMost() const
virtual int GetBottomMost() const
void WriteMembers(OutputFile *ofile)
bool ReadMembers(InputFile *f, double format)
virtual bool SetAssocSubject(AssocList *)
bool SetAssocView(AssocList *)
bool CheckReferences()
virtual void SetTextShape()
virtual TextShape* ChooseTextShape(int, int)
virtual TextShape* HitTextShape(int, int)
virtual bool InTextArea(int x, int y)
virtual bool HasNameString(const string *, bool, bool) const
virtual bool HasString(const string *, bool, bool) const
virtual bool HasString(const string *, bool, bool, List<TextShape *> *)
virtual bool HasTextShape(TextShape *t) const
virtual void MoveRaw(const Point *delta)
static const int HANDLE_WIDTH
Grafport* GetGrafport() const
virtual void SetDrawAttributes()
void SetOutlineAttributes()
virtual void SetSize(int w, int h)
virtual void SetPosition(const Point *position, bool snap=True)
virtual void SnapTopleft()
virtual void SnapPosition()
void SetWidth(int w)
void SetHeight(int h)
void SetNrHandles(int n)
DiagramViewer* GetViewer() const
void PositiveCoord(const Point*)
static const int MIN_HANDLES
virtual void DrawSelect()
virtual void DrawGraySelect()
virtual void UndrawSelect()
virtual void UndrawGraySelect()
void SetTopLeft(const Point *topLeft)
virtual void SetPositionHandles()
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