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 |