TestPoint.py
)
-ADD_SUBDIRECTORY (Test)
+# ADD_SUBDIRECTORY (Test)
{
public:
/// Constructor without values
+ CONSTRUCTIONAPI_EXPORT
explicit ConstructionAPI_Plane(const std::shared_ptr<ModelAPI_Feature> & theFeature);
/// Constructor with values
+ CONSTRUCTIONAPI_EXPORT
ConstructionAPI_Plane(const std::shared_ptr<ModelAPI_Feature> & theFeature,
const ModelHighAPI_Selection & theFace,
const ModelHighAPI_Double & theDistance);
/// Constructor with values
+ CONSTRUCTIONAPI_EXPORT
ConstructionAPI_Plane(const std::shared_ptr<ModelAPI_Feature> & theFeature,
const ModelHighAPI_Double & theA,
const ModelHighAPI_Double & theB,
const ModelHighAPI_Double & theC,
const ModelHighAPI_Double & theD);
/// Destructor
+ CONSTRUCTIONAPI_EXPORT
virtual ~ConstructionAPI_Plane();
INTERFACE_7("Plane",
)
/// Set face and distance
+ CONSTRUCTIONAPI_EXPORT
void setFaceAndDistance(const ModelHighAPI_Selection & theFace,
const ModelHighAPI_Double & theDistance);
/// Set GeneralEquation parameters of the feature
+ CONSTRUCTIONAPI_EXPORT
void setGeneralEquation(const ModelHighAPI_Double & theA,
const ModelHighAPI_Double & theB,
const ModelHighAPI_Double & theC,
/**\ingroup CPPHighAPI
* \brief Create Plane feature
*/
+CONSTRUCTIONAPI_EXPORT
PlanePtr addPlane(const std::shared_ptr<ModelAPI_Document> & thePart,
const ModelHighAPI_Selection & theFace,
const ModelHighAPI_Double & theDistance);
/**\ingroup CPPHighAPI
* \brief Create Plane feature
*/
+CONSTRUCTIONAPI_EXPORT
PlanePtr addPlane(const std::shared_ptr<ModelAPI_Document> & thePart,
const ModelHighAPI_Double & theA,
const ModelHighAPI_Double & theB,
{
public:
/// Constructor without values
+ CONSTRUCTIONAPI_EXPORT
explicit ConstructionAPI_Point(const std::shared_ptr<ModelAPI_Feature> & theFeature);
/// Constructor with values
+ CONSTRUCTIONAPI_EXPORT
ConstructionAPI_Point(const std::shared_ptr<ModelAPI_Feature> & theFeature,
const ModelHighAPI_Double & theX,
const ModelHighAPI_Double & theY,
const ModelHighAPI_Double & theZ);
/// Destructor
+ CONSTRUCTIONAPI_EXPORT
virtual ~ConstructionAPI_Point();
INTERFACE_3("Point",
z, "z", Double, /** Z attribute */)
/// Set point values
+ CONSTRUCTIONAPI_EXPORT
void setPoint(const ModelHighAPI_Double & theX,
const ModelHighAPI_Double & theY,
const ModelHighAPI_Double & theZ);
/**\ingroup CPPHighAPI
* \brief Create Point feature
*/
+CONSTRUCTIONAPI_EXPORT
PointPtr addPoint(const std::shared_ptr<ModelAPI_Document> & thePart,
const ModelHighAPI_Double & theX,
const ModelHighAPI_Double & theY,
#include <ModelHighAPI_swig.h>
+ #include "ConstructionAPI.h"
#include "ConstructionAPI_Plane.h"
#include "ConstructionAPI_Point.h"
TestDouble.py
)
-ADD_SUBDIRECTORY (Test)
+# ADD_SUBDIRECTORY (Test)
%include "doxyhelp.i"
// to avoid error on this
-#define ModelHighAPI_EXPORT
+#define MODELHIGHAPI_EXPORT
// standard definitions
%include "typemaps.i"
#define SRC_MODELHIGHAPI_MODELHIGHAPI_DOUBLE_H_
//--------------------------------------------------------------------------------------
+#include "ModelHighAPI.h"
+
#include <memory>
#include <string>
{
public:
/// Constructor for double
- ModelHighAPI_Double(double theValue = 0.);
+ MODELHIGHAPI_EXPORT ModelHighAPI_Double(double theValue = 0.);
/// Constructor for std::string
- ModelHighAPI_Double(const std::string & theValue);
+ MODELHIGHAPI_EXPORT ModelHighAPI_Double(const std::string & theValue);
/// Constructor for char *
- ModelHighAPI_Double(const char * theValue);
+ MODELHIGHAPI_EXPORT ModelHighAPI_Double(const char * theValue);
/// Destructor
- virtual ~ModelHighAPI_Double();
+ MODELHIGHAPI_EXPORT virtual ~ModelHighAPI_Double();
/// Fill attribute values
- virtual void fillAttribute(std::shared_ptr<ModelAPI_AttributeDouble> & theAttribute) const;
+ MODELHIGHAPI_EXPORT virtual void fillAttribute(std::shared_ptr<ModelAPI_AttributeDouble> & theAttribute) const;
private:
boost::variant<double, std::string> myValue;
#define SRC_MODELHIGHAPI_MODELHIGHAPI_INTERFACE_H_
//--------------------------------------------------------------------------------------
+#include "ModelHighAPI.h"
+
#include <memory>
#include <string>
//--------------------------------------------------------------------------------------
{
public:
/// Constructor
- explicit ModelHighAPI_Interface(const std::shared_ptr<ModelAPI_Feature> & theFeature);
+ MODELHIGHAPI_EXPORT explicit ModelHighAPI_Interface(const std::shared_ptr<ModelAPI_Feature> & theFeature);
/// Destructor
- virtual ~ModelHighAPI_Interface();
+ MODELHIGHAPI_EXPORT virtual ~ModelHighAPI_Interface();
/// Return ModelAPI_Feature
- std::shared_ptr<ModelAPI_Feature> feature() const;
+ MODELHIGHAPI_EXPORT std::shared_ptr<ModelAPI_Feature> feature() const;
/// Shortcut for feature()->getKind()
- const std::string& getKind();
+ MODELHIGHAPI_EXPORT const std::string& getKind();
/// Shortcut for feature()->execute()
- void execute();
+ MODELHIGHAPI_EXPORT void execute();
/// Throw exception to event loop
- void throwException(const std::string & theDescription);
+ MODELHIGHAPI_EXPORT void throwException(const std::string & theDescription);
protected:
std::shared_ptr<ModelAPI_Feature> myFeature;
#include <ModelAPI.h>
+ #include "ModelHighAPI.h"
#include "ModelHighAPI_Double.h"
#include "ModelHighAPI_Interface.h"
#include "ModelHighAPI_Macro.h"