FEATURESPLUGIN_EXPORT virtual int numberOfSubs(bool forTree = false) const;
/// \return the sub-feature by zero-base index.
- FEATURESPLUGIN_EXPORT virtual std::shared_ptr<ModelAPI_Feature> subFeature(const int theIndex, bool forTree = false);
+ FEATURESPLUGIN_EXPORT virtual
+ std::shared_ptr<ModelAPI_Feature> subFeature(const int theIndex, bool forTree = false);
/// \return the sub-feature unique identifier in this composite feature by zero-base index.
FEATURESPLUGIN_EXPORT virtual int subFeatureId(const int theIndex) const;
/// structures of the owner (the remove from the document will be done outside just after).
FEATURESPLUGIN_EXPORT virtual void removeFeature(std::shared_ptr<ModelAPI_Feature> theFeature);
- /// Removes also all sub-sketch.
- FEATURESPLUGIN_EXPORT virtual void erase();
-
protected:
enum InitFlags {
InitSketchLauncher = 1 << 0,
/// Initializes composite sketch attributes.
void initCompositeSketchAttribtues(const int theInitFlags);
- /// Sets the sub-object to list of base.
- void setSketchObjectToList();
-
/// \brief Returns list of base shapes.
/// \param[out] theBaseShapesList list of base shapes (warning: list not cleared).
/// \param[in] theIsMakeShells if true make shells from faces with shared edges.