1 // Copyright (C) 2014-20xx CEA/DEN, EDF R&D
3 // File: FeaturesPlugin_ExtrusionBoolean.h
4 // Created: 11 June 2015
5 // Author: Dmitry Bobylev
7 #ifndef FeaturesPlugin_ExtrusionBoolean_H_
8 #define FeaturesPlugin_ExtrusionBoolean_H_
10 #include <FeaturesPlugin_CompositeBoolean.h>
12 /** \class FeaturesPlugin_ExtrusionBoolean
14 * \brief Interface for the composite extrusion feature.
16 class FeaturesPlugin_ExtrusionBoolean : public FeaturesPlugin_CompositeBoolean
20 /// attribute name for creation method
21 inline static const std::string& CREATION_METHOD()
23 static const std::string METHOD_ATTR("CreationMethod");
27 /// attribute name of extrusion size
28 inline static const std::string& TO_SIZE_ID()
30 static const std::string MY_TO_SIZE_ID("to_size");
34 /// attribute name of extrusion size
35 inline static const std::string& FROM_SIZE_ID()
37 static const std::string MY_FROM_SIZE_ID("from_size");
38 return MY_FROM_SIZE_ID;
41 /// attribute name of an object to which the extrusion grows.
42 inline static const std::string& TO_OBJECT_ID()
44 static const std::string MY_TO_OBJECT_ID("to_object");
45 return MY_TO_OBJECT_ID;
48 /// attribute name of extrusion offset
49 inline static const std::string& TO_OFFSET_ID()
51 static const std::string MY_TO_OFFSET_ID("to_offset");
52 return MY_TO_OFFSET_ID;
55 /// Attribute name of an object from which the extrusion grows.
56 inline static const std::string& FROM_OBJECT_ID()
58 static const std::string MY_FROM_OBJECT_ID("from_object");
59 return MY_FROM_OBJECT_ID;
62 /// attribute name of extrusion offset
63 inline static const std::string& FROM_OFFSET_ID()
65 static const std::string MY_FROM_OFFSET_ID("from_offset");
66 return MY_FROM_OFFSET_ID;
70 /// Init attributes for extrusion.
71 virtual void initMakeSolidsAttributes();
73 /// Create solids from faces with extrusion.
74 virtual void makeSolids(const ListOfShape& theFaces,
75 ListOfShape& theResults,
76 ListOfMakeShape& theAlgos);
79 FeaturesPlugin_ExtrusionBoolean(){};