Salome HOME
Porting HEXABLOCK module on WIN32 platform.
[modules/hexablock.git] / src / HEXABLOCK / HexNewShape.hxx
index 935cc7a314384d15530503901acf79bea6f1a164..3c1a17e293bbc2505a72706b6aef9e3f44a9d40b 100644 (file)
@@ -1,31 +1,13 @@
 
 // class : Gestion des formes associees (Hexa 5)
 
-// Copyright (C) 2009-2013  CEA/DEN, EDF R&D
-//
-// This library is free software; you can redistribute it and/or
-// modify it under the terms of the GNU Lesser General Public
-// License as published by the Free Software Foundation; either
-// version 2.1 of the License.
-//
-// This library is distributed in the hope that it will be useful,
-// but WITHOUT ANY WARRANTY; without even the implied warranty of
-// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
-// Lesser General Public License for more details.
-//
-// You should have received a copy of the GNU Lesser General Public
-// License along with this library; if not, write to the Free Software
-// Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307 USA
-//
-// See http://www.salome-platform.org/ or email : webmaster.salome@opencascade.com
-//
-
 #ifndef __NEW_SHAPE_H_
 #define __NEW_SHAPE_H_
 
+#include "Hex_defines.hxx"
 #include "HexEltBase.hxx"
 
-#ifndef NO_CASCADE
+#ifndef SWIG
 #include <TopTools_IndexedMapOfShape.hxx>
 #include <TopoDS_Shape.hxx>
 #include <TopoDS_Compound.hxx>
@@ -34,7 +16,7 @@
 
 BEGIN_NAMESPACE_HEXA
 
-class NewShape : public EltBase
+class HEXABLOCKENGINE_EXPORT NewShape : public EltBase
 {
 public :         // for TUI
    virtual int countVertex ()   { return tab_vertex.size ();  }
@@ -49,17 +31,19 @@ public :         // for TUI
    cpchar getNameEdge    (int nro);
    cpchar getNameFace    (int nro);
 
+   NewShape (Document* dad, EnumShape type=SH_NONE);
+
+#ifndef SWIG
+public :         // for GUI
    const string&       getBrep ();
    const TopoDS_Shape& getShape ();
 
-public :         // for GUI
    EnumShape    getOrigin ()        { return sh_origin ; }
    VertexShape* getVertexShape (int nro);
    EdgeShape*   getEdgeShape (int nro);
    FaceShape*   getFaceShape (int nro);
 
 public :         // for Others
-   NewShape (Document* dad, EnumShape type=SH_NONE);
    void  setShape (const TopoDS_Shape& shape, EnumShape type=SH_IMPORT);
    void  setBrep  (rcstring brep);
    int   addPoint (double* coord);
@@ -81,6 +65,8 @@ public :         // for Others
    void openShape ();
    int  addCircle (double* center, double rad, double* norm, double* base);
    int  addSphere (double* center, double radius);
+   int  transfoShape   (Matrix& matrix, SubShape* shape);
+   int  translateShape (double  dir[],  SubShape* shape);
    void closeShape();
 
 private :
@@ -120,6 +106,7 @@ private :     // ________________________________________________________
    int sh_face_max;
    int sh_edge_max;
    int sh_vertex_max;
+#endif
 };
 END_NAMESPACE_HEXA
 #endif