TexGen
Simulation.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
23
24namespace TexGen
25{
26 using namespace std;
27
30 {
31 public:
32 CSimulation(void);
33 virtual ~CSimulation(void);
34
36 void ClearDeformationSteps();
37
39 void AddDeformationStep(const CLinearTransformation &Deformation);
40
42 const vector<CLinearTransformation> &GetDeformationSteps() const { return m_DeformationSteps; }
43
45 void SetDeformationSteps(const vector<CLinearTransformation> &DeformationSteps) { m_DeformationSteps = DeformationSteps; }
46
48
52 const CLinearTransformation &GetDeformation() const;
53
55
59 void SetDeformation(const CLinearTransformation &Deformation);
60
61 protected:
62 vector<CLinearTransformation> m_DeformationSteps;
63 };
64}; // namespace TexGen
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
#define CLASS_DECLSPEC
Definition: Misc.h:35
Represents a linear transformation as a 3x3 matrix.
Represents a textile cell containing yarns.
Definition: Simulation.h:30
vector< CLinearTransformation > m_DeformationSteps
Definition: Simulation.h:62
const vector< CLinearTransformation > & GetDeformationSteps() const
Get the list of deformation steps.
Definition: Simulation.h:42
void SetDeformationSteps(const vector< CLinearTransformation > &DeformationSteps)
Set the list of deformation steps.
Definition: Simulation.h:45
Namespace containing a series of customised math operations not found in the standard c++ library.