TexGen
Core
TextileDecoupledLToL.h
Go to the documentation of this file.
1
/*=============================================================================
2
TexGen: Geometric textile modeller.
3
Copyright (C) 2021 Louise Brown
4
This program is free software; you can redistribute it and/or
5
modify it under the terms of the GNU General Public License
6
as published by the Free Software Foundation; either version 2
7
of the License, or (at your option) any later version.
8
9
This program is distributed in the hope that it will be useful,
10
but WITHOUT ANY WARRANTY; without even the implied warranty of
11
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
12
GNU General Public License for more details.
13
14
You should have received a copy of the GNU General Public License
15
along with this program; if not, write to the Free Software
16
Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
17
=============================================================================*/
18
19
20
#pragma once
21
#include "
TextileLayerToLayer.h
"
22
#include "
Textile3DWeave.h
"
23
#include "
SectionPowerEllipse.h
"
24
25
namespace
TexGen
26
{
27
using namespace
std;
28
29
32
class
CLASS_DECLSPEC
CTextileDecoupledLToL
:
public
CTextileLayerToLayer
33
{
34
public
:
35
37
46
CTextileDecoupledLToL
(
int
iNumXYarns,
int
iNumYYarns,
double
dXSpacing,
double
dYSpacing,
47
double
dXHeight,
double
dYHeight,
int
iNumBinderLayers,
bool
bShapeBinders =
true
);
48
CTextileDecoupledLToL
(TiXmlElement &Element);
49
virtual
~CTextileDecoupledLToL
(
void
);
50
51
virtual
CTextile
*
Copy
()
const
{
return
new
CTextileDecoupledLToL
(*
this
); }
52
virtual
string
GetType
()
const
{
return
"CTextileDecoupledLToL"
; }
53
virtual
void
PopulateTiXmlElement(TiXmlElement &Element,
OUTPUT_TYPE
OutputType);
54
56
58
void
SetBinderPosition(
int
x,
int
y, vector<int> zOffsets);
60
void
ShapeBinderYarns()
const
;
62
void
CheckUpVectors()
const
;
64
68
int
FindBinderHeight(
const
vector<PATTERN3D>& Cell,
int
Height)
const
;
69
71
bool
BuildTextile()
const
;
72
73
protected
:
74
75
};
76
};
// namespace TexGen
CLASS_DECLSPEC
#define CLASS_DECLSPEC
Definition:
Misc.h:35
SectionPowerEllipse.h
Textile3DWeave.h
TextileLayerToLayer.h
TexGen::CTextileDecoupledLToL
Definition:
TextileDecoupledLToL.h:33
TexGen::CTextileDecoupledLToL::GetType
virtual string GetType() const
Derived class should return the class name.
Definition:
TextileDecoupledLToL.h:52
TexGen::CTextileDecoupledLToL::Copy
virtual CTextile * Copy() const
Definition:
TextileDecoupledLToL.h:51
TexGen::CTextile
Represents a textile cell containing yarns.
Definition:
Textile.h:39
TexGen::CTextileLayerToLayer
Definition:
TextileLayerToLayer.h:31
TexGen
Namespace containing a series of customised math operations not found in the standard c++ library.
Definition:
AdjustMeshInterference.h:27
TexGen::OUTPUT_TYPE
OUTPUT_TYPE
Definition:
Misc.h:105
Generated by
1.9.2