24 STEPReader(
Application *_app,
const std::string &_serviceName) : application(_app), serviceName(_serviceName) { };
27 void importSTEPFile(
const std::string &fileName,
bool removeFile,
const std::string &originalName);
30 void importSTEPFileWorker(
const std::string &fileName,
bool removeFile,
const std::string &originalName);
31 void readStepFile(std::string fileName,
const std::string &rootName,
bool removeFile, std::string &messages);
32 std::string getNameFromLabel(
const TDF_Label &label);
33 std::string getEntityName(
const std::string &prefix,
const TDF_Label &label,
const TopoDS_Shape &theShape, STEPCAFControl_Reader *aReader);
34 Quantity_Color readColor(
const TDF_Label &label,
const TopoDS_Shape &shape);
35 void processNode(
const TDF_Label &itemLabel, std::string prefix, STEPCAFControl_Reader *reader, TopLoc_Location aLocation,
const std::string &rootName, std::map<std::string, bool> &existingEntityNames, std::string &messages,
int &shapesIndex,
int numberOfShapes,
bool buildShapes);
36 void splitCompoundShapes(TopoDS_Shape &itemShape, std::list<TopoDS_Shape> &shapeList);
37 void analyzeGeometry(EntityGeometry *entityGeom, std::string &messages);
38 void simplifyComplexSplines(EntityGeometry *entityGeom,
double maxRatioForComplexSplines);
39 std::string determineUniqueRootName(
const std::string &fileName);
41 std::list<EntityGeometry *> entityList;
43 Handle(XCAFDoc_ColorTool) colorTool;
44 Handle(XCAFDoc_ShapeTool) shapeTool;
47 std::string serviceName;
48 static std::string materialsFolder;
49 static ot::UID materialsFolderID;
void importSTEPFile(const std::string &fileName, bool removeFile, const std::string &originalName)
Definition STEPReader.cpp:58