class ShapeView : public Thing Class containing a single view (set of shapes).
| | ShapeView (DiagramViewer *v) |
| | ~ShapeView () |
| | GetClassType () const |
| | IsView () const |
| | Draw () draw all shapes in the view. |
| | Undraw () erase all shapes in the view. |
| | SetGrafport (Grafport *g) set grafport of all shapes. |
| | GetParent () const each view has a parent node. |
| | SetParent (Node *n) |
| | GetIndex () const each view has a unique index. |
| | SetIndex (string *s) |
| | NrOfShapes () const the number of shapes. |
| | GetShapes () const |
| | GetSelection () const |
| | HasShape (GShape *s) |
| | Snap (Point *p) Snap point to discrete point-position. |
| | Snap (int i) Snap int to discrete point-position. |
| | GetViewer () const |
| | WriteShapes (OutputFile *f) write all shapes to file (in separate clauses). |
| | ReadMembers (InputFile *f, double format) read view section. |
| | SetReferences (AssocList *) update references when view is read. |
| | CheckReferences () Check parent node, Check that shapes have right view reference. |
| | CheckShapes () find all shapes with wrong references; |
| | NrSelected () const the number of selected shapes. |
| | FirstSelected () const return the first selected shape. |
| | DeselectAll () deselect all shapes in the view. |
| | SelectShape (GShape *shape) add shape to selection. |
| | FirstSelectShape (GShape *shape) add shape to selection as primus inter pares. |
| | DeselectShape (GShape *shape) remove shape to selection. |
| | HitShape (int x, int y) return shape from view if (x,y) is in shape. |
| | HitNodeShape (int x, int y) return node from view if (x,y) is in shape. |
| | HitLine (int x, int y, int &whichsegment) return line from view if (x,y) is in line. segment is set to which segment. |
| | HitLineHandle (int x, int y, int &which) return line from view if (x,y) hits handle. |
| | HitTextShape (int x, int y, bool emptyallowed=True) return text-shape from view if (x,y) is in shape. |
| | GetCurrentShapeNr () const |
| | SetCurrentShapeNr (int i) |
| | SetCurrentShapeNr (GShape *s) |
| | GetNextShape (const string *s, bool sens, bool substring, bool nameOnly) return the next shape containing s as name. |
| | GetShapes (List<GShape *> *shapes, const string *s, bool sens, bool substring, bool nameOnly) get shapes containing s as name (case sensitive, substring). |
| | CalcSizeElements (Point &topLeft, Point &bottomRight) |
| | CalcSizeSelection (Point &topLeft, Point &bottomRight) |
| | CalcSizeShapes (List<GShape *> *shapes, Point &topLeft, Point &bottomRight) calculate covered area of shapes in grafport. |
| | AddShapeRaw (GShape *shape) add to viewer and draw/redraw shape. |
| | AddShape (GShape *shape) add to viewer and draw/redraw shape and recalc. line positions. |
| | AddShapes (List<GShape *> *shapes) |
| | RemoveShapeRaw (GShape *shape) remove from viewer and erase shape. |
| | RemoveShape (GShape *shape) remove from viewer, and erase drawing and recalc line positions. |
| | RemoveShapes (List<GShape *> *shapes) |
| | GetShape (Subject *subject) return first shape from shapes having given subject. |
| | GetShapes (Subject *subject, List<GShape *> *shapes) put in shapes all shapes from shapes having given subject. |
| | MultipleLinesPosUpdate (Line *line) update the positions of the lines connecting same shapes as line. |
| | MultipleLines (Line *line) update multiple lines between two nodes (called when line added). |
| | CompleteShapes (List<GShape *> *s, GShape *n1, GShape *n2) add to s all lines that connect shapes n1 and n2. |
| | CompleteLines (List<GShape *> *shapes) add shapes which are connected by the lines in shapes. |
| | CompleteShapes (List<GShape *> *shapes) add lines to shapes which connect the shapes in shapes. |
| | DrawNames () draw only names in view. |
| | ShowAll () make all shapes in view visible. |
Class containing a single view (set of shapes).
virtual ~ShapeView()
int GetClassType() const
bool IsView() const
void Draw()
void Undraw()
void SetGrafport(Grafport *g)
Node* GetParent() const
void SetParent(Node *n)
const string* GetIndex() const
void SetIndex(string *s)
unsigned NrOfShapes() const
List <GShape *> * GetShapes() const
List <GShape *> * GetSelection() const
bool HasShape(GShape *s)
void Snap(Point *p)
int Snap(int i)
DiagramViewer* GetViewer() const
void WriteShapes(OutputFile *f)
bool ReadMembers(InputFile *f, double format)
bool SetReferences(AssocList *)
bool CheckReferences()
void CheckShapes()
unsigned NrSelected() const
GShape* FirstSelected() const
void DeselectAll()
virtual void SelectShape(GShape *shape)
virtual void FirstSelectShape(GShape *shape)
void DeselectShape(GShape *shape)
GShape* HitShape(int x, int y)
NodeShape* HitNodeShape(int x, int y)
Line* HitLine(int x, int y, int &whichsegment)
Line* HitLineHandle(int x, int y, int &which)
TextShape* HitTextShape(int x, int y, bool emptyallowed=True)
int GetCurrentShapeNr() const
void SetCurrentShapeNr(int i)
void SetCurrentShapeNr(GShape *s)
GShape* GetNextShape(const string *s, bool sens, bool substring, bool nameOnly)
void GetShapes(List<GShape *> *shapes, const string *s, bool sens, bool substring, bool nameOnly)
void CalcSizeElements(Point &topLeft, Point &bottomRight)
void CalcSizeSelection(Point &topLeft, Point &bottomRight)
void CalcSizeShapes(List<GShape *> *shapes, Point &topLeft, Point &bottomRight)
void AddShapeRaw(GShape *shape)
virtual void AddShape(GShape *shape)
void AddShapes(List<GShape *> *shapes)
void RemoveShapeRaw(GShape *shape)
virtual void RemoveShape(GShape *shape)
void RemoveShapes(List<GShape *> *shapes)
GShape* GetShape(Subject *subject)
void GetShapes(Subject *subject, List<GShape *> *shapes)
void MultipleLinesPosUpdate(Line *line)
void MultipleLines(Line *line)
void CompleteShapes(List<GShape *> *s, GShape *n1, GShape *n2)
void CompleteLines(List<GShape *> *shapes)
void CompleteShapes(List<GShape *> *shapes)
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