Computer Assisted Medical Intervention Tool Kit  version 5.2
Facet.h
Go to the documentation of this file.
1 /*****************************************************************************
2  * $CAMITK_LICENCE_BEGIN$
3  *
4  * CamiTK - Computer Assisted Medical Intervention ToolKit
5  * (c) 2001-2024 Univ. Grenoble Alpes, CNRS, Grenoble INP - UGA, TIMC, 38000 Grenoble, France
6  *
7  * Visit http://camitk.imag.fr for more information
8  *
9  * This file is part of CamiTK.
10  *
11  * CamiTK is free software: you can redistribute it and/or modify
12  * it under the terms of the GNU Lesser General Public License version 3
13  * only, as published by the Free Software Foundation.
14  *
15  * CamiTK is distributed in the hope that it will be useful,
16  * but WITHOUT ANY WARRANTY; without even the implied warranty of
17  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
18  * GNU Lesser General Public License version 3 for more details.
19  *
20  * You should have received a copy of the GNU Lesser General Public License
21  * version 3 along with CamiTK. If not, see <http://www.gnu.org/licenses/>.
22  *
23  * $CAMITK_LICENCE_END$
24  ****************************************************************************/
25 
26 #ifndef TOOLS_FACET_H
27 #define TOOLS_FACET_H
28 
29 #include "PhysicalModel.h"
38 class Facet {
39 public:
41  Facet(unsigned int size, unsigned int id[]);
42 
44  virtual ~Facet();
45 
47  bool testEquivalence(unsigned int size, unsigned int id[]);
48 
50  Cell* getCell(PhysicalModel*) const;
51 
53  void debug();
54 
56  unsigned int getUsed() const;
57 
58 private:
60  bool isIn(unsigned int) const;
61 
63  unsigned int* id;
64 
66  unsigned int size;
67 
69  unsigned int used;
70 };
71 
72 #endif // TOOLS_FACET_H
A cell has an unique index in the physical model object, is composed by atoms, and different basic pr...
Definition: Cell.h:46
Class facet to hold and compare facet This class is used for the extraction of external surface durin...
Definition: Facet.h:38
virtual ~Facet()
destructor
Definition: Facet.cpp:44
Cell * getCell(PhysicalModel *) const
return the corresponding PML cell
Definition: Facet.cpp:98
bool testEquivalence(unsigned int size, unsigned int id[])
if it is the same (equivalent) facet, increment used (return true if equivalence)
Definition: Facet.cpp:70
void debug()
print on stdout
Definition: Facet.cpp:49
unsigned int getUsed() const
get the number of time it is being used
Definition: Facet.cpp:128
Facet(unsigned int size, unsigned int id[])
create a facet using size nodes and their indexes
Definition: Facet.cpp:34
This is the main class of this project.
Definition: PhysicalModel.h:86