src/linetypes/modelobject.h

Thu, 20 Jun 2019 08:54:35 +0300

author
Teemu Piippo <teemu@hecknology.net>
date
Thu, 20 Jun 2019 08:54:35 +0300
changeset 1440
265b2e95a8e8
parent 1423
6608db56b047
permissions
-rw-r--r--

uuid things

655
b376645315ab - renamed files to camelCase
Santeri Piippo <crimsondusk64@gmail.com>
parents:
diff changeset
1 /*
b376645315ab - renamed files to camelCase
Santeri Piippo <crimsondusk64@gmail.com>
parents:
diff changeset
2 * LDForge: LDraw parts authoring CAD
1326
69a90bd2dba2 Happy new year 2018
Teemu Piippo <teemu@hecknology.net>
parents: 1316
diff changeset
3 * Copyright (C) 2013 - 2018 Teemu Piippo
655
b376645315ab - renamed files to camelCase
Santeri Piippo <crimsondusk64@gmail.com>
parents:
diff changeset
4 *
b376645315ab - renamed files to camelCase
Santeri Piippo <crimsondusk64@gmail.com>
parents:
diff changeset
5 * This program is free software: you can redistribute it and/or modify
b376645315ab - renamed files to camelCase
Santeri Piippo <crimsondusk64@gmail.com>
parents:
diff changeset
6 * it under the terms of the GNU General Public License as published by
b376645315ab - renamed files to camelCase
Santeri Piippo <crimsondusk64@gmail.com>
parents:
diff changeset
7 * the Free Software Foundation, either version 3 of the License, or
b376645315ab - renamed files to camelCase
Santeri Piippo <crimsondusk64@gmail.com>
parents:
diff changeset
8 * (at your option) any later version.
b376645315ab - renamed files to camelCase
Santeri Piippo <crimsondusk64@gmail.com>
parents:
diff changeset
9 *
b376645315ab - renamed files to camelCase
Santeri Piippo <crimsondusk64@gmail.com>
parents:
diff changeset
10 * This program is distributed in the hope that it will be useful,
b376645315ab - renamed files to camelCase
Santeri Piippo <crimsondusk64@gmail.com>
parents:
diff changeset
11 * but WITHOUT ANY WARRANTY; without even the implied warranty of
b376645315ab - renamed files to camelCase
Santeri Piippo <crimsondusk64@gmail.com>
parents:
diff changeset
12 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
b376645315ab - renamed files to camelCase
Santeri Piippo <crimsondusk64@gmail.com>
parents:
diff changeset
13 * GNU General Public License for more details.
b376645315ab - renamed files to camelCase
Santeri Piippo <crimsondusk64@gmail.com>
parents:
diff changeset
14 *
b376645315ab - renamed files to camelCase
Santeri Piippo <crimsondusk64@gmail.com>
parents:
diff changeset
15 * You should have received a copy of the GNU General Public License
b376645315ab - renamed files to camelCase
Santeri Piippo <crimsondusk64@gmail.com>
parents:
diff changeset
16 * along with this program. If not, see <http://www.gnu.org/licenses/>.
b376645315ab - renamed files to camelCase
Santeri Piippo <crimsondusk64@gmail.com>
parents:
diff changeset
17 */
b376645315ab - renamed files to camelCase
Santeri Piippo <crimsondusk64@gmail.com>
parents:
diff changeset
18
b376645315ab - renamed files to camelCase
Santeri Piippo <crimsondusk64@gmail.com>
parents:
diff changeset
19 #pragma once
1147
a26568aa3cce Renamed ldObject.cpp → linetypes/modelobject.cpp
Teemu Piippo <teemu@hecknology.net>
parents: 1141
diff changeset
20 #include "../main.h"
a26568aa3cce Renamed ldObject.cpp → linetypes/modelobject.cpp
Teemu Piippo <teemu@hecknology.net>
parents: 1141
diff changeset
21 #include "../colors.h"
1269
ec691d9472b3 Added LDObject serialization and refactored the internal resource managing to use it. No more tearing objects from one model into another, and this provides a stable way to keep an object's state in memory such as the edit history.
Santeri Piippo
parents: 1266
diff changeset
22 #include "../serializer.h"
655
b376645315ab - renamed files to camelCase
Santeri Piippo <crimsondusk64@gmail.com>
parents:
diff changeset
23
1073
a0a0d581309b Major overhaul of object→document relationship: added the Model class which models the object buffer. Each object is to be included in a model (an invariant that currently does not hold). A document is a subclass of a model. The LDObject is also now agnostic about selection, and the selection is now a set. A lot of things are probably broken now but it's a major step forward.
Teemu Piippo <teemu@hecknology.net>
parents: 1072
diff changeset
24 class Model;
655
b376645315ab - renamed files to camelCase
Santeri Piippo <crimsondusk64@gmail.com>
parents:
diff changeset
25 class LDDocument;
1263
0256edecda54 LDSubfileReference now contains the name of the subfile and not a pointer anymore. Some methods now require a DocumentManager* for context on resolving the name.
Santeri Piippo
parents: 1262
diff changeset
26 class DocumentManager;
1316
31f4293cec30 reworked includes
Teemu Piippo <teemu@hecknology.net>
parents: 1313
diff changeset
27 struct LDPolygon;
776
624131d0163d - selecting an invertnext'd object now also selects the invertnext
Santeri Piippo <crimsondusk64@gmail.com>
parents: 771
diff changeset
28
1138
0dfdef50b0ee Updated comments
Teemu Piippo <teemu@hecknology.net>
parents: 1137
diff changeset
29 /*
0dfdef50b0ee Updated comments
Teemu Piippo <teemu@hecknology.net>
parents: 1137
diff changeset
30 * Object type codes.
0dfdef50b0ee Updated comments
Teemu Piippo <teemu@hecknology.net>
parents: 1137
diff changeset
31 */
1148
96cb15a7611f Moved LDTriangle into its own source pair.
Teemu Piippo <teemu@hecknology.net>
parents: 1147
diff changeset
32 enum class LDObjectType
786
71d786ce0dcc - LDObject::Type moved back to global namespace
Santeri Piippo <crimsondusk64@gmail.com>
parents: 785
diff changeset
33 {
1123
15e46ea3151f Reworked iterable enums: they all are enum classes now and the end value is marked with "_End"
Teemu Piippo <teemu@hecknology.net>
parents: 1117
diff changeset
34 SubfileReference, // Object represents a sub-file reference
1139
51303023d651 LDObject subclass renaming:
Teemu Piippo <teemu@hecknology.net>
parents: 1138
diff changeset
35 Quadrilateral, // Object represents a quadrilateral
1123
15e46ea3151f Reworked iterable enums: they all are enum classes now and the end value is marked with "_End"
Teemu Piippo <teemu@hecknology.net>
parents: 1117
diff changeset
36 Triangle, // Object represents a triangle
1139
51303023d651 LDObject subclass renaming:
Teemu Piippo <teemu@hecknology.net>
parents: 1138
diff changeset
37 EdgeLine, // Object represents a line
51303023d651 LDObject subclass renaming:
Teemu Piippo <teemu@hecknology.net>
parents: 1138
diff changeset
38 ConditionalEdge, // Object represents a conditional line
1123
15e46ea3151f Reworked iterable enums: they all are enum classes now and the end value is marked with "_End"
Teemu Piippo <teemu@hecknology.net>
parents: 1117
diff changeset
39 Comment, // Object represents a comment
15e46ea3151f Reworked iterable enums: they all are enum classes now and the end value is marked with "_End"
Teemu Piippo <teemu@hecknology.net>
parents: 1117
diff changeset
40 Error, // Object is the result of failed parsing
15e46ea3151f Reworked iterable enums: they all are enum classes now and the end value is marked with "_End"
Teemu Piippo <teemu@hecknology.net>
parents: 1117
diff changeset
41 Empty, // Object represents an empty line
15e46ea3151f Reworked iterable enums: they all are enum classes now and the end value is marked with "_End"
Teemu Piippo <teemu@hecknology.net>
parents: 1117
diff changeset
42 BezierCurve, // Object represents a Bézier curve
1398
1c70d3447d20 changed LDCylinder to LDCircularPrimitive and moved circles to it
Teemu Piippo <teemu@hecknology.net>
parents: 1391
diff changeset
43 CircularPrimitive,
1123
15e46ea3151f Reworked iterable enums: they all are enum classes now and the end value is marked with "_End"
Teemu Piippo <teemu@hecknology.net>
parents: 1117
diff changeset
44 _End
786
71d786ce0dcc - LDObject::Type moved back to global namespace
Santeri Piippo <crimsondusk64@gmail.com>
parents: 785
diff changeset
45 };
71d786ce0dcc - LDObject::Type moved back to global namespace
Santeri Piippo <crimsondusk64@gmail.com>
parents: 785
diff changeset
46
1269
ec691d9472b3 Added LDObject serialization and refactored the internal resource managing to use it. No more tearing objects from one model into another, and this provides a stable way to keep an object's state in memory such as the edit history.
Santeri Piippo
parents: 1266
diff changeset
47 Q_DECLARE_METATYPE(LDObjectType)
1123
15e46ea3151f Reworked iterable enums: they all are enum classes now and the end value is marked with "_End"
Teemu Piippo <teemu@hecknology.net>
parents: 1117
diff changeset
48 MAKE_ITERABLE_ENUM(LDObjectType)
805
d88c0354de97 - refactor. got rid of the LDSharedVertex nonsense, fixed up split lines action
Santeri Piippo <crimsondusk64@gmail.com>
parents: 795
diff changeset
49
1148
96cb15a7611f Moved LDTriangle into its own source pair.
Teemu Piippo <teemu@hecknology.net>
parents: 1147
diff changeset
50 inline int qHash(LDObjectType type)
96cb15a7611f Moved LDTriangle into its own source pair.
Teemu Piippo <teemu@hecknology.net>
parents: 1147
diff changeset
51 {
96cb15a7611f Moved LDTriangle into its own source pair.
Teemu Piippo <teemu@hecknology.net>
parents: 1147
diff changeset
52 return qHash(static_cast<int>(type));
96cb15a7611f Moved LDTriangle into its own source pair.
Teemu Piippo <teemu@hecknology.net>
parents: 1147
diff changeset
53 }
96cb15a7611f Moved LDTriangle into its own source pair.
Teemu Piippo <teemu@hecknology.net>
parents: 1147
diff changeset
54
1138
0dfdef50b0ee Updated comments
Teemu Piippo <teemu@hecknology.net>
parents: 1137
diff changeset
55 /*
0dfdef50b0ee Updated comments
Teemu Piippo <teemu@hecknology.net>
parents: 1137
diff changeset
56 * Represents one line of code in an LDraw model file.
0dfdef50b0ee Updated comments
Teemu Piippo <teemu@hecknology.net>
parents: 1137
diff changeset
57 */
1073
a0a0d581309b Major overhaul of object→document relationship: added the Model class which models the object buffer. Each object is to be included in a model (an invariant that currently does not hold). A document is a subclass of a model. The LDObject is also now agnostic about selection, and the selection is now a set. A lot of things are probably broken now but it's a major step forward.
Teemu Piippo <teemu@hecknology.net>
parents: 1072
diff changeset
58 class LDObject : public QObject
655
b376645315ab - renamed files to camelCase
Santeri Piippo <crimsondusk64@gmail.com>
parents:
diff changeset
59 {
1138
0dfdef50b0ee Updated comments
Teemu Piippo <teemu@hecknology.net>
parents: 1137
diff changeset
60 Q_OBJECT
1073
a0a0d581309b Major overhaul of object→document relationship: added the Model class which models the object buffer. Each object is to be included in a model (an invariant that currently does not hold). A document is a subclass of a model. The LDObject is also now agnostic about selection, and the selection is now a set. A lot of things are probably broken now but it's a major step forward.
Teemu Piippo <teemu@hecknology.net>
parents: 1072
diff changeset
61
786
71d786ce0dcc - LDObject::Type moved back to global namespace
Santeri Piippo <crimsondusk64@gmail.com>
parents: 785
diff changeset
62 public:
1269
ec691d9472b3 Added LDObject serialization and refactored the internal resource managing to use it. No more tearing objects from one model into another, and this provides a stable way to keep an object's state in memory such as the edit history.
Santeri Piippo
parents: 1266
diff changeset
63 LDObject();
ec691d9472b3 Added LDObject serialization and refactored the internal resource managing to use it. No more tearing objects from one model into another, and this provides a stable way to keep an object's state in memory such as the edit history.
Santeri Piippo
parents: 1266
diff changeset
64
988
ac4a2ae54f76 Refactor LDObject API
Teemu Piippo <crimsondusk64@gmail.com>
parents: 968
diff changeset
65 virtual QString asText() const = 0; // This object as LDraw code
1138
0dfdef50b0ee Updated comments
Teemu Piippo <teemu@hecknology.net>
parents: 1137
diff changeset
66 LDColor color() const;
1117
efcb47c64a72 Moved LDComment and LDEmpty into their own source file pairs.
Teemu Piippo <teemu@hecknology.net>
parents: 1100
diff changeset
67 virtual LDColor defaultColor() const; // What color does the object default to?
1400
ae83213bdd63 refactored LDPolygon
Teemu Piippo <teemu@hecknology.net>
parents: 1398
diff changeset
68 LDPolygon getPolygon();
1263
0256edecda54 LDSubfileReference now contains the name of the subfile and not a pointer anymore. Some methods now require a DocumentManager* for context on resolving the name.
Santeri Piippo
parents: 1262
diff changeset
69 virtual void getVertices (DocumentManager *context, QSet<Vertex>& verts) const;
1117
efcb47c64a72 Moved LDComment and LDEmpty into their own source file pairs.
Teemu Piippo <teemu@hecknology.net>
parents: 1100
diff changeset
70 virtual bool hasMatrix() const; // Does this object have a matrix and position? (see LDMatrixObject)
efcb47c64a72 Moved LDComment and LDEmpty into their own source file pairs.
Teemu Piippo <teemu@hecknology.net>
parents: 1100
diff changeset
71 virtual bool isColored() const;
988
ac4a2ae54f76 Refactor LDObject API
Teemu Piippo <crimsondusk64@gmail.com>
parents: 968
diff changeset
72 bool isHidden() const;
1391
5fa4bf1fc781 added work done on cylinders
Teemu Piippo <teemu@hecknology.net>
parents: 1339
diff changeset
73 virtual bool isRasterizable() const { return false; } // Can this object be rasterized?
1117
efcb47c64a72 Moved LDComment and LDEmpty into their own source file pairs.
Teemu Piippo <teemu@hecknology.net>
parents: 1100
diff changeset
74 virtual bool isScemantic() const; // Does this object have meaning in the part model?
1403
7a2d84112983 replaced the Matrix class with QMatrix4x4
Teemu Piippo <teemu@hecknology.net>
parents: 1402
diff changeset
75 void move (const QVector3D& vector);
1117
efcb47c64a72 Moved LDComment and LDEmpty into their own source file pairs.
Teemu Piippo <teemu@hecknology.net>
parents: 1100
diff changeset
76 virtual int numVertices() const;
1251
e75cc5bff076 Converted magic wand mode and other selection stuff to mvc
Santeri Piippo
parents: 1244
diff changeset
77 virtual int numPolygonVertices() const;
1084
63daaf652454 Split object list representation into virtual methods
Teemu Piippo <teemu@hecknology.net>
parents: 1082
diff changeset
78 virtual QString objectListText() const;
988
ac4a2ae54f76 Refactor LDObject API
Teemu Piippo <crimsondusk64@gmail.com>
parents: 968
diff changeset
79 QColor randomColor() const;
1391
5fa4bf1fc781 added work done on cylinders
Teemu Piippo <teemu@hecknology.net>
parents: 1339
diff changeset
80 virtual void rasterize(DocumentManager*, Winding, Model&, bool, bool) {}
5fa4bf1fc781 added work done on cylinders
Teemu Piippo <teemu@hecknology.net>
parents: 1339
diff changeset
81 virtual QVector<LDPolygon> rasterizePolygons(DocumentManager*, Winding);
988
ac4a2ae54f76 Refactor LDObject API
Teemu Piippo <crimsondusk64@gmail.com>
parents: 968
diff changeset
82 void setColor (LDColor color);
ac4a2ae54f76 Refactor LDObject API
Teemu Piippo <crimsondusk64@gmail.com>
parents: 968
diff changeset
83 void setHidden (bool value);
ac4a2ae54f76 Refactor LDObject API
Teemu Piippo <crimsondusk64@gmail.com>
parents: 968
diff changeset
84 void setVertex (int i, const Vertex& vert);
1236
861bf8ebb8ec BFC INVERTNEXT objects are no longer individual objects
Santeri Piippo
parents: 1149
diff changeset
85 bool isInverted() const;
861bf8ebb8ec BFC INVERTNEXT objects are no longer individual objects
Santeri Piippo
parents: 1149
diff changeset
86 void setInverted(bool value);
1263
0256edecda54 LDSubfileReference now contains the name of the subfile and not a pointer anymore. Some methods now require a DocumentManager* for context on resolving the name.
Santeri Piippo
parents: 1262
diff changeset
87 virtual int triangleCount(DocumentManager* context) const;
988
ac4a2ae54f76 Refactor LDObject API
Teemu Piippo <crimsondusk64@gmail.com>
parents: 968
diff changeset
88 virtual LDObjectType type() const = 0;
1402
8bbf2af8c3f5 some rework in description
Teemu Piippo <teemu@hecknology.net>
parents: 1400
diff changeset
89 virtual QString iconName() const = 0;
988
ac4a2ae54f76 Refactor LDObject API
Teemu Piippo <crimsondusk64@gmail.com>
parents: 968
diff changeset
90 const Vertex& vertex (int i) const;
1269
ec691d9472b3 Added LDObject serialization and refactored the internal resource managing to use it. No more tearing objects from one model into another, and this provides a stable way to keep an object's state in memory such as the edit history.
Santeri Piippo
parents: 1266
diff changeset
91 virtual void serialize(class Serializer& serializer);
1406
37fffb682d2f Circular primitive editor complete
Teemu Piippo <teemu@hecknology.net>
parents: 1403
diff changeset
92 void restore(LDObjectState& archive);
655
b376645315ab - renamed files to camelCase
Santeri Piippo <crimsondusk64@gmail.com>
parents:
diff changeset
93
1269
ec691d9472b3 Added LDObject serialization and refactored the internal resource managing to use it. No more tearing objects from one model into another, and this provides a stable way to keep an object's state in memory such as the edit history.
Santeri Piippo
parents: 1266
diff changeset
94 static LDObject* newFromType(LDObjectType type);
655
b376645315ab - renamed files to camelCase
Santeri Piippo <crimsondusk64@gmail.com>
parents:
diff changeset
95
1440
265b2e95a8e8 uuid things
Teemu Piippo <teemu@hecknology.net>
parents: 1423
diff changeset
96 const Uuid id;
265b2e95a8e8 uuid things
Teemu Piippo <teemu@hecknology.net>
parents: 1423
diff changeset
97
1073
a0a0d581309b Major overhaul of object→document relationship: added the Model class which models the object buffer. Each object is to be included in a model (an invariant that currently does not hold). A document is a subclass of a model. The LDObject is also now agnostic about selection, and the selection is now a set. A lot of things are probably broken now but it's a major step forward.
Teemu Piippo <teemu@hecknology.net>
parents: 1072
diff changeset
98 signals:
1279
0f6a4a7cafec renamed signal
Santeri Piippo
parents: 1278
diff changeset
99 void modified(const LDObjectState& before, const LDObjectState& after);
1073
a0a0d581309b Major overhaul of object→document relationship: added the Model class which models the object buffer. Each object is to be included in a model (an invariant that currently does not hold). A document is a subclass of a model. The LDObject is also now agnostic about selection, and the selection is now a set. A lot of things are probably broken now but it's a major step forward.
Teemu Piippo <teemu@hecknology.net>
parents: 1072
diff changeset
100
956
2af18ba2665f Replace LDIterate function with LDObjectIterator class
Teemu Piippo <crimsondusk64@gmail.com>
parents: 946
diff changeset
101 protected:
1391
5fa4bf1fc781 added work done on cylinders
Teemu Piippo <teemu@hecknology.net>
parents: 1339
diff changeset
102 virtual Winding nativeWinding(DocumentManager*) const;
1117
efcb47c64a72 Moved LDComment and LDEmpty into their own source file pairs.
Teemu Piippo <teemu@hecknology.net>
parents: 1100
diff changeset
103 template<typename T>
efcb47c64a72 Moved LDComment and LDEmpty into their own source file pairs.
Teemu Piippo <teemu@hecknology.net>
parents: 1100
diff changeset
104 void changeProperty(T* property, const T& value);
efcb47c64a72 Moved LDComment and LDEmpty into their own source file pairs.
Teemu Piippo <teemu@hecknology.net>
parents: 1100
diff changeset
105
786
71d786ce0dcc - LDObject::Type moved back to global namespace
Santeri Piippo <crimsondusk64@gmail.com>
parents: 785
diff changeset
106 private:
1236
861bf8ebb8ec BFC INVERTNEXT objects are no longer individual objects
Santeri Piippo
parents: 1149
diff changeset
107 bool m_hasInvertNext = false;
988
ac4a2ae54f76 Refactor LDObject API
Teemu Piippo <crimsondusk64@gmail.com>
parents: 968
diff changeset
108 bool m_isHidden;
1299
b692088dc1a6 fixed color handling
Teemu Piippo <teemu@hecknology.net>
parents: 1298
diff changeset
109 LDColor m_color = LDColor::nullColor;
988
ac4a2ae54f76 Refactor LDObject API
Teemu Piippo <crimsondusk64@gmail.com>
parents: 968
diff changeset
110 QColor m_randomColor;
ac4a2ae54f76 Refactor LDObject API
Teemu Piippo <crimsondusk64@gmail.com>
parents: 968
diff changeset
111 Vertex m_coords[4];
655
b376645315ab - renamed files to camelCase
Santeri Piippo <crimsondusk64@gmail.com>
parents:
diff changeset
112 };
b376645315ab - renamed files to camelCase
Santeri Piippo <crimsondusk64@gmail.com>
parents:
diff changeset
113
1244
68e126e8c629 begin model rework
Santeri Piippo
parents: 1236
diff changeset
114 Q_DECLARE_METATYPE(LDObject*)
68e126e8c629 begin model rework
Santeri Piippo
parents: 1236
diff changeset
115
1138
0dfdef50b0ee Updated comments
Teemu Piippo <teemu@hecknology.net>
parents: 1137
diff changeset
116 /*
0dfdef50b0ee Updated comments
Teemu Piippo <teemu@hecknology.net>
parents: 1137
diff changeset
117 * Base class for objects with matrices.
0dfdef50b0ee Updated comments
Teemu Piippo <teemu@hecknology.net>
parents: 1137
diff changeset
118 */
843
9ac9060877cc - moved LDMatrixObject to be an abstract class deriving from LDObject. LDSubfile only inherits from LDMatrixObject.
Teemu Piippo <crimsondusk64@gmail.com>
parents: 835
diff changeset
119 class LDMatrixObject : public LDObject
655
b376645315ab - renamed files to camelCase
Santeri Piippo <crimsondusk64@gmail.com>
parents:
diff changeset
120 {
1269
ec691d9472b3 Added LDObject serialization and refactored the internal resource managing to use it. No more tearing objects from one model into another, and this provides a stable way to keep an object's state in memory such as the edit history.
Santeri Piippo
parents: 1266
diff changeset
121 public:
ec691d9472b3 Added LDObject serialization and refactored the internal resource managing to use it. No more tearing objects from one model into another, and this provides a stable way to keep an object's state in memory such as the edit history.
Santeri Piippo
parents: 1266
diff changeset
122 LDMatrixObject() = default;
1403
7a2d84112983 replaced the Matrix class with QMatrix4x4
Teemu Piippo <teemu@hecknology.net>
parents: 1402
diff changeset
123 LDMatrixObject(const QMatrix4x4& matrix);
655
b376645315ab - renamed files to camelCase
Santeri Piippo <crimsondusk64@gmail.com>
parents:
diff changeset
124
1391
5fa4bf1fc781 added work done on cylinders
Teemu Piippo <teemu@hecknology.net>
parents: 1339
diff changeset
125 bool hasMatrix() const override { return true; }
1403
7a2d84112983 replaced the Matrix class with QMatrix4x4
Teemu Piippo <teemu@hecknology.net>
parents: 1402
diff changeset
126 Vertex position() const;
7a2d84112983 replaced the Matrix class with QMatrix4x4
Teemu Piippo <teemu@hecknology.net>
parents: 1402
diff changeset
127 void setTransformationMatrix(const QMatrix4x4& newMatrix);
7a2d84112983 replaced the Matrix class with QMatrix4x4
Teemu Piippo <teemu@hecknology.net>
parents: 1402
diff changeset
128 const QMatrix4x4& transformationMatrix() const;
7a2d84112983 replaced the Matrix class with QMatrix4x4
Teemu Piippo <teemu@hecknology.net>
parents: 1402
diff changeset
129 void translate(const QVector3D& offset);
1269
ec691d9472b3 Added LDObject serialization and refactored the internal resource managing to use it. No more tearing objects from one model into another, and this provides a stable way to keep an object's state in memory such as the edit history.
Santeri Piippo
parents: 1266
diff changeset
130 void serialize(class Serializer& serializer) override;
1081
47cde4087cc5 Made all LDObject constructors protected. Emplacement is now the only way to create objects.
Teemu Piippo <teemu@hecknology.net>
parents: 1080
diff changeset
131
1391
5fa4bf1fc781 added work done on cylinders
Teemu Piippo <teemu@hecknology.net>
parents: 1339
diff changeset
132 protected:
5fa4bf1fc781 added work done on cylinders
Teemu Piippo <teemu@hecknology.net>
parents: 1339
diff changeset
133 bool shouldInvert(Winding winding, DocumentManager* context);
5fa4bf1fc781 added work done on cylinders
Teemu Piippo <teemu@hecknology.net>
parents: 1339
diff changeset
134
988
ac4a2ae54f76 Refactor LDObject API
Teemu Piippo <crimsondusk64@gmail.com>
parents: 968
diff changeset
135 private:
1403
7a2d84112983 replaced the Matrix class with QMatrix4x4
Teemu Piippo <teemu@hecknology.net>
parents: 1402
diff changeset
136 QMatrix4x4 m_transformationMatrix;
655
b376645315ab - renamed files to camelCase
Santeri Piippo <crimsondusk64@gmail.com>
parents:
diff changeset
137 };
b376645315ab - renamed files to camelCase
Santeri Piippo <crimsondusk64@gmail.com>
parents:
diff changeset
138
1138
0dfdef50b0ee Updated comments
Teemu Piippo <teemu@hecknology.net>
parents: 1137
diff changeset
139 /*
0dfdef50b0ee Updated comments
Teemu Piippo <teemu@hecknology.net>
parents: 1137
diff changeset
140 * Represents a line in the LDraw file that could not be properly parsed.
0dfdef50b0ee Updated comments
Teemu Piippo <teemu@hecknology.net>
parents: 1137
diff changeset
141 */
655
b376645315ab - renamed files to camelCase
Santeri Piippo <crimsondusk64@gmail.com>
parents:
diff changeset
142 class LDError : public LDObject
b376645315ab - renamed files to camelCase
Santeri Piippo <crimsondusk64@gmail.com>
parents:
diff changeset
143 {
1137
2b6488d11305 Inlined away the LDOBJ macros in ldobject.h.
Teemu Piippo <teemu@hecknology.net>
parents: 1135
diff changeset
144 public:
1269
ec691d9472b3 Added LDObject serialization and refactored the internal resource managing to use it. No more tearing objects from one model into another, and this provides a stable way to keep an object's state in memory such as the edit history.
Santeri Piippo
parents: 1266
diff changeset
145 LDError() = default;
ec691d9472b3 Added LDObject serialization and refactored the internal resource managing to use it. No more tearing objects from one model into another, and this provides a stable way to keep an object's state in memory such as the edit history.
Santeri Piippo
parents: 1266
diff changeset
146 LDError(QString contents, QString reason);
655
b376645315ab - renamed files to camelCase
Santeri Piippo <crimsondusk64@gmail.com>
parents:
diff changeset
147
1137
2b6488d11305 Inlined away the LDOBJ macros in ldobject.h.
Teemu Piippo <teemu@hecknology.net>
parents: 1135
diff changeset
148 virtual LDObjectType type() const override
2b6488d11305 Inlined away the LDOBJ macros in ldobject.h.
Teemu Piippo <teemu@hecknology.net>
parents: 1135
diff changeset
149 {
1269
ec691d9472b3 Added LDObject serialization and refactored the internal resource managing to use it. No more tearing objects from one model into another, and this provides a stable way to keep an object's state in memory such as the edit history.
Santeri Piippo
parents: 1266
diff changeset
150 return LDObjectType::Error;
1137
2b6488d11305 Inlined away the LDOBJ macros in ldobject.h.
Teemu Piippo <teemu@hecknology.net>
parents: 1135
diff changeset
151 }
2b6488d11305 Inlined away the LDOBJ macros in ldobject.h.
Teemu Piippo <teemu@hecknology.net>
parents: 1135
diff changeset
152
2b6488d11305 Inlined away the LDOBJ macros in ldobject.h.
Teemu Piippo <teemu@hecknology.net>
parents: 1135
diff changeset
153 virtual QString asText() const override;
988
ac4a2ae54f76 Refactor LDObject API
Teemu Piippo <crimsondusk64@gmail.com>
parents: 968
diff changeset
154 QString reason() const;
ac4a2ae54f76 Refactor LDObject API
Teemu Piippo <crimsondusk64@gmail.com>
parents: 968
diff changeset
155 QString contents() const;
1084
63daaf652454 Split object list representation into virtual methods
Teemu Piippo <teemu@hecknology.net>
parents: 1082
diff changeset
156 QString objectListText() const override;
1137
2b6488d11305 Inlined away the LDOBJ macros in ldobject.h.
Teemu Piippo <teemu@hecknology.net>
parents: 1135
diff changeset
157 bool isColored() const override { return false; }
1402
8bbf2af8c3f5 some rework in description
Teemu Piippo <teemu@hecknology.net>
parents: 1400
diff changeset
158 QString iconName() const override { return "error"; }
1269
ec691d9472b3 Added LDObject serialization and refactored the internal resource managing to use it. No more tearing objects from one model into another, and this provides a stable way to keep an object's state in memory such as the edit history.
Santeri Piippo
parents: 1266
diff changeset
159 void serialize(class Serializer& serializer) override;
1081
47cde4087cc5 Made all LDObject constructors protected. Emplacement is now the only way to create objects.
Teemu Piippo <teemu@hecknology.net>
parents: 1080
diff changeset
160
988
ac4a2ae54f76 Refactor LDObject API
Teemu Piippo <crimsondusk64@gmail.com>
parents: 968
diff changeset
161 private:
ac4a2ae54f76 Refactor LDObject API
Teemu Piippo <crimsondusk64@gmail.com>
parents: 968
diff changeset
162 QString m_contents; // The LDraw code that was being parsed
ac4a2ae54f76 Refactor LDObject API
Teemu Piippo <crimsondusk64@gmail.com>
parents: 968
diff changeset
163 QString m_reason;
655
b376645315ab - renamed files to camelCase
Santeri Piippo <crimsondusk64@gmail.com>
parents:
diff changeset
164 };
b376645315ab - renamed files to camelCase
Santeri Piippo <crimsondusk64@gmail.com>
parents:
diff changeset
165
1138
0dfdef50b0ee Updated comments
Teemu Piippo <teemu@hecknology.net>
parents: 1137
diff changeset
166 /*
0dfdef50b0ee Updated comments
Teemu Piippo <teemu@hecknology.net>
parents: 1137
diff changeset
167 * Represents a single code-1 subfile reference.
0dfdef50b0ee Updated comments
Teemu Piippo <teemu@hecknology.net>
parents: 1137
diff changeset
168 */
1011
4fdd74a04790 Rename LDSubfile to LDSubfileReference
Teemu Piippo <crimsondusk64@gmail.com>
parents: 1006
diff changeset
169 class LDSubfileReference : public LDMatrixObject
655
b376645315ab - renamed files to camelCase
Santeri Piippo <crimsondusk64@gmail.com>
parents:
diff changeset
170 {
1137
2b6488d11305 Inlined away the LDOBJ macros in ldobject.h.
Teemu Piippo <teemu@hecknology.net>
parents: 1135
diff changeset
171 public:
1269
ec691d9472b3 Added LDObject serialization and refactored the internal resource managing to use it. No more tearing objects from one model into another, and this provides a stable way to keep an object's state in memory such as the edit history.
Santeri Piippo
parents: 1266
diff changeset
172 static const LDObjectType SubclassType = LDObjectType::SubfileReference;
ec691d9472b3 Added LDObject serialization and refactored the internal resource managing to use it. No more tearing objects from one model into another, and this provides a stable way to keep an object's state in memory such as the edit history.
Santeri Piippo
parents: 1266
diff changeset
173
ec691d9472b3 Added LDObject serialization and refactored the internal resource managing to use it. No more tearing objects from one model into another, and this provides a stable way to keep an object's state in memory such as the edit history.
Santeri Piippo
parents: 1266
diff changeset
174 LDSubfileReference() = default;
1403
7a2d84112983 replaced the Matrix class with QMatrix4x4
Teemu Piippo <teemu@hecknology.net>
parents: 1402
diff changeset
175 LDSubfileReference(QString referenceName, const QMatrix4x4& matrix = {});
655
b376645315ab - renamed files to camelCase
Santeri Piippo <crimsondusk64@gmail.com>
parents:
diff changeset
176
1137
2b6488d11305 Inlined away the LDOBJ macros in ldobject.h.
Teemu Piippo <teemu@hecknology.net>
parents: 1135
diff changeset
177 virtual LDObjectType type() const override
2b6488d11305 Inlined away the LDOBJ macros in ldobject.h.
Teemu Piippo <teemu@hecknology.net>
parents: 1135
diff changeset
178 {
2b6488d11305 Inlined away the LDOBJ macros in ldobject.h.
Teemu Piippo <teemu@hecknology.net>
parents: 1135
diff changeset
179 return SubclassType;
2b6488d11305 Inlined away the LDOBJ macros in ldobject.h.
Teemu Piippo <teemu@hecknology.net>
parents: 1135
diff changeset
180 }
2b6488d11305 Inlined away the LDOBJ macros in ldobject.h.
Teemu Piippo <teemu@hecknology.net>
parents: 1135
diff changeset
181
2b6488d11305 Inlined away the LDOBJ macros in ldobject.h.
Teemu Piippo <teemu@hecknology.net>
parents: 1135
diff changeset
182 virtual QString asText() const override;
1263
0256edecda54 LDSubfileReference now contains the name of the subfile and not a pointer anymore. Some methods now require a DocumentManager* for context on resolving the name.
Santeri Piippo
parents: 1262
diff changeset
183 LDDocument* fileInfo(DocumentManager *context) const;
1391
5fa4bf1fc781 added work done on cylinders
Teemu Piippo <teemu@hecknology.net>
parents: 1339
diff changeset
184 bool isRasterizable() const override { return true; }
1263
0256edecda54 LDSubfileReference now contains the name of the subfile and not a pointer anymore. Some methods now require a DocumentManager* for context on resolving the name.
Santeri Piippo
parents: 1262
diff changeset
185 virtual void getVertices(DocumentManager *context, QSet<Vertex>& verts) const override;
1391
5fa4bf1fc781 added work done on cylinders
Teemu Piippo <teemu@hecknology.net>
parents: 1339
diff changeset
186 void rasterize(
1305
31627acdd4b5 Bfc red/green view almost completely fixed
Teemu Piippo <teemu@hecknology.net>
parents: 1299
diff changeset
187 DocumentManager* context,
31627acdd4b5 Bfc red/green view almost completely fixed
Teemu Piippo <teemu@hecknology.net>
parents: 1299
diff changeset
188 Winding parentWinding,
31627acdd4b5 Bfc red/green view almost completely fixed
Teemu Piippo <teemu@hecknology.net>
parents: 1299
diff changeset
189 Model& model,
31627acdd4b5 Bfc red/green view almost completely fixed
Teemu Piippo <teemu@hecknology.net>
parents: 1299
diff changeset
190 bool deep,
31627acdd4b5 Bfc red/green view almost completely fixed
Teemu Piippo <teemu@hecknology.net>
parents: 1299
diff changeset
191 bool render
1391
5fa4bf1fc781 added work done on cylinders
Teemu Piippo <teemu@hecknology.net>
parents: 1339
diff changeset
192 ) override;
5fa4bf1fc781 added work done on cylinders
Teemu Piippo <teemu@hecknology.net>
parents: 1339
diff changeset
193 QVector<LDPolygon> rasterizePolygons(DocumentManager* context, Winding parentWinding) override;
1084
63daaf652454 Split object list representation into virtual methods
Teemu Piippo <teemu@hecknology.net>
parents: 1082
diff changeset
194 QString objectListText() const override;
1263
0256edecda54 LDSubfileReference now contains the name of the subfile and not a pointer anymore. Some methods now require a DocumentManager* for context on resolving the name.
Santeri Piippo
parents: 1262
diff changeset
195 QString referenceName() const;
0256edecda54 LDSubfileReference now contains the name of the subfile and not a pointer anymore. Some methods now require a DocumentManager* for context on resolving the name.
Santeri Piippo
parents: 1262
diff changeset
196 int triangleCount(DocumentManager *context) const override;
1402
8bbf2af8c3f5 some rework in description
Teemu Piippo <teemu@hecknology.net>
parents: 1400
diff changeset
197 QString iconName() const override { return "subfilereference"; }
1269
ec691d9472b3 Added LDObject serialization and refactored the internal resource managing to use it. No more tearing objects from one model into another, and this provides a stable way to keep an object's state in memory such as the edit history.
Santeri Piippo
parents: 1266
diff changeset
198 void serialize(class Serializer& serializer) override;
1297
389516787a4c added subfile reference editor
Teemu Piippo <teemu@hecknology.net>
parents: 1279
diff changeset
199 void setReferenceName(const QString& newReferenceName);
1081
47cde4087cc5 Made all LDObject constructors protected. Emplacement is now the only way to create objects.
Teemu Piippo <teemu@hecknology.net>
parents: 1080
diff changeset
200
1391
5fa4bf1fc781 added work done on cylinders
Teemu Piippo <teemu@hecknology.net>
parents: 1339
diff changeset
201 protected:
5fa4bf1fc781 added work done on cylinders
Teemu Piippo <teemu@hecknology.net>
parents: 1339
diff changeset
202 Winding nativeWinding(DocumentManager* context) const override;
5fa4bf1fc781 added work done on cylinders
Teemu Piippo <teemu@hecknology.net>
parents: 1339
diff changeset
203
988
ac4a2ae54f76 Refactor LDObject API
Teemu Piippo <crimsondusk64@gmail.com>
parents: 968
diff changeset
204 private:
1263
0256edecda54 LDSubfileReference now contains the name of the subfile and not a pointer anymore. Some methods now require a DocumentManager* for context on resolving the name.
Santeri Piippo
parents: 1262
diff changeset
205 QString m_referenceName;
655
b376645315ab - renamed files to camelCase
Santeri Piippo <crimsondusk64@gmail.com>
parents:
diff changeset
206 };
b376645315ab - renamed files to camelCase
Santeri Piippo <crimsondusk64@gmail.com>
parents:
diff changeset
207
1138
0dfdef50b0ee Updated comments
Teemu Piippo <teemu@hecknology.net>
parents: 1137
diff changeset
208 /*
0dfdef50b0ee Updated comments
Teemu Piippo <teemu@hecknology.net>
parents: 1137
diff changeset
209 * Models a Bézier curve. It is stored as a special comment in the LDraw code file and can be inlined down into line segments.
0dfdef50b0ee Updated comments
Teemu Piippo <teemu@hecknology.net>
parents: 1137
diff changeset
210 */
1000
c064cc048f14 Begin work on Bézier curve support. They can be drawn but don't render in 3D and they load as comments.
Teemu Piippo <crimsondusk64@gmail.com>
parents: 995
diff changeset
211 class LDBezierCurve : public LDObject
c064cc048f14 Begin work on Bézier curve support. They can be drawn but don't render in 3D and they load as comments.
Teemu Piippo <crimsondusk64@gmail.com>
parents: 995
diff changeset
212 {
1137
2b6488d11305 Inlined away the LDOBJ macros in ldobject.h.
Teemu Piippo <teemu@hecknology.net>
parents: 1135
diff changeset
213 public:
1269
ec691d9472b3 Added LDObject serialization and refactored the internal resource managing to use it. No more tearing objects from one model into another, and this provides a stable way to keep an object's state in memory such as the edit history.
Santeri Piippo
parents: 1266
diff changeset
214 static const LDObjectType SubclassType = LDObjectType::BezierCurve;
ec691d9472b3 Added LDObject serialization and refactored the internal resource managing to use it. No more tearing objects from one model into another, and this provides a stable way to keep an object's state in memory such as the edit history.
Santeri Piippo
parents: 1266
diff changeset
215
ec691d9472b3 Added LDObject serialization and refactored the internal resource managing to use it. No more tearing objects from one model into another, and this provides a stable way to keep an object's state in memory such as the edit history.
Santeri Piippo
parents: 1266
diff changeset
216 LDBezierCurve() = default;
ec691d9472b3 Added LDObject serialization and refactored the internal resource managing to use it. No more tearing objects from one model into another, and this provides a stable way to keep an object's state in memory such as the edit history.
Santeri Piippo
parents: 1266
diff changeset
217 LDBezierCurve(const Vertex& v0, const Vertex& v1, const Vertex& v2, const Vertex& v3);
1000
c064cc048f14 Begin work on Bézier curve support. They can be drawn but don't render in 3D and they load as comments.
Teemu Piippo <crimsondusk64@gmail.com>
parents: 995
diff changeset
218
1137
2b6488d11305 Inlined away the LDOBJ macros in ldobject.h.
Teemu Piippo <teemu@hecknology.net>
parents: 1135
diff changeset
219 virtual LDObjectType type() const override
2b6488d11305 Inlined away the LDOBJ macros in ldobject.h.
Teemu Piippo <teemu@hecknology.net>
parents: 1135
diff changeset
220 {
2b6488d11305 Inlined away the LDOBJ macros in ldobject.h.
Teemu Piippo <teemu@hecknology.net>
parents: 1135
diff changeset
221 return SubclassType;
2b6488d11305 Inlined away the LDOBJ macros in ldobject.h.
Teemu Piippo <teemu@hecknology.net>
parents: 1135
diff changeset
222 }
2b6488d11305 Inlined away the LDOBJ macros in ldobject.h.
Teemu Piippo <teemu@hecknology.net>
parents: 1135
diff changeset
223
2b6488d11305 Inlined away the LDOBJ macros in ldobject.h.
Teemu Piippo <teemu@hecknology.net>
parents: 1135
diff changeset
224 virtual QString asText() const override;
1002
a3ee23db8393 Bézier curves may now be serialized down using the "Demote" function. I need to rename that now.
Teemu Piippo <crimsondusk64@gmail.com>
parents: 1000
diff changeset
225 Vertex pointAt (qreal t) const;
1423
6608db56b047 fixed rendering of bézier curves
Teemu Piippo <teemu@hecknology.net>
parents: 1416
diff changeset
226 bool isRasterizable() const override;
1416
ba63c7286767 fixed compile errors in some cases, bezier curve now stores the segment count in each object (not editable yet)
Teemu Piippo <teemu@hecknology.net>
parents: 1406
diff changeset
227 void rasterize(DocumentManager*context, Winding winding, Model&, bool, bool) override;
ba63c7286767 fixed compile errors in some cases, bezier curve now stores the segment count in each object (not editable yet)
Teemu Piippo <teemu@hecknology.net>
parents: 1406
diff changeset
228 QVector<LDPolygon> rasterizePolygons(DocumentManager*, Winding) override;
1137
2b6488d11305 Inlined away the LDOBJ macros in ldobject.h.
Teemu Piippo <teemu@hecknology.net>
parents: 1135
diff changeset
229 int numVertices() const override { return 4; }
2b6488d11305 Inlined away the LDOBJ macros in ldobject.h.
Teemu Piippo <teemu@hecknology.net>
parents: 1135
diff changeset
230 LDColor defaultColor() const override { return EdgeColor; }
1402
8bbf2af8c3f5 some rework in description
Teemu Piippo <teemu@hecknology.net>
parents: 1400
diff changeset
231 QString iconName() const override { return "beziercurve"; }
1416
ba63c7286767 fixed compile errors in some cases, bezier curve now stores the segment count in each object (not editable yet)
Teemu Piippo <teemu@hecknology.net>
parents: 1406
diff changeset
232 void serialize(class Serializer& serializer) override;
ba63c7286767 fixed compile errors in some cases, bezier curve now stores the segment count in each object (not editable yet)
Teemu Piippo <teemu@hecknology.net>
parents: 1406
diff changeset
233 int segments() const;
ba63c7286767 fixed compile errors in some cases, bezier curve now stores the segment count in each object (not editable yet)
Teemu Piippo <teemu@hecknology.net>
parents: 1406
diff changeset
234 void setSegments(int newSegments);
ba63c7286767 fixed compile errors in some cases, bezier curve now stores the segment count in each object (not editable yet)
Teemu Piippo <teemu@hecknology.net>
parents: 1406
diff changeset
235
ba63c7286767 fixed compile errors in some cases, bezier curve now stores the segment count in each object (not editable yet)
Teemu Piippo <teemu@hecknology.net>
parents: 1406
diff changeset
236 private:
ba63c7286767 fixed compile errors in some cases, bezier curve now stores the segment count in each object (not editable yet)
Teemu Piippo <teemu@hecknology.net>
parents: 1406
diff changeset
237 int m_segments = 8;
1000
c064cc048f14 Begin work on Bézier curve support. They can be drawn but don't render in 3D and they load as comments.
Teemu Piippo <crimsondusk64@gmail.com>
parents: 995
diff changeset
238 };
c064cc048f14 Begin work on Bézier curve support. They can be drawn but don't render in 3D and they load as comments.
Teemu Piippo <crimsondusk64@gmail.com>
parents: 995
diff changeset
239
861
83426c5fa732 - major identifier renaming
Teemu Piippo <crimsondusk64@gmail.com>
parents: 860
diff changeset
240 enum
83426c5fa732 - major identifier renaming
Teemu Piippo <crimsondusk64@gmail.com>
parents: 860
diff changeset
241 {
1339
1f342d5abc85 Added support for 8-primitives
Teemu Piippo <teemu@hecknology.net>
parents: 1326
diff changeset
242 LowResolution = 8,
1f342d5abc85 Added support for 8-primitives
Teemu Piippo <teemu@hecknology.net>
parents: 1326
diff changeset
243 MediumResolution = 16,
861
83426c5fa732 - major identifier renaming
Teemu Piippo <crimsondusk64@gmail.com>
parents: 860
diff changeset
244 HighResolution = 48
83426c5fa732 - major identifier renaming
Teemu Piippo <crimsondusk64@gmail.com>
parents: 860
diff changeset
245 };
1117
efcb47c64a72 Moved LDComment and LDEmpty into their own source file pairs.
Teemu Piippo <teemu@hecknology.net>
parents: 1100
diff changeset
246
efcb47c64a72 Moved LDComment and LDEmpty into their own source file pairs.
Teemu Piippo <teemu@hecknology.net>
parents: 1100
diff changeset
247 /*
efcb47c64a72 Moved LDComment and LDEmpty into their own source file pairs.
Teemu Piippo <teemu@hecknology.net>
parents: 1100
diff changeset
248 * Changes a property in a manner that emits the appropriate signal to notify that the object changed.
efcb47c64a72 Moved LDComment and LDEmpty into their own source file pairs.
Teemu Piippo <teemu@hecknology.net>
parents: 1100
diff changeset
249 */
efcb47c64a72 Moved LDComment and LDEmpty into their own source file pairs.
Teemu Piippo <teemu@hecknology.net>
parents: 1100
diff changeset
250 template<typename T>
efcb47c64a72 Moved LDComment and LDEmpty into their own source file pairs.
Teemu Piippo <teemu@hecknology.net>
parents: 1100
diff changeset
251 void LDObject::changeProperty(T* property, const T& value)
efcb47c64a72 Moved LDComment and LDEmpty into their own source file pairs.
Teemu Piippo <teemu@hecknology.net>
parents: 1100
diff changeset
252 {
efcb47c64a72 Moved LDComment and LDEmpty into their own source file pairs.
Teemu Piippo <teemu@hecknology.net>
parents: 1100
diff changeset
253 if (*property != value)
efcb47c64a72 Moved LDComment and LDEmpty into their own source file pairs.
Teemu Piippo <teemu@hecknology.net>
parents: 1100
diff changeset
254 {
1269
ec691d9472b3 Added LDObject serialization and refactored the internal resource managing to use it. No more tearing objects from one model into another, and this provides a stable way to keep an object's state in memory such as the edit history.
Santeri Piippo
parents: 1266
diff changeset
255 Serializer::Archive before = Serializer::store(this);
1117
efcb47c64a72 Moved LDComment and LDEmpty into their own source file pairs.
Teemu Piippo <teemu@hecknology.net>
parents: 1100
diff changeset
256 *property = value;
1279
0f6a4a7cafec renamed signal
Santeri Piippo
parents: 1278
diff changeset
257 emit modified(before, Serializer::store(this));
1117
efcb47c64a72 Moved LDComment and LDEmpty into their own source file pairs.
Teemu Piippo <teemu@hecknology.net>
parents: 1100
diff changeset
258 }
efcb47c64a72 Moved LDComment and LDEmpty into their own source file pairs.
Teemu Piippo <teemu@hecknology.net>
parents: 1100
diff changeset
259 }

mercurial