TexGen
Public Member Functions | Protected Attributes | List of all members
TexGen::CSimulation Class Reference

Represents a textile cell containing yarns. More...

#include <Simulation.h>

Inheritance diagram for TexGen::CSimulation:
Inheritance graph
[legend]

Public Member Functions

 CSimulation (void)
 
virtual ~CSimulation (void)
 
void ClearDeformationSteps ()
 Clear all deformation steps. More...
 
void AddDeformationStep (const CLinearTransformation &Deformation)
 Add a deformation step. More...
 
const vector< CLinearTransformation > & GetDeformationSteps () const
 Get the list of deformation steps. More...
 
void SetDeformationSteps (const vector< CLinearTransformation > &DeformationSteps)
 Set the list of deformation steps. More...
 
const CLinearTransformationGetDeformation () const
 Return the final deformation in the series or identity if none exist. More...
 
void SetDeformation (const CLinearTransformation &Deformation)
 Set the deformation, this will clear all existing deformations. More...
 

Protected Attributes

vector< CLinearTransformationm_DeformationSteps
 

Detailed Description

Represents a textile cell containing yarns.

Definition at line 29 of file Simulation.h.

Constructor & Destructor Documentation

◆ CSimulation()

CSimulation::CSimulation ( void  )

Definition at line 25 of file Simulation.cpp.

◆ ~CSimulation()

CSimulation::~CSimulation ( void  )
virtual

Definition at line 29 of file Simulation.cpp.

Member Function Documentation

◆ AddDeformationStep()

void CSimulation::AddDeformationStep ( const CLinearTransformation Deformation)

Add a deformation step.

Definition at line 52 of file Simulation.cpp.

References m_DeformationSteps.

Referenced by SetDeformation().

◆ ClearDeformationSteps()

void CSimulation::ClearDeformationSteps ( )

Clear all deformation steps.

Definition at line 47 of file Simulation.cpp.

References m_DeformationSteps.

Referenced by SetDeformation().

◆ GetDeformation()

const CLinearTransformation & CSimulation::GetDeformation ( ) const

Return the final deformation in the series or identity if none exist.

This function is useful if the simulation consists of a single deformation step otherwise use GetDeformationSteps.

Definition at line 33 of file Simulation.cpp.

References m_DeformationSteps.

◆ GetDeformationSteps()

const vector< CLinearTransformation > & TexGen::CSimulation::GetDeformationSteps ( ) const
inline

Get the list of deformation steps.

Definition at line 42 of file Simulation.h.

◆ SetDeformation()

void CSimulation::SetDeformation ( const CLinearTransformation Deformation)

Set the deformation, this will clear all existing deformations.

This function is useful if the simulation consists of a single deformation step otherwise use AddDeformationStep or SetDeformationSteps.

Definition at line 41 of file Simulation.cpp.

References AddDeformationStep(), and ClearDeformationSteps().

◆ SetDeformationSteps()

void TexGen::CSimulation::SetDeformationSteps ( const vector< CLinearTransformation > &  DeformationSteps)
inline

Set the list of deformation steps.

Definition at line 45 of file Simulation.h.

Member Data Documentation

◆ m_DeformationSteps

vector<CLinearTransformation> TexGen::CSimulation::m_DeformationSteps
protected

The documentation for this class was generated from the following files: