src/linetypes/subfilereference.cpp

changeset 18
918b6c0f8b5b
parent 14
20d2ed3af73d
child 21
0133e565e072
equal deleted inserted replaced
17:a5111f4e6412 18:918b6c0f8b5b
1 #include "subfilereference.h" 1 #include "subfilereference.h"
2 2
3 linetypes::SubfileReference::SubfileReference( 3 linetypes::SubfileReference::SubfileReference(
4 const Vertex& position, 4 const Point3D& position,
5 const Matrix3x3& transformation, 5 const Matrix3x3& transformation,
6 const QString& referenceName, 6 const QString& referenceName,
7 const Color color) : 7 const Color color) :
8 ColoredObject{color}, 8 ColoredObject{color},
9 position{position}, 9 position{position},
33 -> SetPropertyResult 33 -> SetPropertyResult
34 { 34 {
35 switch (property) 35 switch (property)
36 { 36 {
37 case Property::Position: 37 case Property::Position:
38 this->position = value.value<Vertex>(); 38 this->position = value.value<Point3D>();
39 return SetPropertyResult::Success; 39 return SetPropertyResult::Success;
40 case Property::Transformation: 40 case Property::Transformation:
41 this->transformation = value.value<Matrix3x3>(); 41 this->transformation = value.value<Matrix3x3>();
42 return SetPropertyResult::Success; 42 return SetPropertyResult::Success;
43 case Property::ReferenceName: 43 case Property::ReferenceName:

mercurial