37 using int64 = qint64; |
37 using int64 = qint64; |
38 using uint8 = quint8; |
38 using uint8 = quint8; |
39 using uint16 = quint16; |
39 using uint16 = quint16; |
40 using uint32 = quint32; |
40 using uint32 = quint32; |
41 using uint64 = quint64; |
41 using uint64 = quint64; |
42 using String = QString; |
|
43 using LDObjectPtr = QSharedPointer<LDObject>; |
42 using LDObjectPtr = QSharedPointer<LDObject>; |
44 using LDObjectList = QList<LDObjectPtr>; |
43 using LDObjectList = QList<LDObjectPtr>; |
45 using LDObjectWeakPtr = QWeakPointer<LDObject>; |
44 using LDObjectWeakPtr = QWeakPointer<LDObject>; |
46 using LDObjectWeakList = QList<LDObjectWeakPtr>; |
45 using LDObjectWeakList = QList<LDObjectWeakPtr>; |
47 using LDDocumentPtr = QSharedPointer<LDDocument>; |
46 using LDDocumentPtr = QSharedPointer<LDDocument>; |
70 Vertex (const QVector3D& a); |
69 Vertex (const QVector3D& a); |
71 Vertex (qreal xpos, qreal ypos, qreal zpos); |
70 Vertex (qreal xpos, qreal ypos, qreal zpos); |
72 |
71 |
73 void apply (ApplyFunction func); |
72 void apply (ApplyFunction func); |
74 void apply (ApplyConstFunction func) const; |
73 void apply (ApplyConstFunction func) const; |
75 String toString (bool mangled = false) const; |
74 QString toString (bool mangled = false) const; |
76 void transform (const Matrix& matr, const Vertex& pos); |
75 void transform (const Matrix& matr, const Vertex& pos); |
77 void setCoordinate (Axis ax, qreal value); |
76 void setCoordinate (Axis ax, qreal value); |
78 |
77 |
79 bool operator< (const Vertex& other) const; |
78 bool operator< (const Vertex& other) const; |
80 double operator[] (Axis ax) const; |
79 double operator[] (Axis ax) const; |
115 |
114 |
116 //! Prints the matrix to stdout. |
115 //! Prints the matrix to stdout. |
117 void dump() const; |
116 void dump() const; |
118 |
117 |
119 //! \returns a string representation of the matrix. |
118 //! \returns a string representation of the matrix. |
120 String toString() const; |
119 QString toString() const; |
121 |
120 |
122 //! Zeroes the matrix out. |
121 //! Zeroes the matrix out. |
123 void zero(); |
122 void zero(); |
124 |
123 |
125 //! Assigns the matrix values to the values of \c other. |
124 //! Assigns the matrix values to the values of \c other. |