class ModelAPI_Document;
class ModelHighAPI_Double;
//--------------------------------------------------------------------------------------
-/*
- *
+/**\class ConstructionAPI_Point
+ * \ingroup CPPHighAPI
+ * \brief C++ HighAPI interface for Point feature
*/
class ConstructionAPI_Point : public ModelHighAPI_Interface
{
public:
- ConstructionAPI_Point(const std::shared_ptr<ModelAPI_Feature> & theFeature);
+ /// Constructor
+ explicit ConstructionAPI_Point(const std::shared_ptr<ModelAPI_Feature> & theFeature);
+ /// Constructor with values
ConstructionAPI_Point(const std::shared_ptr<ModelAPI_Feature> & theFeature,
const ModelHighAPI_Double & theX,
const ModelHighAPI_Double & theY,
const ModelHighAPI_Double & theZ);
+ /// Destructor
virtual ~ConstructionAPI_Point();
+ /// Set point values
void setPoint(const ModelHighAPI_Double & theX,
const ModelHighAPI_Double & theY,
const ModelHighAPI_Double & theZ);
+ /// X coordinate for the point
std::shared_ptr<ModelAPI_AttributeDouble> x() const;
+ /// Y coordinate for the point
std::shared_ptr<ModelAPI_AttributeDouble> y() const;
+ /// Z coordinate for the point
std::shared_ptr<ModelAPI_AttributeDouble> z() const;
protected:
//! Pointer on point object
typedef std::shared_ptr<ConstructionAPI_Point> PointPtr;
+/**\ingroup CPPHighAPI
+ * \brief C++ HighAPI function for creating Point feature
+ */
PointPtr addPoint(std::shared_ptr<ModelAPI_Document> thePart,
const ModelHighAPI_Double & theX,
const ModelHighAPI_Double & theY,
//--------------------------------------------------------------------------------------
class ModelAPI_Feature;
//--------------------------------------------------------------------------------------
-/*
- *
+/**\class ModelHighAPI_Interface
+ * \ingroup CPPHighAPI
+ * \brief Base class for feature interfaces
*/
class ModelHighAPI_Interface
{
public:
+ /// Constructor
explicit ModelHighAPI_Interface(const std::shared_ptr<ModelAPI_Feature> & theFeature);
+ /// Destructor
virtual ~ModelHighAPI_Interface();
/// Return ModelAPI_Feature
/// Shortcut for feature()->execute()
void execute();
- /// Throw exception to event loop.
+ /// Throw exception to event loop
void throwException(const std::string & theDescription);
protected: