Computer Assited Medical Intervention Tool Kit  version 3.4
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Modules Pages
StructuralComponentProperties.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 STRUCTURALCOMPONENTPROPERTIES_H
27 #define STRUCTURALCOMPONENTPROPERTIES_H
28 
29 #include "BasicSCProperties.h"
30 
46 public:
49  init();
50  };
52  init();
53  };
55  init();
56  };
58  init();
59  };
60  StructuralComponentProperties(PhysicalModel *p, const Color c, const std::string n) : BasicSCProperties(p,c,n) {
61  init();
62  };
64  init();
65  };
66  StructuralComponentProperties(PhysicalModel *p, const double * rgb, const std::string n) : BasicSCProperties(p, rgb,n) {
67  init();
68  };
69  StructuralComponentProperties(PhysicalModel *p, const double r, const double g, const double b) : BasicSCProperties(p, r,g,b) {
70  init();
71  };
72  StructuralComponentProperties(PhysicalModel *p, const double r, const double g, const double b, const std::string n) : BasicSCProperties(p,r,g,b,n
73  ) {
74  init();
75  };
77 
79  void xmlPrint(std::ostream &);
80 
82  void setMyCustomProperty1(const int);
83  int getMyCustomProperty1() const;
84 
85  void setMyCustomProperty2(const std::string);
86  std::string getMyCustomProperty2() const;
87 
88 
89 protected:
90 
91  virtual void init();
93  std::string myCustomProperty2;
94 
95 };
96 
97 // inlines
99  myCustomProperty1 = value;
100 }
102  return myCustomProperty1;
103 }
104 inline void StructuralComponentProperties::setMyCustomProperty2(const std::string value) {
105  myCustomProperty2 = value;
106 }
108  return myCustomProperty2;
109 }
110 
111 #endif
112 
std::string getMyCustomProperty2() const
Definition: StructuralComponentProperties.h:107
void xmlPrint(std::ostream &)
Print the properties in xml.
Definition: StructuralComponentProperties.cpp:41
StructuralComponentProperties(PhysicalModel *p, const double r, const double g, const double b, const std::string n)
Definition: StructuralComponentProperties.h:72
int getMyCustomProperty1() const
Definition: StructuralComponentProperties.h:101
StructuralComponentProperties(PhysicalModel *p, const double *rgb, const std::string n)
Definition: StructuralComponentProperties.h:66
int myCustomProperty1
Definition: StructuralComponentProperties.h:92
StructuralComponentProperties(PhysicalModel *p, xmlNodePtr node)
Definition: StructuralComponentProperties.h:51
virtual ~StructuralComponentProperties()
Definition: StructuralComponentProperties.cpp:37
StructuralComponentProperties(PhysicalModel *p, const double r, const double g, const double b)
Definition: StructuralComponentProperties.h:69
Color
Default color settings.
Definition: BasicSCProperties.h:47
A special class to manage the basic structural component properties.
Definition: BasicSCProperties.h:42
StructuralComponentProperties(PhysicalModel *p, const Color c, const std::string n)
Definition: StructuralComponentProperties.h:60
std::string myCustomProperty2
Definition: StructuralComponentProperties.h:93
StructuralComponentProperties(PhysicalModel *p)
Constructors (do not change)
Definition: StructuralComponentProperties.h:48
StructuralComponentProperties(PhysicalModel *p, const double *rgb)
Definition: StructuralComponentProperties.h:63
Cell * c
Definition: pml2wrl.cpp:42
This is an automatically generated class for custom StructuralComponent properties.
Definition: StructuralComponentProperties.h:45
This is the main class of this project.
Definition: PhysicalModel.h:74
virtual void init()
Definition: StructuralComponentProperties.cpp:30
void setMyCustomProperty2(const std::string)
Definition: StructuralComponentProperties.h:104
StructuralComponentProperties(PhysicalModel *p, const Color c)
Definition: StructuralComponentProperties.h:57
StructuralComponentProperties(PhysicalModel *p, const std::string n)
Definition: StructuralComponentProperties.h:54
void setMyCustomProperty1(const int)
Set and get method for all the properties.
Definition: StructuralComponentProperties.h:98