TexGen
Core
Property.h
Go to the documentation of this file.
1
/*=============================================================================
2
TexGen: Geometric textile modeller.
3
Copyright (C) 2006 Martin Sherburn
4
5
This program is free software; you can redistribute it and/or
6
modify it under the terms of the GNU General Public License
7
as published by the Free Software Foundation; either version 2
8
of the License, or (at your option) any later version.
9
10
This program is distributed in the hope that it will be useful,
11
but WITHOUT ANY WARRANTY; without even the implied warranty of
12
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
13
GNU General Public License for more details.
14
15
You should have received a copy of the GNU General Public License
16
along with this program; if not, write to the Free Software
17
Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
18
=============================================================================*/
19
20
#pragma once
21
22
namespace
TexGen
23
{
24
using namespace
std;
25
26
class
CLASS_DECLSPEC
CProperty
27
{
28
public
:
29
CProperty
(
string
SIUnits);
30
31
void
WriteAttribute(TiXmlElement &Element,
string
AttributeName);
32
void
ReadAttribute(TiXmlElement &Element,
string
AttributeName);
33
34
string
GetString()
const
;
35
double
GetValue(
string
Units)
const
;
36
double
GetSIValue()
const
;
37
void
SetValue(
double
dValue,
string
Units);
38
void
SetValue(
double
dValue );
39
void
SetUnits(
string
Units );
40
void
Reset();
41
42
double
GetValue()
const
;
43
string
GetUnits()
const
;
44
string
GetSIUnits()
const
;
45
bool
IsSet()
const
;
46
47
protected
:
48
double
m_dValue
;
49
string
m_Units
;
50
string
m_SIUnits
;
51
bool
m_bSet
;
52
};
53
};
// namespace TexGen
54
55
56
57
58
59
60
61
CLASS_DECLSPEC
#define CLASS_DECLSPEC
Definition:
Misc.h:35
TexGen::CProperty
Definition:
Property.h:27
TexGen::CProperty::m_dValue
double m_dValue
Definition:
Property.h:48
TexGen::CProperty::m_Units
string m_Units
Definition:
Property.h:49
TexGen::CProperty::m_SIUnits
string m_SIUnits
Definition:
Property.h:50
TexGen::CProperty::m_bSet
bool m_bSet
Definition:
Property.h:51
TexGen
Namespace containing a series of customised math operations not found in the standard c++ library.
Definition:
AdjustMeshInterference.h:27
Generated by
1.9.2