/// \brief Create a result for the point in the attribute if the attribute is initialized
+ /// \param theFeature a source feature
+ /// \param theSketch a sketch intance
/// \param theAttributeID an attribute string
/// \param theIndex an index of the result
static void createPoint2DResult(ModelAPI_Feature* theFeature,
/// Add new feature and fill the data of the feature by the data of the parameter feature.
/// The name of the created feature stays unique.
/// \param theFeature a source feature
+ /// \param theSketch a sketch intance
/// \return a created feature
- static FeaturePtr addUniqueNamedCopiedFeature(FeaturePtr aFeature,
+ static FeaturePtr addUniqueNamedCopiedFeature(FeaturePtr theFeature,
SketchPlugin_Sketch* theSketch);
/// Creates a plane of the sketch.
//! returns true if attribute is valid
//! \param theAttribute the checked attribute
//! \param theArguments arguments of the attribute
+ //! \param theError error message
virtual bool isValid(const AttributePtr& theAttribute,
const std::list<std::string>& theArguments,
std::string& theError) const;
//! returns true if attribute is valid
//! \param theAttribute the checked attribute
//! \param theArguments arguments of the attribute
+ //! \param theError error message
virtual bool isValid(const AttributePtr& theAttribute,
const std::list<std::string>& theArguments,
std::string& theError) const;
};
-/**\class SketchPlugin_NotFixed
+/**\class SketchPlugin_NotFixedValidator
* \ingroup Validators
* \brief Validator for the rigid constraint input.
*
//! returns true if attribute is not used in another rigid constraint
//! \param theAttribute the checked attribute
//! \param theArguments arguments of the attribute
+ //! \param theError error message
virtual bool isValid(const AttributePtr& theAttribute,
const std::list<std::string>& theArguments,
std::string& theError) const;
//! returns true if attribute is valid
//! \param theAttribute the checked attribute
//! \param theArguments arguments of the attribute
+ //! \param theError error message
virtual bool isValid(const AttributePtr& theAttribute,
const std::list<std::string>& theArguments,
std::string& theError) const;
//! returns true if attribute is valid
//! \param theAttribute the checked attribute
//! \param theArguments arguments of the attribute (not used)
+ //! \param theError error message
virtual bool isValid(const AttributePtr& theAttribute,
const std::list<std::string>& theArguments,
std::string& theError) const;
//! returns true if attribute is valid
//! \param theAttribute the checked attribute
//! \param theArguments arguments of the attribute (not used)
+ //! \param theError error message
virtual bool isValid(const AttributePtr& theAttribute,
const std::list<std::string>& theArguments,
std::string& theError) const;
//! returns true if attribute is valid
//! \param theAttribute the checked attribute
//! \param theArguments arguments of the attribute (not used)
+ //! \param theError error message
virtual bool isValid(const AttributePtr& theAttribute,
const std::list<std::string>& theArguments,
std::string& theError) const;
//! returns true if there are no solver errors
//! \param theFeature the checked feature
//! \param theArguments arguments of the feature (not used)
+ //! \param theError error message
virtual bool isValid(const std::shared_ptr<ModelAPI_Feature>& theFeature,
const std::list<std::string>& theArguments,
std::string& theError) const;