src/linetypes/quadrilateral.cpp

changeset 1269
ec691d9472b3
parent 1263
0256edecda54
child 1326
69a90bd2dba2
equal deleted inserted replaced
1268:7cbdaefda950 1269:ec691d9472b3
16 * along with this program. If not, see <http://www.gnu.org/licenses/>. 16 * along with this program. If not, see <http://www.gnu.org/licenses/>.
17 */ 17 */
18 18
19 #include "quadrilateral.h" 19 #include "quadrilateral.h"
20 20
21 LDQuadrilateral::LDQuadrilateral(Model *model) : 21 LDQuadrilateral::LDQuadrilateral(const Vertex& v1, const Vertex& v2, const Vertex& v3, const Vertex& v4)
22 LDObject {model} {}
23
24 LDQuadrilateral::LDQuadrilateral(const Vertex& v1, const Vertex& v2, const Vertex& v3, const Vertex& v4, Model* model) :
25 LDObject {model}
26 { 22 {
27 setVertex(0, v1); 23 setVertex(0, v1);
28 setVertex(1, v2); 24 setVertex(1, v2);
29 setVertex(2, v3); 25 setVertex(2, v3);
30 setVertex(3, v4); 26 setVertex(3, v4);
55 return 2; 51 return 2;
56 } 52 }
57 53
58 LDObjectType LDQuadrilateral::type() const 54 LDObjectType LDQuadrilateral::type() const
59 { 55 {
60 return SubclassType; 56 return LDObjectType::Quadrilateral;
61 } 57 }

mercurial