TexGen
|
Creates a section which is constant all along the yarn. More...
#include <YarnSectionConstant.h>
Public Member Functions | |
CYarnSectionConstant (const CSection &Section) | |
CYarnSectionConstant (TiXmlElement &Element) | |
~CYarnSectionConstant (void) | |
CYarnSection * | Copy () const |
This is a function to allow copying of derived classes correctly. More... | |
string | GetType () const |
Derived class should return the class name. More... | |
void | PopulateTiXmlElement (TiXmlElement &Element, OUTPUT_TYPE OutputType) const |
Used for saving data to XML. More... | |
vector< XY > | GetSection (const YARN_POSITION_INFORMATION PositionInfo, int iNumPoints, bool bEquiSpaced=false) const |
This function must be implemented by derived classes. More... | |
CMesh | GetSectionMesh (const YARN_POSITION_INFORMATION PositionInfo, int iNumPoints, bool bEquiSpaced) const |
This function must be implemented by derived classes. More... | |
const CSection & | GetSection () const |
virtual void | SetSectionMeshLayersEqual (int iNumPoints) const |
Find max value for iNumLayers in section meshes and set iNumLayers to that value. More... | |
bool | GetForceMeshLayers () const |
CYarnSectionConstant * | GetSectionConstant () |
Get a pointer of that the inherited class. More... | |
CYarnSectionInterpNode * | GetSectionInterpNode () |
CYarnSectionInterpPosition * | GetSectionInterpPosition () |
Static Public Member Functions | |
static CObjectContainer< CYarnSection > | CreateYarnSection (TiXmlElement &Element) |
Create a yarn section from TiXmlElement. More... | |
Public Attributes | |
bool | m_bForceEqualMeshLayers |
Protected Attributes | |
CObjectContainer< CSection > | m_pSection |
Creates a section which is constant all along the yarn.
Definition at line 27 of file YarnSectionConstant.h.
CYarnSectionConstant::CYarnSectionConstant | ( | const CSection & | Section | ) |
Definition at line 26 of file YarnSectionConstant.cpp.
CYarnSectionConstant::CYarnSectionConstant | ( | TiXmlElement & | Element | ) |
Definition at line 36 of file YarnSectionConstant.cpp.
References TexGen::CSection::CreateSection(), and m_pSection.
CYarnSectionConstant::~CYarnSectionConstant | ( | void | ) |
Definition at line 32 of file YarnSectionConstant.cpp.
|
inlinevirtual |
This is a function to allow copying of derived classes correctly.
Derived classes should implement this as CYarnSection* Copy() const { return new CYarnSectionDerived(*this); } where CYarnSectionDerived should be replaced by the name of the derived class
Implements TexGen::CYarnSection.
Definition at line 34 of file YarnSectionConstant.h.
|
staticinherited |
Create a yarn section from TiXmlElement.
Definition at line 49 of file YarnSection.cpp.
Referenced by TexGen::CYarn::CYarn(), and TexGen::CYarnSectionAdjusted::CYarnSectionAdjusted().
|
inlineinherited |
Definition at line 99 of file YarnSection.h.
|
inline |
Definition at line 42 of file YarnSectionConstant.h.
|
virtual |
This function must be implemented by derived classes.
PositionInfo | Structure which contains information about the position along the yarn |
iNumPoints | Number of points on the perimeter of the section to return |
bEquiSpaced | Create the points such that they are all equispaced or not |
Implements TexGen::CYarnSection.
Definition at line 55 of file YarnSectionConstant.cpp.
References m_pSection.
Referenced by TexGen::CYarn::ConvertToInterpNodes(), TexGen::CTextile3DWeave::GetCrossSection(), and TexGen::CTextile3DWeave::GetWeftCrossSection().
|
inherited |
Get a pointer of that the inherited class.
Internally the function just returns dynamic_cast<CYarnSectionConstant*>(this) etc This is mainly useful in the python interface because type casting is not supported in this language.
Definition at line 91 of file YarnSection.cpp.
|
inherited |
Definition at line 96 of file YarnSection.cpp.
|
inherited |
Definition at line 100 of file YarnSection.cpp.
|
virtual |
This function must be implemented by derived classes.
PositionInfo | Structure which contains information about the position along the yarn |
iNumPoints | Number of points on the perimeter of the section to return |
bEquiSpaced | Create the points such that they are all equispaced or not |
Implements TexGen::CYarnSection.
Definition at line 61 of file YarnSectionConstant.cpp.
References m_pSection.
|
inlinevirtual |
Derived class should return the class name.
Implements TexGen::CYarnSection.
Definition at line 35 of file YarnSectionConstant.h.
|
virtual |
Used for saving data to XML.
Reimplemented from TexGen::CYarnSection.
Definition at line 46 of file YarnSectionConstant.cpp.
References m_pSection, and TexGen::CYarnSection::PopulateTiXmlElement().
|
inlinevirtualinherited |
Find max value for iNumLayers in section meshes and set iNumLayers to that value.
Reimplemented in TexGen::CYarnSectionInterpNode, and TexGen::CYarnSectionInterpPosition.
Definition at line 97 of file YarnSection.h.
|
inherited |
Definition at line 63 of file YarnSection.h.
Referenced by TexGen::CYarnSection::CYarnSection(), and TexGen::CYarnSection::PopulateTiXmlElement().
|
protected |
Definition at line 45 of file YarnSectionConstant.h.
Referenced by CYarnSectionConstant(), GetSection(), GetSectionMesh(), and PopulateTiXmlElement().