TexGen
PropertiesTextile.h
Go to the documentation of this file.
1/*=============================================================================
2TexGen: Geometric textile modeller.
3Copyright (C) 2006 Martin Sherburn
4
5This program is free software; you can redistribute it and/or
6modify it under the terms of the GNU General Public License
7as published by the Free Software Foundation; either version 2
8of the License, or (at your option) any later version.
9
10This program is distributed in the hope that it will be useful,
11but WITHOUT ANY WARRANTY; without even the implied warranty of
12MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
13GNU General Public License for more details.
14
15You should have received a copy of the GNU General Public License
16along with this program; if not, write to the Free Software
17Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
18=============================================================================*/
19
20#pragma once
21
22#include "Properties.h"
23
24namespace TexGen
25{
26 using namespace std;
27
29
37 {
38 public:
40 CPropertiesTextile(TiXmlElement &Element);
42
44 virtual void PopulateTiXmlElement(TiXmlElement &Element, OUTPUT_TYPE OutputType);
45
47
51 bool SetGeometryScale(string Units);
52
54 void SetArealDensity(double dValue, string Units = "kg/m^2");
55
56 void ResetArealDensity() { m_ArealDensity.Reset(); }
58 void SetMatrixYoungsModulus( double dValue, string Units = "MPa");
59
61 void SetMatrixPoissonsRatio( double dValue );
62
64 void SetMatrixAlpha( double dValue );
65
66 string GetGeometryScale() const;
67 double GetArealDensity(string Units = "kg/m^2") const;
68
69 double GetMatrixYoungsModulus(string Units = "MPa") const;
70 double GetMatrixPoissonsRatio() const;
71 double GetMatrixAlpha() const;
72
75 //CProperty m_MatrixAlpha;
76
77 protected:
81
83 void SetDefaultMatrixProperties();
84 };
85}; // namespace TexGen
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
#define CLASS_DECLSPEC
Definition: Misc.h:35
Class to store properties related to a textile and/or yarn.
Definition: Properties.h:102
Class to store properties related to a textile.
Namespace containing a series of customised math operations not found in the standard c++ library.
OUTPUT_TYPE
Definition: Misc.h:105