39 virtual string GetType()
const {
return "CTextileLayered"; }
40 virtual void PopulateTiXmlElement(TiXmlElement &Element,
OUTPUT_TYPE OutputType);
41 string GetDefaultName()
const;
45 void SetOffsets( vector<XY> &Offsets );
47 void SetRelativeOffsets( vector<XY> &Offsets );
49 void SetOffsets(
XY &Offset );
50 const vector<XY> &
GetOffsets()
const {
return m_LayerOffset; }
56 void AddLayer( vector<CYarn> &Yarns,
XYZ& Offset );
64 void ApplyOffsets( vector<XY> &Offsets );
65 void ApplyLayerOffset(
XYZ &Offset,
int iLayer );
66 void GetOffsetMinDist(
int iOffset, vector< vector<pair<double,double> > >& LayerIntersections, vector<pair<int,double> >& MinDist,
int iNumX,
int iNumY);
67 void GetOffsetMinDist(
int x,
int y,
int iLayer, vector< vector<pair<double,double> > >& LayerIntersections, vector<pair<int,double> >& MinDist,
int iNumX,
int iNumY,
int XSize,
int YSize,
bool bOffsetTop);
68 int GetLayerMeshes( vector<CMesh>& LayerMeshes );
69 void GetLayerRepeats( vector< XY >& Repeats );
71 double GreatestCommonDenominator(
double X1,
double X2 );
Represents a textile cell containing yarns.
Represents a textile made up from several layers of weaves.
const vector< XY > & GetOffsets() const
const vector< vector< int > > GetLayerYarnIndices()
vector< XY > m_LayerOffset
vector< vector< int > > m_LayerYarnIndices
virtual CTextile * Copy() const
virtual string GetType() const
Derived class should return the class name.
Namespace containing a series of customised math operations not found in the standard c++ library.
Struct for representing points in 2D space.
Struct for representing points in 3D space.