Changeset 12218 for issm/trunk-jpl/src/c/objects/Bamg/BamgQuadtree.h
- Timestamp:
- 05/07/12 10:54:06 (13 years ago)
- File:
-
- 1 moved
Legend:
- Unmodified
- Added
- Removed
-
issm/trunk-jpl/src/c/objects/Bamg/BamgQuadtree.h
r12216 r12218 1 /*Original code from Frederic Hecht <hecht@ann.jussieu.fr> (BAMG v1.01, QuadTree.h)*/1 /*Original code from Frederic Hecht <hecht@ann.jussieu.fr> (BAMG v1.01, BamgQuadtree.h)*/ 2 2 #ifndef _QUADTREE_H 3 3 #define _QUADTREE_H … … 12 12 class BamgVertex; 13 13 14 class QuadTree{14 class BamgQuadtree{ 15 15 16 16 private: … … 21 21 * - up to 4 vertices 22 22 * - 4 "sub" quadtree boxes*/ 23 class QuadTreeBox: public Object{23 class BamgQuadtreeBox: public Object{ 24 24 public: 25 25 int nbitems; // number of current vertices in the box 26 26 union{ 27 QuadTreeBox* b[4];27 BamgQuadtreeBox* b[4]; 28 28 BamgVertex* v[4]; 29 29 }; 30 30 /*Object functions*/ 31 void Echo(){_error_("not implemented yet");};32 void DeepEcho(){_error_("not implemented yet");};33 int Id(){_error_("not implemented yet");};34 int MyRank(){_error_("not implemented yet");};35 int ObjectEnum(){_error_("not implemented yet");};36 Object * copy(){_error_("not implemented yet");};31 void Echo() {_error_("not implemented yet"); }; 32 void DeepEcho() {_error_("not implemented yet"); }; 33 int Id() {_error_("not implemented yet"); }; 34 int MyRank() {_error_("not implemented yet"); }; 35 int ObjectEnum() {_error_("not implemented yet"); }; 36 Object *copy() {_error_("not implemented yet"); }; 37 37 }; 38 38 39 /* QuadTree private Fields*/39 /*BamgQuadtree private Fields*/ 40 40 DataSet* boxcontainer; 41 41 42 42 public: 43 43 44 /* QuadTree public Fields*/45 QuadTreeBox* root;46 long Nb QuadTreeBox;44 /*BamgQuadtree public Fields*/ 45 BamgQuadtreeBox* root; 46 long NbBamgQuadtreeBox; 47 47 long NbVertices; 48 48 49 QuadTree();50 QuadTree(Mesh *t,long nbv=-1);51 ~ QuadTree();49 BamgQuadtree(); 50 BamgQuadtree(Mesh *t,long nbv=-1); 51 ~BamgQuadtree(); 52 52 53 BamgVertex* NearestVertex(Icoor1 i,Icoor1 j); 54 BamgVertex* NearestVertexWithNormal(Icoor1 i,Icoor1 j); 55 QuadTreeBox* NewQuadTreeBox(void); 56 BamgVertex* ToClose(BamgVertex & ,double ,Icoor1,Icoor1); 57 void Add( BamgVertex & w); 58 53 BamgVertex *NearestVertex(Icoor1 i,Icoor1 j); 54 BamgVertex *NearestVertexWithNormal(Icoor1 i,Icoor1 j); 55 BamgQuadtreeBox *NewBamgQuadtreeBox(void); 56 BamgVertex *ToClose(BamgVertex &,double ,Icoor1,Icoor1); 57 void Add(BamgVertex &w); 59 58 }; 60 59 }
Note:
See TracChangeset
for help on using the changeset viewer.