Salome HOME
Merge from V6_main 13/12/2012
[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 "HexSubShape.hxx"
8
9 BEGIN_NAMESPACE_HEXA
10
11 class VertexShape : public SubShape
12 {
13 public :
14     VertexShape (NewShape* dad, int id);
15     VertexShape (NewShape* dad, int id, double* point);
16
17     void    addAssociation   (Vertex* elt);
18     int     countAssociation ()                { return tab_assoc.size(); }
19     Vertex* getAssociation   (int nro);
20
21     void getCoords (double& px, double& py, double& pz);
22     void saveXml (XmlWriter* xml);
23
24 private :
25     void updateCoords ();
26
27 private :
28     Real3  ss_coord;   // Pour les vertex
29     bool   maj_coords;
30     bool   free_point;
31     vector <Vertex*> tab_assoc;
32 };
33 END_NAMESPACE_HEXA
34 #endif