Computer Assited Medical Intervention Tool Kit  version 3.3
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Groups Pages
CellProperties.h
Go to the documentation of this file.
1 /*****************************************************************************
2  * $CAMITK_LICENCE_BEGIN$
3  *
4  * CamiTK - Computer Assisted Medical Intervention ToolKit
5  * (c) 2001-2014 UJF-Grenoble 1, CNRS, TIMC-IMAG UMR 5525 (GMCAO)
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 CELLPROPERTIES_H
27 #define CELLPROPERTIES_H
28 
29 #include "BasicCellProperties.h"
30 
45 public:
48  CellProperties(PhysicalModel *p, const StructureProperties::GeometricType t ,xmlNodePtr node) : BasicCellProperties(p, t, node) { init(); };
49  CellProperties(PhysicalModel *p, const StructureProperties::GeometricType t, const unsigned int ind) : BasicCellProperties(p, t, ind){ init(); };
50  virtual ~CellProperties();
51 
53  void xmlPrint(std::ostream &);
54 
56  void setMyCustomProperty1(const float);
57  float getMyCustomProperty1() const;
58 
59  void setMyCustomProperty2(const int);
60  int getMyCustomProperty2() const;
61 
62 
63 protected:
64 
65  virtual void init();
68 
69 };
70 
71 // inlines
72 inline void CellProperties::setMyCustomProperty1(const float value) { myCustomProperty1 = value; }
74 inline void CellProperties::setMyCustomProperty2(const int value) { myCustomProperty2 = value; }
76 
77 #endif
78 
CellProperties(PhysicalModel *p, const StructureProperties::GeometricType t)
Constructors (do not change)
Definition: CellProperties.h:47
CellProperties(PhysicalModel *p, const StructureProperties::GeometricType t, xmlNodePtr node)
Definition: CellProperties.h:48
virtual void init()
CellProperties(PhysicalModel *p, const StructureProperties::GeometricType t, const unsigned int ind)
Definition: CellProperties.h:49
void setMyCustomProperty2(const int)
Definition: CellProperties.h:74
int myCustomProperty2
Definition: CellProperties.h:67
float getMyCustomProperty1() const
Definition: CellProperties.h:73
float myCustomProperty1
Definition: CellProperties.h:66
int getMyCustomProperty2() const
Definition: CellProperties.h:75
Describes the properties common to all cells.
Definition: BasicCellProperties.h:37
void xmlPrint(std::ostream &)
Print the properties in xml.
This is the main class of this project.
Definition: PhysicalModel.h:74
virtual ~CellProperties()
void setMyCustomProperty1(const float)
Set and get method for all the properties.
Definition: CellProperties.h:72
GeometricType
Geometric type gives information about which kind of geometric representation is the structure...
Definition: StructureProperties.h:107
This is an automatically generated class for custom Cell properties.
Definition: CellProperties.h:44