Computer Assited Medical Intervention Tool Kit  version 3.4
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Modules 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  init();
49  };
51  init();
52  };
53  CellProperties(PhysicalModel *p, const StructureProperties::GeometricType t, const unsigned int ind) : BasicCellProperties(p, t, ind) {
54  init();
55  };
56  virtual ~CellProperties();
57 
59  void xmlPrint(std::ostream &);
60 
62  void setMyCustomProperty1(const float);
63  float getMyCustomProperty1() const;
64 
65  void setMyCustomProperty2(const int);
66  int getMyCustomProperty2() const;
67 
68 
69 protected:
70 
71  virtual void init();
74 
75 };
76 
77 // inlines
78 inline void CellProperties::setMyCustomProperty1(const float value) {
79  myCustomProperty1 = value;
80 }
82  return myCustomProperty1;
83 }
84 inline void CellProperties::setMyCustomProperty2(const int value) {
85  myCustomProperty2 = value;
86 }
88  return myCustomProperty2;
89 }
90 
91 #endif
92 
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:50
CellProperties(PhysicalModel *p, const StructureProperties::GeometricType t, const unsigned int ind)
Definition: CellProperties.h:53
void setMyCustomProperty2(const int)
Definition: CellProperties.h:84
int myCustomProperty2
Definition: CellProperties.h:73
float getMyCustomProperty1() const
Definition: CellProperties.h:81
float myCustomProperty1
Definition: CellProperties.h:72
GeometricType
Geometric type gives information about which kind of geometric representation is the structure...
Definition: StructureProperties.h:107
virtual ~CellProperties()
Definition: CellProperties.cpp:37
int getMyCustomProperty2() const
Definition: CellProperties.h:87
Describes the properties common to all cells.
Definition: BasicCellProperties.h:37
void xmlPrint(std::ostream &)
Print the properties in xml.
Definition: CellProperties.cpp:41
This is the main class of this project.
Definition: PhysicalModel.h:74
virtual void init()
Definition: CellProperties.cpp:30
void setMyCustomProperty1(const float)
Set and get method for all the properties.
Definition: CellProperties.h:78
This is an automatically generated class for custom Cell properties.
Definition: CellProperties.h:44