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 void ModelAPI_ResultBody::storeWithoutNaming(const std::shared_ptr<GeomAPI_Shape>& theShape)
46 myBuilder->storeWithoutNaming(theShape);
49 std::shared_ptr<GeomAPI_Shape> ModelAPI_ResultBody::shape()
51 return myBuilder->shape();
54 void ModelAPI_ResultBody::generated(const std::shared_ptr<GeomAPI_Shape>& theNewShape,
55 const std::string& theName, const int theTag)
57 myBuilder->generated(theNewShape, theName, theTag);
60 void ModelAPI_ResultBody::generated(const std::shared_ptr<GeomAPI_Shape>& theOldShape,
61 const std::shared_ptr<GeomAPI_Shape>& theNewShape, const std::string& theName,
64 myBuilder->generated(theOldShape, theNewShape, theName, theTag);
67 void ModelAPI_ResultBody::modified(const std::shared_ptr<GeomAPI_Shape>& theOldShape,
68 const std::shared_ptr<GeomAPI_Shape>& theNewShape, const std::string& theName,
71 myBuilder->modified(theOldShape, theNewShape, theName, theTag);
75 void ModelAPI_ResultBody::deleted(
76 const std::shared_ptr<GeomAPI_Shape>& theOldShape, const int theTag)
78 myBuilder->deleted(theOldShape, theTag);
81 void ModelAPI_ResultBody::loadDeletedShapes (GeomAlgoAPI_MakeShape* theMS,
82 std::shared_ptr<GeomAPI_Shape> theShapeIn,
83 const int theKindOfShape,
86 myBuilder->loadDeletedShapes(theMS, theShapeIn, theKindOfShape, theTag);
89 void ModelAPI_ResultBody::loadAndOrientModifiedShapes (GeomAlgoAPI_MakeShape* theMS,
90 std::shared_ptr<GeomAPI_Shape> theShapeIn, const int theKindOfShape, const int theTag,
91 const std::string& theName, GeomAPI_DataMapOfShapeShape& theSubShapes)
93 myBuilder->loadAndOrientModifiedShapes(
94 theMS, theShapeIn, theKindOfShape, theTag, theName, theSubShapes);
97 void ModelAPI_ResultBody::loadAndOrientGeneratedShapes (GeomAlgoAPI_MakeShape* theMS,
98 std::shared_ptr<GeomAPI_Shape> theShapeIn, const int theKindOfShape,
99 const int theTag, const std::string& theName, GeomAPI_DataMapOfShapeShape& theSubShapes)
101 myBuilder->loadAndOrientGeneratedShapes(
102 theMS, theShapeIn, theKindOfShape, theTag, theName, theSubShapes);
105 void ModelAPI_ResultBody::loadFirstLevel(std::shared_ptr<GeomAPI_Shape> theShape,
106 const std::string& theName, int& theTag)
108 myBuilder->loadFirstLevel(theShape, theName, theTag);
111 void ModelAPI_ResultBody::loadDisconnectedEdges(std::shared_ptr<GeomAPI_Shape> theShape,
112 const std::string& theName, int& theTag)
114 myBuilder->loadDisconnectedEdges(theShape, theName, theTag);
117 void ModelAPI_ResultBody::loadDisconnectedVertexes(std::shared_ptr<GeomAPI_Shape> theShape,
118 const std::string& theName,int& theTag)
120 myBuilder->loadDisconnectedVertexes(theShape, theName, theTag);