Enable the ReadShapeCompoundMode into the C++ code

This commit is contained in:
Jean-Marie Verdun
2017-07-23 21:45:30 -07:00
committed by Yorik van Havre
parent b81f88d7a2
commit 5ef87acb70
3 changed files with 20 additions and 5 deletions

View File

@@ -58,18 +58,19 @@ public:
ImportOCAF(Handle(TDocStd_Document) h, App::Document* d, const std::string& name);
virtual ~ImportOCAF();
void loadShapes();
void setMerge(bool);
private:
void loadShapes(const TDF_Label& label, const TopLoc_Location&, const std::string& partname, const std::string& assembly, bool isRef, std::vector<App::DocumentObject*> &);
void createShape(const TDF_Label& label, const TopLoc_Location&, const std::string&, std::vector<App::DocumentObject*> &, bool);
void createShape(const TopoDS_Shape& label, const TopLoc_Location&, const std::string&, std::vector<App::DocumentObject*> &);
virtual void applyColors(Part::Feature*, const std::vector<App::Color>&){}
private:
Handle(TDocStd_Document) pDoc;
App::Document* doc;
Handle(XCAFDoc_ShapeTool) aShapeTool;
Handle(XCAFDoc_ColorTool) aColorTool;
bool merge;
std::string default_name;
std::set<int> myRefShapes;
static const int HashUpper = INT_MAX;