Move MapperMaker and MapperHistory out to future PR
This commit is contained in:
@@ -76,34 +76,6 @@ struct ShapeHasher {
|
||||
}
|
||||
};
|
||||
|
||||
/** Shape mapper for generic BRepBuilderAPI_MakeShape derived class
|
||||
*
|
||||
* Uses BRepBuilderAPI_MakeShape::Modified/Generated() function to extract
|
||||
* shape history for generating mapped element names
|
||||
*/
|
||||
struct PartExport MapperMaker: TopoShape::Mapper {
|
||||
BRepBuilderAPI_MakeShape &maker;
|
||||
MapperMaker(BRepBuilderAPI_MakeShape &maker)
|
||||
:maker(maker)
|
||||
{}
|
||||
virtual const std::vector<TopoDS_Shape> &modified(const TopoDS_Shape &s) const override;
|
||||
virtual const std::vector<TopoDS_Shape> &generated(const TopoDS_Shape &s) const override;
|
||||
};
|
||||
|
||||
/** Shape mapper for BRepTools_History
|
||||
*
|
||||
* Uses BRepTools_History::Modified/Generated() function to extract
|
||||
* shape history for generating mapped element names
|
||||
*/
|
||||
struct PartExport MapperHistory: TopoShape::Mapper {
|
||||
Handle(BRepTools_History) history;
|
||||
MapperHistory(const Handle(BRepTools_History) &history);
|
||||
MapperHistory(const Handle(BRepTools_ReShape) &reshape);
|
||||
MapperHistory(ShapeFix_Root &fix);
|
||||
virtual const std::vector<TopoDS_Shape> &modified(const TopoDS_Shape &s) const override;
|
||||
virtual const std::vector<TopoDS_Shape> &generated(const TopoDS_Shape &s) const override;
|
||||
};
|
||||
|
||||
/** Shape mapper for user defined shape mapping
|
||||
*/
|
||||
struct PartExport ShapeMapper: TopoShape::Mapper {
|
||||
|
||||
@@ -86,16 +86,6 @@ TEST_F(TopoShapeMapperTest, shapeHasherTests)
|
||||
EXPECT_FALSE(hash16);
|
||||
}
|
||||
|
||||
TEST_F(TopoShapeMapperTest, mapperMakerTests)
|
||||
{
|
||||
// How can this be tested?
|
||||
}
|
||||
|
||||
TEST_F(TopoShapeMapperTest, mapperHistoryTests)
|
||||
{
|
||||
// How can this be tested?
|
||||
}
|
||||
|
||||
TEST_F(TopoShapeMapperTest, shapeMapperTests)
|
||||
{
|
||||
// Arrange
|
||||
@@ -118,4 +108,4 @@ TEST_F(TopoShapeMapperTest, shapeMapperTests)
|
||||
}
|
||||
|
||||
|
||||
// // NOLINTEND(readability-magic-numbers,cppcoreguidelines-avoid-magic-numbers)
|
||||
// NOLINTEND(readability-magic-numbers,cppcoreguidelines-avoid-magic-numbers)
|
||||
|
||||
Reference in New Issue
Block a user