[TD]Add CenterLine edit function

This commit is contained in:
wandererfan
2019-06-23 13:44:29 -04:00
committed by WandererFan
parent 39e556fb3f
commit 11d8aaed61
20 changed files with 977 additions and 570 deletions

View File

@@ -59,6 +59,12 @@ enum GeomType {
GENERIC
};
enum SourceType {
GEOM,
COSEDGE,
CENTERLINE
};
class TechDrawExport BaseGeom
{
public:
@@ -74,6 +80,10 @@ class TechDrawExport BaseGeom
int ref3D; //obs?
TopoDS_Edge occEdge; //projected Edge
bool cosmetic;
int source(void) { return m_source; }
void source(int s) { m_source = s; }
int sourceIndex(void) { return m_sourceIndex; }
void sourceIndex(int si) { m_sourceIndex = si; }
virtual std::string toCSV(void) const;
virtual bool fromCSV(std::string s);
@@ -88,6 +98,11 @@ class TechDrawExport BaseGeom
static BaseGeom* baseFactory(TopoDS_Edge edge);
bool closed(void);
std::string dump();
protected:
int m_source;
int m_sourceIndex;
};
typedef std::vector<BaseGeom *> BaseGeomPtrVector; //obs?