Salome HOME
Unwarningization under Win.
[tools/medcoupling.git] / src / INTERP_KERNEL / Geometric2D / InterpKernelGeo2DElementaryEdge.hxx
index 0463ecc21abf002a454ce0b9f36dcd1dd2096920..dde7ef0f5035f1bfadefd3eef0f3a153dff23a7d 100644 (file)
 
 namespace INTERP_KERNEL
 {
-  class INTERPKERNEL_EXPORT ElementaryEdge
+  class ElementaryEdge
   {
   public:
-    ElementaryEdge(Edge *ptr, bool direction):_direction(direction),_ptr(ptr) { }
-    ElementaryEdge(const ElementaryEdge& other);
-    ~ElementaryEdge();
-    bool isThereStartPoint() const { return _iterator.isValid(); }
-    IteratorOnComposedEdge& getIterator() { return _iterator; }
-    bool completed() const { return false; }
-    void declareOn() const { _ptr->declareOn(); }
-    void declareIn() const { _ptr->declareIn(); }
-    void declareOut() const { _ptr->declareOut(); }
-    TypeOfEdgeLocInPolygon getLoc() const { return _ptr->getLoc(); }
-    Edge *getPtr() const { return _ptr; }
-    void reverse() { _direction=(!_direction); }
-    bool isNodeIn(Node *n) const;
-    double getAreaOfZone() const { double ret=_ptr->getAreaOfZone(); return _direction?ret:-ret; }
-    void getBarycenterOfZone(double *bary) const;
-    void fillBounds(Bounds& output) const;
-    void applySimilarity(double xBary, double yBary, double dimChar) { _ptr->applySimilarity(xBary,yBary,dimChar); }
-    void unApplySimilarity(double xBary, double yBary, double dimChar) { _ptr->unApplySimilarity(xBary,yBary,dimChar); }
-    void getAllNodes(std::set<Node *>& output) const;
-    void getBarycenter(double *bary, double& weigh) const;
-    ElementaryEdge *clone() const;
-    void initLocations() const;
-    int size() const;
-    TypeOfEdgeLocInPolygon locateFullyMySelfAbsolute(const ComposedEdge& pol) const;
-    TypeOfEdgeLocInPolygon locateFullyMySelf(const ComposedEdge& pol, TypeOfEdgeLocInPolygon precEdgeLoc) const;
-    Node *getEndNode() const;
-    Node *getStartNode() const;
-    double getCurveLength() const { return _ptr->getCurveLength(); }
-    bool changeEndNodeWith(Node *node) const;
-    bool changeStartNodeWith(Node *node) const;
-    bool intresicEqual(const ElementaryEdge *other) const;
-    bool intresicEqualDirSensitive(const ElementaryEdge *other) const;
-    void dumpInXfigFile(std::ostream& stream, int resolution, const Bounds& box) const;
-    bool getDirection() const { return _direction; }
-    bool intresincEqCoarse(const Edge *other) const;
-    bool isEqual(const ElementaryEdge& other) const;
+    INTERPKERNEL_EXPORT ElementaryEdge(Edge *ptr, bool direction):_direction(direction),_ptr(ptr) { }
+    INTERPKERNEL_EXPORT ElementaryEdge(const ElementaryEdge& other);
+    INTERPKERNEL_EXPORT ~ElementaryEdge();
+    INTERPKERNEL_EXPORT bool isThereStartPoint() const { return _iterator.isValid(); }
+    INTERPKERNEL_EXPORT IteratorOnComposedEdge& getIterator() { return _iterator; }
+    INTERPKERNEL_EXPORT bool completed() const { return false; }
+    INTERPKERNEL_EXPORT void declareOn() const { _ptr->declareOn(); }
+    INTERPKERNEL_EXPORT void declareIn() const { _ptr->declareIn(); }
+    INTERPKERNEL_EXPORT void declareOut() const { _ptr->declareOut(); }
+    INTERPKERNEL_EXPORT TypeOfEdgeLocInPolygon getLoc() const { return _ptr->getLoc(); }
+    INTERPKERNEL_EXPORT Edge *getPtr() const { return _ptr; }
+    INTERPKERNEL_EXPORT void reverse() { _direction=(!_direction); }
+    INTERPKERNEL_EXPORT bool isNodeIn(Node *n) const;
+    INTERPKERNEL_EXPORT double getAreaOfZone() const { double ret=_ptr->getAreaOfZone(); return _direction?ret:-ret; }
+    INTERPKERNEL_EXPORT void getBarycenterOfZone(double *bary) const;
+    INTERPKERNEL_EXPORT void fillBounds(Bounds& output) const;
+    INTERPKERNEL_EXPORT void applySimilarity(double xBary, double yBary, double dimChar) { _ptr->applySimilarity(xBary,yBary,dimChar); }
+    INTERPKERNEL_EXPORT void unApplySimilarity(double xBary, double yBary, double dimChar) { _ptr->unApplySimilarity(xBary,yBary,dimChar); }
+    INTERPKERNEL_EXPORT void getAllNodes(std::set<Node *>& output) const;
+    INTERPKERNEL_EXPORT void getBarycenter(double *bary, double& weigh) const;
+    INTERPKERNEL_EXPORT ElementaryEdge *clone() const;
+    INTERPKERNEL_EXPORT void initLocations() const;
+    INTERPKERNEL_EXPORT int size() const;
+    INTERPKERNEL_EXPORT TypeOfEdgeLocInPolygon locateFullyMySelfAbsolute(const ComposedEdge& pol) const;
+    INTERPKERNEL_EXPORT TypeOfEdgeLocInPolygon locateFullyMySelf(const ComposedEdge& pol, TypeOfEdgeLocInPolygon precEdgeLoc) const;
+    INTERPKERNEL_EXPORT Node *getEndNode() const;
+    INTERPKERNEL_EXPORT Node *getStartNode() const;
+    INTERPKERNEL_EXPORT double getCurveLength() const { return _ptr->getCurveLength(); }
+    INTERPKERNEL_EXPORT bool changeEndNodeWith(Node *node) const;
+    INTERPKERNEL_EXPORT bool changeStartNodeWith(Node *node) const;
+    INTERPKERNEL_EXPORT bool intresicEqual(const ElementaryEdge *other) const;
+    INTERPKERNEL_EXPORT bool intresicEqualDirSensitive(const ElementaryEdge *other) const;
+    INTERPKERNEL_EXPORT void dumpInXfigFile(std::ostream& stream, int resolution, const Bounds& box) const;
+    INTERPKERNEL_EXPORT bool getDirection() const { return _direction; }
+    INTERPKERNEL_EXPORT bool intresincEqCoarse(const Edge *other) const;
+    INTERPKERNEL_EXPORT bool isEqual(const ElementaryEdge& other) const;
   public:
-    void fillGlobalInfoAbs(const std::map<INTERP_KERNEL::Node *,int>& mapThis, const std::map<INTERP_KERNEL::Node *,int>& mapOther, int offset1, int offset2, double fact, double baryX, double baryY,
-                           std::vector<int>& edgesThis, std::vector<double>& addCoo, std::map<INTERP_KERNEL::Node *,int> mapAddCoo) const;
-    void fillGlobalInfoAbs2(const std::map<INTERP_KERNEL::Node *,int>& mapThis, const std::map<INTERP_KERNEL::Node *,int>& mapOther, int offset1, int offset2, double fact, double baryX, double baryY,
-                            std::vector<int>& edgesOther, std::vector<double>& addCoo, std::map<INTERP_KERNEL::Node *,int>& mapAddCoo) const;
-    static ElementaryEdge *BuildEdgeFromCrudeDataArray(bool direction, INTERP_KERNEL::Node *start, INTERP_KERNEL::Node *end);
+    INTERPKERNEL_EXPORT void fillGlobalInfoAbs(const std::map<INTERP_KERNEL::Node *,int>& mapThis, const std::map<INTERP_KERNEL::Node *,int>& mapOther, int offset1, int offset2, double fact, double baryX, double baryY,
+                                               std::vector<int>& edgesThis, std::vector<double>& addCoo, std::map<INTERP_KERNEL::Node *,int> mapAddCoo) const;
+    INTERPKERNEL_EXPORT void fillGlobalInfoAbs2(const std::map<INTERP_KERNEL::Node *,int>& mapThis, const std::map<INTERP_KERNEL::Node *,int>& mapOther, int offset1, int offset2, double fact, double baryX, double baryY,
+                                                std::vector<int>& edgesOther, std::vector<double>& addCoo, std::map<INTERP_KERNEL::Node *,int>& mapAddCoo) const;
+    INTERPKERNEL_EXPORT static ElementaryEdge *BuildEdgeFromCrudeDataArray(bool direction, INTERP_KERNEL::Node *start, INTERP_KERNEL::Node *end);
   private:
     bool _direction;
     Edge *_ptr;