TexGen
FibreDistribution.cpp
Go to the documentation of this file.
1/*=============================================================================
2TexGen: Geometric textile modeller.
3Copyright (C) 2006 Martin Sherburn
4
5This program is free software; you can redistribute it and/or
6modify it under the terms of the GNU General Public License
7as published by the Free Software Foundation; either version 2
8of the License, or (at your option) any later version.
9
10This program is distributed in the hope that it will be useful,
11but WITHOUT ANY WARRANTY; without even the implied warranty of
12MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
13GNU General Public License for more details.
14
15You should have received a copy of the GNU General Public License
16along with this program; if not, write to the Free Software
17Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
18=============================================================================*/
19
20#include "PrecompiledHeaders.h"
21#include "FibreDistribution.h"
22
23using namespace TexGen;
24
25CFibreDistribution::CFibreDistribution()
26{
27}
28
30{
31}
32
34{
35}
36
37void CFibreDistribution::PopulateTiXmlElement(TiXmlElement &Element, OUTPUT_TYPE OutputType) const
38{
39 Element.SetAttribute("type", GetType());
40}
41
42double CFibreDistribution::GetVolumeFraction(double dArea, double dFibreArea, int YarnIndex) const
43{
44 return -1.0;
45}
46
47
48
virtual string GetType() const =0
Derived class should return the class name.
virtual void PopulateTiXmlElement(TiXmlElement &Element, OUTPUT_TYPE OutputType) const
Used for saving data to XML.
virtual double GetVolumeFraction(const vector< XY > &Section, double dFibreArea, XY Location, int YarnIndex=-1) const =0
Get the volume fraction for a given location.
Namespace containing a series of customised math operations not found in the standard c++ library.
OUTPUT_TYPE
Definition: Misc.h:105