20 #ifndef FeatureAPI_GlueFaces_H_
21 #define FeatureAPI_GlueFaces_H_
23 #include "FeaturesAPI.h"
25 #include <FeaturesPlugin_GlueFaces.h>
27 #include <ModelHighAPI_Interface.h>
28 #include <ModelHighAPI_Macro.h>
47 const std::list<ModelHighAPI_Selection>& theMainObjects,
49 bool theIsKeepNonSolids =
true);
89 const
bool theKeepNonSolids);
Interface for Glue Faces feature.
Definition: FeaturesAPI_GlueFaces.h:38
FeaturesAPI_GlueFaces(const std::shared_ptr< ModelAPI_Feature > &theFeature)
Constructor without values.
Definition: FeaturesAPI_GlueFaces.cpp:27
virtual ~FeaturesAPI_GlueFaces()
Destructor.
Definition: FeaturesAPI_GlueFaces.cpp:48
virtual std::shared_ptr< ModelAPI_AttributeDouble > tolerance() const
Tolerance.
Definition: FeaturesAPI_GlueFaces.h:61
virtual void dump(ModelHighAPI_Dumper &theDumper) const
Dump wrapped feature.
Definition: FeaturesAPI_GlueFaces.cpp:74
virtual std::shared_ptr< ModelAPI_AttributeBoolean > keepNonSolids() const
Keep all non-solid shapes.
Definition: FeaturesAPI_GlueFaces.h:61
void setMainObjects(const std::list< ModelHighAPI_Selection > &theMainObjects)
Set main objects.
Definition: FeaturesAPI_GlueFaces.cpp:53
void setKeepNonSolids(bool theFlag)
Set flag whether to keep all non-solid shapes.
Definition: FeaturesAPI_GlueFaces.cpp:67
void setTolerance(const ModelHighAPI_Double &theTolerance)
Set the tolerance.
Definition: FeaturesAPI_GlueFaces.cpp:60
virtual std::shared_ptr< ModelAPI_AttributeSelectionList > mainObjects() const
Main objects.
Definition: FeaturesAPI_GlueFaces.h:61
static const std::string & ID()
Feature kind.
Definition: FeaturesPlugin_GlueFaces.h:39
static const std::string & TOLERANCE_ID()
Attribute name for tolerance.
Definition: FeaturesPlugin_GlueFaces.h:60
static const std::string & OBJECTS_LIST_ID()
Attribute name of referenced objects.
Definition: FeaturesPlugin_GlueFaces.h:53
static const std::string & KEEP_NON_SOLIDS_ID()
Attribute name for keeping non-solid shapes.
Definition: FeaturesPlugin_GlueFaces.h:67
Attribute that contains boolean value.
Definition: ModelAPI_AttributeBoolean.h:31
Attribute that contains real value with double precision.
Definition: ModelAPI_AttributeDouble.h:34
Attribute that contains list of references to the sub-shapes with possibility to manage them.
Definition: ModelAPI_AttributeSelectionList.h:37
Document for internal data structure of any object storage.
Definition: ModelAPI_Document.h:53
Class for filling ModelAPI_AttributeDouble.
Definition: ModelHighAPI_Double.h:37
Dump engine for the model.
Definition: ModelHighAPI_Dumper.h:81
Base class for feature interfaces.
Definition: ModelHighAPI_Interface.h:46
Class for filling ModelAPI_AttributeSelection.
Definition: ModelHighAPI_Selection.h:49
GlueFacesPtr addGlueFaces(const std::shared_ptr< ModelAPI_Document > &thePart, const std::list< ModelHighAPI_Selection > &theMainObjects, const ModelHighAPI_Double &theTolerance, const bool theKeepNonSolids)
Create Glue Faces feature.
Definition: FeaturesAPI_GlueFaces.cpp:93