/// \param theContext the result - owner of the selection
/// \param theSubShape selected shape
/// \param theUpdate flag that shows that it must be just update, theShape is null
- /// \param returns true if eveything is selected correctly
+ /// \returns true if eveything is selected correctly
virtual bool selectPart(
const ResultPtr& theContext, const std::shared_ptr<GeomAPI_Shape>& theSubShape,
const bool theUpdate = false);
public:
/// \param theAttribute the checked attribute
/// \param theArguments arguments of the attribute
+ /// \param theError erros message produced by validator to the user if it fails
/// \returns true if attribute is valid
MODEL_EXPORT virtual bool isValid(const AttributePtr& theAttribute,
const std::list<std::string>& theArguments,
MODEL_EXPORT virtual void evolutionToSelection(const bool theFlag);
protected:
+ /// Default constructor accessible only by Model_Objects
Model_BodyBuilder(ModelAPI_Object* theOwner);
/// Removes the stored builders
//! will be appended after this one.
//! \param theCurrent the selected feature as current: blow it everythin become disabled
//! \param theVisible use visible features only: flag is true for Object Browser functionality
+ //! \param theFlushUpdates if it is true method calls flushes for creation/redisplay/delete messages
MODEL_EXPORT virtual void setCurrentFeature(std::shared_ptr<ModelAPI_Feature> theCurrent,
const bool theVisible, const bool theFlushUpdates = true);
MODEL_EXPORT virtual std::shared_ptr<ModelAPI_ResultPart> copyPart(
const std::shared_ptr<ModelAPI_ResultPart>& theOrigin,
const std::shared_ptr<ModelAPI_Data>& theFeatureData, const int theIndex = 0);
- /// Creates a group results
+ /// Creates a group result
MODEL_EXPORT virtual std::shared_ptr<ModelAPI_ResultGroup> createGroup(
const std::shared_ptr<ModelAPI_Data>& theFeatureData, const int theIndex = 0);
-
+ /// Creates a parameter result
MODEL_EXPORT virtual std::shared_ptr<ModelAPI_ResultParameter> createParameter(
const std::shared_ptr<ModelAPI_Data>& theFeatureData, const int theIndex = 0);
/// Returns true if feature and/or attributes are valid
/// \param theFeature the validated feature
/// \param theArguments the arguments in the configuration file for this validator
+ /// \param theError erros message produced by validator to the user if it fails
/// \returns true if feature is valid
MODEL_EXPORT virtual bool isValid(const std::shared_ptr<ModelAPI_Feature>& theFeature,
const std::list<std::string>& theArguments,
//! Returns the feature by zero-based index: features in the history or not
std::shared_ptr<ModelAPI_Feature> internalFeature(const int theIndex);
- /// Creates a construction results
+ /// Creates a construction result
std::shared_ptr<ModelAPI_ResultConstruction> createConstruction(
const std::shared_ptr<ModelAPI_Data>& theFeatureData, const int theIndex = 0);
- /// Creates a body results
+ /// Creates a body result
std::shared_ptr<ModelAPI_ResultBody> createBody(
const std::shared_ptr<ModelAPI_Data>& theFeatureData, const int theIndex = 0);
- /// Creates a part results
+ /// Creates a part result
std::shared_ptr<ModelAPI_ResultPart> createPart(
const std::shared_ptr<ModelAPI_Data>& theFeatureData, const int theIndex = 0);
- /// Copies a part results, keeping the reference to origin
+ /// Copies a part result, keeping the reference to origin
std::shared_ptr<ModelAPI_ResultPart> copyPart(
const std::shared_ptr<ModelAPI_ResultPart>& theOrigin,
const std::shared_ptr<ModelAPI_Data>& theFeatureData, const int theIndex = 0);
- /// Creates a group results
+ /// Creates a group result
std::shared_ptr<ModelAPI_ResultGroup> createGroup(
const std::shared_ptr<ModelAPI_Data>& theFeatureData, const int theIndex = 0);
-
+ /// Creates a parameter result
std::shared_ptr<ModelAPI_ResultParameter> createParameter(
const std::shared_ptr<ModelAPI_Data>& theFeatureData, const int theIndex = 0);
/// Creates the history: up to date with the current state
void createHistory(const std::string& theGroupID);
- /// Returns to the next (from the history point of view) feature, any: invisible or disabled
+ /// Returns the next (from the history point of view) feature, any: invisible or disabled
+ /// \param theCurrent previous to the resulting feature
/// \param theReverse if it is true, iterates in reverced order (next becomes previous)
FeaturePtr nextFeature(FeaturePtr theCurrent, const bool theReverse = false);
/// Returns to the first (from the history point of view) feature, any: invisible or disabled
/**\class Model_ResultParameter
* \ingroup DataModel
- * \brief
+ * \brief Result of parameter expression. Contains only double value computed result attribute.
*/
class Model_ResultParameter : public ModelAPI_ResultParameter
{