msbGrid  1.0
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Pages
quadrangle.hh
Go to the documentation of this file.
1 /*****************************************************************************
2 * This program is part of the msbGrid software *
3 * *
4 * msbGrid stands for multi-structured block Grid generator *
5 * *
6 * msbGrid is a free software: you can redistribute it and/or modify *
7 * it under the terms of the GNU General Public License as published by *
8 * the Free Software Foundation, either version 2 of the License, or *
9 * (at your option) any later version. *
10 * *
11 * msbGrid is distributed in the hope that it will be useful, *
12 * but WITHOUT ANY WARRANTY; without even the implied warranty of *
13 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the *
14 * GNU General Public License for more details. *
15 * *
16 * See the file COPYING for full copying permissions. *
17 *****************************************************************************/
23 #ifndef _QUADRANGLE_HH_
24 #define _QUADRANGLE_HH_
25 
26 #include <polygon.hh>
27 
28 namespace msbGrid
29 {
30 class Quadrangle;
31 }
32 
33 class msbGrid :: Quadrangle : public msbGrid :: Polygon< 4 >
34 {
35 public:
37 
39  enum { dim = ParentT :: dim };
40 
43 
44  Quadrangle(const std :: vector< Edge * > vEd0) : ParentT(vEd0)
45  {}
46 
48 
49  void infos(const std :: string &name0 = "")
50  {
51  std :: cout << "# quadrangle " << name0 << " ";
52 
53  std :: cout << ": color = " << colorName( this->color() )
54  << " , Id = " << this->Id()
55  << " , mark = " << this->mark()
56  << " , onBlockBoundary = " << this->onBlockBoundary() << "\n";
57 
58  for ( int i = 0; i < this->verticesNumber_; ++i ) {
59  this->vPt() [ i ]->infos();
60  }
61 
62  std :: cout << "\n";
63  }
64 };
65 
66 #endif /* #ifndef _QUADRANGLE_HH_ */