ldtypes.h

changeset 64
ada4679d5bce
parent 63
aa40ce18f869
child 66
12aca5d5a51e
equal deleted inserted replaced
63:aa40ce18f869 64:ada4679d5bce
18 18
19 #ifndef __LDTYPES_H__ 19 #ifndef __LDTYPES_H__
20 #define __LDTYPES_H__ 20 #define __LDTYPES_H__
21 21
22 #include "common.h" 22 #include "common.h"
23 #include "types.h"
23 24
24 #define IMPLEMENT_LDTYPE(N) \ 25 #define IMPLEMENT_LDTYPE(N) \
25 LD##N (); \ 26 LD##N (); \
26 virtual ~LD##N (); \ 27 virtual ~LD##N (); \
27 virtual LDObjectType_e getType () const { \ 28 virtual LDObjectType_e getType () const { \
149 class LDSubfile : public LDObject { 150 class LDSubfile : public LDObject {
150 public: 151 public:
151 IMPLEMENT_LDTYPE (Subfile) 152 IMPLEMENT_LDTYPE (Subfile)
152 153
153 vertex vPosition; // Position of the subpart 154 vertex vPosition; // Position of the subpart
154 double faMatrix[9]; // Transformation matrix for the subpart 155 matrix mMatrix; // Transformation matrix for the subpart
155 str zFileName; // Filename of the subpart 156 str zFileName; // Filename of the subpart
156 OpenFile* pFile; // Pointer to opened file for this subfile. nullptr if unopened. 157 OpenFile* pFile; // Pointer to opened file for this subfile. nullptr if unopened.
157 vector<LDObject*> objCache; // Cache of this file's contents, if desired 158 vector<LDObject*> objCache; // Cache of this file's contents, if desired
158 159
159 // Gets the inlined contents of this subfile. 160 // Gets the inlined contents of this subfile.
160 std::vector<LDObject*> inlineContents (bool bDeepInline, double* matrix, 161 std::vector<LDObject*> inlineContents (bool bDeepInline, matrix mMatrix,
161 vertex pos, bool bCache); 162 vertex pos, bool bCache);
162 }; 163 };
163 164
164 // ============================================================================= 165 // =============================================================================
165 // LDLine 166 // LDLine

mercurial