40 points[2] = value.value<Vertex>(); |
40 points[2] = value.value<Vertex>(); |
41 return SetPropertyResult::Success; |
41 return SetPropertyResult::Success; |
42 default: |
42 default: |
43 return ColoredBaseObject::setProperty(id, value); |
43 return ColoredBaseObject::setProperty(id, value); |
44 } |
44 } |
|
45 } |
|
46 |
|
47 QString modelobjects::Triangle::textRepresentation() const |
|
48 { |
|
49 return format("%1 %2 %3", |
|
50 vertexToStringParens(points[0]), |
|
51 vertexToStringParens(points[1]), |
|
52 vertexToStringParens(points[2])); |
45 } |
53 } |
46 |
54 |
47 modelobjects::Quadrilateral::Quadrilateral( |
55 modelobjects::Quadrilateral::Quadrilateral( |
48 const Vertex& point_1, |
56 const Vertex& point_1, |
49 const Vertex& point_2, |
57 const Vertex& point_2, |
93 return SetPropertyResult::Success; |
101 return SetPropertyResult::Success; |
94 default: |
102 default: |
95 return ColoredBaseObject::setProperty(id, value); |
103 return ColoredBaseObject::setProperty(id, value); |
96 } |
104 } |
97 } |
105 } |
|
106 |
|
107 QString modelobjects::Quadrilateral::textRepresentation() const |
|
108 { |
|
109 return format("%1 %2 %3 %4", |
|
110 vertexToStringParens(points[0]), |
|
111 vertexToStringParens(points[1]), |
|
112 vertexToStringParens(points[2]), |
|
113 vertexToStringParens(points[3])); |
|
114 } |