line shape class.
![]() | Line (ShapeView *v, Grafport *g, GShape *n1, GShape *n2, List<Point *> *line, bool Curved) |
![]() | Line (ShapeView *v, Grafport *g, GShape *n1, GShape *n2, bool Curved) |
![]() | Line (const Line &s) |
![]() | Clone () |
![]() | ~Line () |
![]() | IsCurved () const |
![]() | UpdateCurve (bool b) |
![]() | UpdatePosition (const Point *p, bool snap=True) empty (line has no independent position). |
![]() | SetPosition (const Point *p, bool snap=True) empty (line has no independent position). |
![]() | DrawOutLine (const Point *) empty, because line has no outline. |
![]() | ContainsPt (int x, int y) returns if (x,y) is on one of the segments of line. |
![]() | HitHandles (int x, int y) returns handle-nr if (x,y) hits a handle, otherwise -1. |
![]() | IsLine () const yep. |
![]() | GetCount () const count and order are used to determine whether |
![]() | GetOrder () const more than one line connect the same pair of shapes. |
![]() | SetOrder (unsigned int i) |
![]() | SetCount (unsigned int i) |
![]() | GetFromShape () const fromShape and toShape are the connected shapes. |
![]() | GetToShape () const |
![]() | SetFromShape (GShape *n) |
![]() | SetToShape (GShape *n) |
![]() | NrPoints () const |
![]() | GetLine () const 'line' is a list of points. |
![]() | GetSegments (Point pt, Point *pt1, Point *pt2) get left and rigth line segments of point pt (if they exist). |
![]() | GetSegment (int n, Point *pt1, Point *pt2) get line segment n (if it exists). |
![]() | InTextArea (int x, int y) returns if (x,y) is in text area (used for edit cursor). |
![]() | SetEnd1 (LineEnd::Type t) |
![]() | SetEnd2 (LineEnd::Type t) |
![]() | UpdateEnd1 (LineEnd::Type t) |
![]() | UpdateEnd2 (LineEnd::Type t) |
![]() | GetEnd1 () |
![]() | GetEnd2 () |
![]() | GetLeftMost () const |
![]() | GetTopMost () const |
![]() | GetRightMost () const |
![]() | GetBottomMost () const |
![]() | SetToTop () set last point of line to top of toShape. |
![]() | SetFromTop () set first point of line to top of fromShape. |
![]() | SetToBottom () set last point of line to bottom of toShape. |
![]() | SetFromBottom () set first point of line to bottom of fromShape. |
![]() | UpdatePosition () recalculates position and redraws the line. |
![]() | CalcPosition () Define a position for the line (the center of the name of the line). |
![]() | CalcEndPoints () Calculate begin and end-points (intersections with the shapes). |
![]() | CalcDirection () Calculate direction arrow |
![]() | CalcEndPoint (const Point *pt, unsigned which) ReCalculate when first or last point of line is moved to pt. |
![]() | SetPoint (const Point *pt, unsigned int n) Update point of given position n. |
![]() | AddPoint (const Point *pt, unsigned int n) Add a point after given position n. |
![]() | RemovePoint (unsigned int n) Remove the point at given position n. |
![]() | GetClassType () const |
![]() | WriteMembers (OutputFile *f) See shape. Reads/writes also the points. |
![]() | ReadMembers (InputFile *f, double format) See shape. Reads/writes also the points. |
![]() | SetAssocSubject (AssocList *) Set subject (edge) reference, |
![]() | SetReferences (AssocList *) Set also fromShape and toShape references. |
![]() | CheckReferences () Check also fromShape and toShape shape references. |
![]() | SetTextShape () |
![]() | GetLine (int x, int y) return if segment has (x,y). if so, lineNumber set to segment nr. |
![]() | GetLineNumber () |
![]() | SetLineNumber (unsigned int n) |
![]() | ChooseTextShape (int x, int y) choose text shape near (x,y). |
![]() | MoveRaw (const Point *delta) move all points and text shapes with delta. |
![]() | GiveOrthoSnp (Point to) const |
![]() | GiveSnp (Point to) const |
![]() | GiveSnp (Point p, int order, int count, int &code) |
![]() | UpdateNameDirection (ReadDirection::Type nd) |
![]() | GetNameDirection () const |
![]() | DrawShape () draws a line. |
![]() | CalcPositionName () recalculate the position of the name text shape. |
![]() | ContainsPtLine (int x, int y, const Point *from, const Point *to, int &cx, int &cy) const returns (x,y) is near line from-to, cx and cy are points on line. |
![]() | BelowLine (int x, int y, Point *from, Point *to) return if (x,y) is down to line from->to. |
![]() | AboveLine (int x, int y, Point *from, Point *to) return if (x,y) is above line from->to. |
![]() | SetNameDirection (ReadDirection::Type nd) |
![]() | UndrawDirection () |
![]() | DrawDirection () |
![]() | NotifyTextMove (TextShape *t) |
line shape class.
Line(ShapeView *v, Grafport *g, GShape *n1, GShape *n2, bool Curved)
Line(const Line &s)
Shape* Clone()
virtual ~Line()
bool IsCurved() const
void UpdateCurve(bool b)
void UpdatePosition(const Point *p, bool snap=True)
void SetPosition(const Point *p, bool snap=True)
void DrawOutLine(const Point *)
bool ContainsPt(int x, int y)
int HitHandles(int x, int y)
bool IsLine() const
unsigned int GetCount() const
unsigned int GetOrder() const
void SetOrder(unsigned int i)
void SetCount(unsigned int i)
GShape* GetFromShape() const
GShape* GetToShape() const
void SetFromShape(GShape *n)
void SetToShape(GShape *n)
unsigned int NrPoints() const
List <Point *> * GetLine() const
bool GetSegments(Point pt, Point *pt1, Point *pt2)
bool GetSegment(int n, Point *pt1, Point *pt2)
virtual bool InTextArea(int x, int y)
void SetEnd1(LineEnd::Type t)
void SetEnd2(LineEnd::Type t)
void UpdateEnd1(LineEnd::Type t)
void UpdateEnd2(LineEnd::Type t)
LineEnd::Type GetEnd1()
LineEnd::Type GetEnd2()
int GetLeftMost() const
int GetTopMost() const
int GetRightMost() const
int GetBottomMost() const
void SetToTop()
void SetFromTop()
void SetToBottom()
void SetFromBottom()
void UpdatePosition()
virtual void CalcPosition()
virtual void CalcEndPoints()
void CalcDirection()
bool CalcEndPoint(const Point *pt, unsigned which)
void SetPoint(const Point *pt, unsigned int n)
void AddPoint(const Point *pt, unsigned int n)
void RemovePoint(unsigned int n)
int GetClassType() const
void WriteMembers(OutputFile *f)
bool ReadMembers(InputFile *f, double format)
bool SetAssocSubject(AssocList *)
bool SetReferences(AssocList *)
bool CheckReferences()
void SetTextShape()
bool GetLine(int x, int y)
unsigned int GetLineNumber()
void SetLineNumber(unsigned int n)
TextShape* ChooseTextShape(int x, int y)
virtual void MoveRaw(const Point *delta)
Point GiveOrthoSnp(Point to) const
Point GiveSnp(Point to) const
Point GiveSnp(Point p, int order, int count, int &code)
void UpdateNameDirection(ReadDirection::Type nd)
ReadDirection::Type GetNameDirection() const
void DrawShape()
void CalcPositionName()
static const int LINE_DIST
static const int CL_DISTX
static const int CL_DISTY
bool ContainsPtLine(int x, int y, const Point *from, const Point *to, int &cx, int &cy) const
bool BelowLine(int x, int y, Point *from, Point *to)
bool AboveLine(int x, int y, Point *from, Point *to)
void SetNameDirection(ReadDirection::Type nd)
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