TexGen
TextileDecoupledLToL.h
Go to the documentation of this file.
1/*=============================================================================
2TexGen: Geometric textile modeller.
3Copyright (C) 2021 Louise Brown
4This program is free software; you can redistribute it and/or
5modify it under the terms of the GNU General Public License
6as published by the Free Software Foundation; either version 2
7of the License, or (at your option) any later version.
8
9This program is distributed in the hope that it will be useful,
10but WITHOUT ANY WARRANTY; without even the implied warranty of
11MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
12GNU General Public License for more details.
13
14You should have received a copy of the GNU General Public License
15along with this program; if not, write to the Free Software
16Foundation, 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
25namespace TexGen
26{
27 using namespace std;
28
29
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
#define CLASS_DECLSPEC
Definition: Misc.h:35
virtual string GetType() const
Derived class should return the class name.
virtual CTextile * Copy() const
Represents a textile cell containing yarns.
Definition: Textile.h:39
Namespace containing a series of customised math operations not found in the standard c++ library.
OUTPUT_TYPE
Definition: Misc.h:105