1 // Copyright (C) 2014-20xx CEA/DEN, EDF R&D
3 // File: ModelAPI_ResultBody.cpp
4 // Created: 07 Jul 2014
5 // Author: Mikhail PONIKAROV
7 #include "ModelAPI_ResultBody.h"
8 #include <ModelAPI_BodyBuilder.h>
10 ModelAPI_ResultBody::ModelAPI_ResultBody()
15 ModelAPI_ResultBody::~ModelAPI_ResultBody()
21 std::string ModelAPI_ResultBody::groupName()
26 void ModelAPI_ResultBody::store(const std::shared_ptr<GeomAPI_Shape>& theShape)
28 myBuilder->store(theShape);
31 void ModelAPI_ResultBody::storeGenerated(const std::shared_ptr<GeomAPI_Shape>& theFromShape,
32 const std::shared_ptr<GeomAPI_Shape>& theToShape)
34 myBuilder->storeGenerated(theFromShape, theToShape);
37 void ModelAPI_ResultBody::storeModified(const std::shared_ptr<GeomAPI_Shape>& theOldShape,
38 const std::shared_ptr<GeomAPI_Shape>& theNewShape,
39 const int theDecomposeSolidsTag)
41 myBuilder->storeModified(theOldShape, theNewShape, theDecomposeSolidsTag);
44 std::shared_ptr<GeomAPI_Shape> ModelAPI_ResultBody::shape()
46 return myBuilder->shape();
49 void ModelAPI_ResultBody::generated(const std::shared_ptr<GeomAPI_Shape>& theNewShape,
50 const std::string& theName, const int theTag)
52 myBuilder->generated(theNewShape, theName, theTag);
55 void ModelAPI_ResultBody::generated(const std::shared_ptr<GeomAPI_Shape>& theOldShape,
56 const std::shared_ptr<GeomAPI_Shape>& theNewShape, const std::string& theName,
59 myBuilder->generated(theOldShape, theNewShape, theName, theTag);
62 void ModelAPI_ResultBody::modified(const std::shared_ptr<GeomAPI_Shape>& theOldShape,
63 const std::shared_ptr<GeomAPI_Shape>& theNewShape, const std::string& theName,
66 myBuilder->modified(theOldShape, theNewShape, theName, theTag);
70 void ModelAPI_ResultBody::deleted(
71 const std::shared_ptr<GeomAPI_Shape>& theOldShape, const int theTag)
73 myBuilder->deleted(theOldShape, theTag);
76 void ModelAPI_ResultBody::loadDeletedShapes (GeomAlgoAPI_MakeShape* theMS,
77 std::shared_ptr<GeomAPI_Shape> theShapeIn,
78 const int theKindOfShape,
81 myBuilder->loadDeletedShapes(theMS, theShapeIn, theKindOfShape, theTag);
84 void ModelAPI_ResultBody::loadAndOrientModifiedShapes (GeomAlgoAPI_MakeShape* theMS,
85 std::shared_ptr<GeomAPI_Shape> theShapeIn, const int theKindOfShape, const int theTag,
86 const std::string& theName, GeomAPI_DataMapOfShapeShape& theSubShapes)
88 myBuilder->loadAndOrientModifiedShapes(
89 theMS, theShapeIn, theKindOfShape, theTag, theName, theSubShapes);
92 void ModelAPI_ResultBody::loadAndOrientGeneratedShapes (GeomAlgoAPI_MakeShape* theMS,
93 std::shared_ptr<GeomAPI_Shape> theShapeIn, const int theKindOfShape,
94 const int theTag, const std::string& theName, GeomAPI_DataMapOfShapeShape& theSubShapes)
96 myBuilder->loadAndOrientGeneratedShapes(
97 theMS, theShapeIn, theKindOfShape, theTag, theName, theSubShapes);
100 void ModelAPI_ResultBody::loadFirstLevel(std::shared_ptr<GeomAPI_Shape> theShape,
101 const std::string& theName, int& theTag)
103 myBuilder->loadFirstLevel(theShape, theName, theTag);
106 void ModelAPI_ResultBody::loadDisconnectedEdges(std::shared_ptr<GeomAPI_Shape> theShape,
107 const std::string& theName, int& theTag)
109 myBuilder->loadDisconnectedEdges(theShape, theName, theTag);
112 void ModelAPI_ResultBody::loadDisconnectedVertexes(std::shared_ptr<GeomAPI_Shape> theShape,
113 const std::string& theName,int& theTag)
115 myBuilder->loadDisconnectedVertexes(theShape, theName, theTag);