+ /// \return true if the data were correct.
+ GEOMALGOAPI_EXPORT virtual bool check() { return true; };
+
+ /// \return the list of created faces.
+ GEOMALGOAPI_EXPORT std::map< std::string, std::shared_ptr<GeomAPI_Shape> > getCreatedFaces() {return myCreatedFaces;}
+
+ /// \return the error.
+ GEOMALGOAPI_EXPORT std::string getError() { return myError; }
+
+ /// \brief Prepare the naming of faces.
+ GEOMALGOAPI_EXPORT virtual void prepareNamingFaces();
+
+ /// \brief Check the validity of the produced shape.
+ GEOMALGOAPI_EXPORT bool checkValid(std::string theMessage);
+
+protected:
+ /// \brief Sets builder type.
+ /// \param[in] theBuilderType new builder type.
+ void setBuilderType(const BuilderType theBuilderType);
+
+ /// \brief Sets status of builder.
+ /// \param[in] theFlag new status.
+ void setDone(const bool theFlag);
+
+ /// \brief Sets result shape.
+ /// \param[in] theShape new shape.
+ void setShape(const std::shared_ptr<GeomAPI_Shape> theShape);
+
+protected:
+ std::shared_ptr<GeomAPI_DataMapOfShapeShape> myMap; ///< Data map to keep correct orientation of sub-shapes.
+ std::string myError; /// Error occurred during the execution of an algorithm.
+ std::map< std::string, std::shared_ptr<GeomAPI_Shape> > myCreatedFaces; /// Map of created faces with their name for naming.
+
+private:
+ /// \brief Initializes internals.
+ void initialize();
+
+private:
+ GeomAlgoAPI_MakeShape::BuilderType myBuilderType; ///< Type of make shape builder.
+ bool myDone; ///< Builder status.
+ std::shared_ptr<GeomAPI_Shape> myShape; ///< Resulting shape.