Computer Assited Medical Intervention Tool Kit  version 3.3
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Groups Pages
AtomProperties.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 ATOMPROPERTIES_H
27 #define ATOMPROPERTIES_H
28 
29 #include "BasicAtomProperties.h"
30 
46 public:
49  AtomProperties(PhysicalModel *p, xmlNodePtr node) : BasicAtomProperties(p, node) { init(); };
50  AtomProperties(PhysicalModel *p, const unsigned int ind) : BasicAtomProperties(p, ind) { init(); };
51  AtomProperties(PhysicalModel *p, const double pos[3]) : BasicAtomProperties(p, pos) { init(); };
52  AtomProperties(PhysicalModel *p, const unsigned int ind, const double pos[3]) : BasicAtomProperties(p, ind, pos) { init(); };
53  virtual ~AtomProperties();
54 
56  void xmlPrint(std::ostream &);
57 
59  void setMyCustomProperty1(const int);
60  int getMyCustomProperty1() const;
61 
64 
65 
66 protected:
67 
68  virtual void init();
71 
72 };
73 
74 // inlines
75 inline void AtomProperties::setMyCustomProperty1(const int value) { myCustomProperty1 = value; }
79 
80 #endif
81 
virtual ~AtomProperties()
AtomProperties(PhysicalModel *p, const double pos[3])
Definition: AtomProperties.h:51
void setMyCustomProperty2(const std::string)
Definition: AtomProperties.h:77
void xmlPrint(std::ostream &)
Print the properties in xml.
int myCustomProperty1
Definition: AtomProperties.h:69
std::string myCustomProperty2
Definition: AtomProperties.h:70
int getMyCustomProperty1() const
Definition: AtomProperties.h:76
AtomProperties(PhysicalModel *p)
Constructors (do not change)
Definition: AtomProperties.h:48
void setMyCustomProperty1(const int)
Set and get method for all the properties.
Definition: AtomProperties.h:75
This is an automatically generated class for custom Atom properties.
Definition: AtomProperties.h:45
AtomProperties(PhysicalModel *p, const unsigned int ind, const double pos[3])
Definition: AtomProperties.h:52
std::string getMyCustomProperty2() const
Definition: AtomProperties.h:78
This is the main class of this project.
Definition: PhysicalModel.h:74
virtual void init()
AtomProperties(PhysicalModel *p, const unsigned int ind)
Definition: AtomProperties.h:50
string(REGEX REPLACE"^.*-(.*)-.*""\\1"ARCH"${CAMITK_CONTINUOUS_INTEGRATION}") string(REGEX REPLACE"^.*-.*-(.*)""\\1"BUILDTYPE"$
Definition: continuous.cmake:34
This class is the basic Atom Properties class.
Definition: BasicAtomProperties.h:41
AtomProperties(PhysicalModel *p, xmlNodePtr node)
Definition: AtomProperties.h:49