]> SALOME platform Git repositories - modules/hexablock.git/blob - src/HEXABLOCK/HexVertexShape.hxx
Salome HOME
Undef max Visual Studio definition.
[modules/hexablock.git] / src / HEXABLOCK / HexVertexShape.hxx
1
2 // class : Gestion des Sous-shapes categorie Vertex
3
4 #ifndef __NODE_SHAPE_H_
5 #define __NODE_SHAPE_H_
6
7 #include "Hex_defines.hxx"
8 #include "HexSubShape.hxx"
9
10 BEGIN_NAMESPACE_HEXA
11
12 class HEXABLOCKENGINE_EXPORT VertexShape : public SubShape
13 {
14 public :
15     VertexShape (NewShape* dad, int id);
16     VertexShape (NewShape* dad, int id, double* point);
17
18     void    addAssociation   (Vertex* elt);
19     int     countAssociation ()                { return tab_assoc.size(); }
20     Vertex* getAssociation   (int nro);
21
22     void getCoords (double& px, double& py, double& pz);
23     void saveXml (XmlWriter* xml);
24
25     virtual const TopoDS_Shape& getShape(); // #mbarry
26
27 private :
28     void updateCoords ();
29
30 private :
31     Real3  ss_coord;   // Pour les vertex
32     bool   maj_coords;
33     bool   free_point;
34     vector <Vertex*> tab_assoc;
35 };
36 END_NAMESPACE_HEXA
37 #endif