-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathSVGLine.h
More file actions
executable file
·69 lines (60 loc) · 2.36 KB
/
SVGLine.h
File metadata and controls
executable file
·69 lines (60 loc) · 2.36 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
//------------------------------------------------------------------------------
/// Filename: SVGLine.h
/// Description: Header for Class SVGLine
/// Authors:
/// Ralph Ankele(0931953)
/// Tutor: Manuel Weber
/// Group: 24
/// Created: 08.09.2011
/// Last change: 25.09.2011
//------------------------------------------------------------------------------
#ifndef SVGLINE_H_INCLUDED
#define SVGLINE_H_INCLUDED
#include "SVGObject.h"
class SVGLine: public SVGObject
{
private:
//----------------------------------------------------------------------------
/// Copy Constructor
/// Makes a copy of another SVGLine Object.
/// @param source Original to copy.
SVGLine(const SVGLine& source);
//----------------------------------------------------------------------------
/// Assignment Operator
/// Used to assign one SVGLine to another
/// @param source Original with values to copy.
SVGLine &operator=(const SVGLine& source);
public:
//----------------------------------------------------------------------------
/// Constructor
/// @param ui Connection to UserInterface
/// @param db Connection to Database
/// @param svgh Connection to SVHHandler
/// @param id id of the object
/// @param group_id group id of the object
/// @param coordinates vector with coordinates of the object
SVGLine(UserInterface *ui,
Database *db,
SVGHandler *svgh,
signed int id,
signed int group_id,
std::vector<Coordinates> coordinates);
//----------------------------------------------------------------------------
/// Destructor
virtual ~SVGLine() throw();
//----------------------------------------------------------------------------
/// resize Method: resizes the SVG Object
/// @return returns true if resize fits
virtual bool resize();
//----------------------------------------------------------------------------
/// move Method: moves the SVG Object
/// @param x is the x direction in which is moved
/// @param y is the y direction in which is moved
/// @return returns true if move is correct
virtual bool move(signed int x, signed int y);
//----------------------------------------------------------------------------
/// getSVGTag returns the svg tag of the object
/// @return returns the svg tag as string
virtual std::string getSVGTag();
};
#endif // SVGLINE_H_INCLUDED