Computer Assited Medical Intervention Tool Kit  version 3.3
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Groups 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  StructuralComponentProperties(PhysicalModel *p, xmlNodePtr node) : BasicSCProperties(p, node) { init(); };
53  StructuralComponentProperties(PhysicalModel *p, const double * rgb) : BasicSCProperties(p, rgb) { init(); };
54  StructuralComponentProperties(PhysicalModel *p, const double * rgb, const std::string n) : BasicSCProperties(p, rgb,n) { init(); };
55  StructuralComponentProperties(PhysicalModel *p, const double r, const double g, const double b) : BasicSCProperties(p, r,g,b) { init(); };
56  StructuralComponentProperties(PhysicalModel *p, const double r, const double g, const double b, const std::string n) : BasicSCProperties(p,r,g,b,n
57 ) { init(); };
59 
61  void xmlPrint(std::ostream &);
62 
64  void setMyCustomProperty1(const int);
65  int getMyCustomProperty1() const;
66 
69 
70 
71 protected:
72 
73  virtual void init();
76 
77 };
78 
79 // inlines
84 
85 #endif
86 
std::string getMyCustomProperty2() const
Definition: StructuralComponentProperties.h:83
void xmlPrint(std::ostream &)
Print the properties in xml.
StructuralComponentProperties(PhysicalModel *p, const double r, const double g, const double b, const std::string n)
Definition: StructuralComponentProperties.h:56
int getMyCustomProperty1() const
Definition: StructuralComponentProperties.h:81
StructuralComponentProperties(PhysicalModel *p, const double *rgb, const std::string n)
Definition: StructuralComponentProperties.h:54
int myCustomProperty1
Definition: StructuralComponentProperties.h:74
StructuralComponentProperties(PhysicalModel *p, xmlNodePtr node)
Definition: StructuralComponentProperties.h:49
StructuralComponentProperties(PhysicalModel *p, const double r, const double g, const double b)
Definition: StructuralComponentProperties.h:55
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:52
std::string myCustomProperty2
Definition: StructuralComponentProperties.h:75
StructuralComponentProperties(PhysicalModel *p)
Constructors (do not change)
Definition: StructuralComponentProperties.h:48
StructuralComponentProperties(PhysicalModel *p, const double *rgb)
Definition: StructuralComponentProperties.h:53
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
void setMyCustomProperty2(const std::string)
Definition: StructuralComponentProperties.h:82
string(REGEX REPLACE"^.*-(.*)-.*""\\1"ARCH"${CAMITK_CONTINUOUS_INTEGRATION}") string(REGEX REPLACE"^.*-.*-(.*)""\\1"BUILDTYPE"$
Definition: continuous.cmake:34
StructuralComponentProperties(PhysicalModel *p, const Color c)
Definition: StructuralComponentProperties.h:51
StructuralComponentProperties(PhysicalModel *p, const std::string n)
Definition: StructuralComponentProperties.h:50
void setMyCustomProperty1(const int)
Set and get method for all the properties.
Definition: StructuralComponentProperties.h:80
Color
Default color settings.
Definition: BasicSCProperties.h:47