summaryrefslogtreecommitdiffstats
path: root/Project/Element.h
diff options
context:
space:
mode:
authorThales Lima Oliveira <thaleslima.ufu@gmail.com>2018-01-03 19:01:57 -0200
committerThales Lima Oliveira <thaleslima.ufu@gmail.com>2018-01-03 19:01:57 -0200
commitcef9e14b989a3ba19321e4fe215ada2ee3998037 (patch)
tree245a63164fcd4131c48ebd1883615d112b0b59e9 /Project/Element.h
parent0c0280cfcf540f943fd2dbfdf7ac0304ea96a465 (diff)
downloadPSP.git-cef9e14b989a3ba19321e4fe215ada2ee3998037.tar.gz
PSP.git-cef9e14b989a3ba19321e4fe215ada2ee3998037.tar.xz
PSP.git-cef9e14b989a3ba19321e4fe215ada2ee3998037.zip
Some file hand. organization and generalization
Diffstat (limited to 'Project/Element.h')
-rw-r--r--Project/Element.h7
1 files changed, 7 insertions, 0 deletions
diff --git a/Project/Element.h b/Project/Element.h
index 21f8def..d48c3a6 100644
--- a/Project/Element.h
+++ b/Project/Element.h
@@ -28,6 +28,8 @@
#include <complex>
+#include "XMLParser.h"
+
//#include <wx/log.h>
/**
@@ -564,6 +566,11 @@ class Element
* @return The distance between the point and the line.
*/
virtual double PointToLineDistance(wxPoint2DDouble point, int* segmentNumber = NULL) const;
+
+ virtual void SaveElement(rapidxml::xml_document<>& doc, rapidxml::xml_node<>* elementListNode) {}
+ virtual bool OpenElement(rapidxml::xml_node<>* elementNode) { return true; }
+ void SaveCADProperties(rapidxml::xml_document<>& doc, rapidxml::xml_node<>* elementNode);
+ bool OpenCADProperties(rapidxml::xml_node<>* elementNode);
protected:
int m_elementID = 0;