XdmfGeometry.cpp 928 Bytes
Newer Older
Ken Leiter (Civ's avatar
Ken Leiter (Civ committed
1
/*
2
 * XdmfGeometry.cpp
Ken Leiter (Civ's avatar
Ken Leiter (Civ committed
3 4 5 6 7 8
 *
 *  Created on: Jan 29, 2010
 *      Author: kleiter
 */

#include "XdmfGeometry.hpp"
9
#include "XdmfVisitor.hpp"
Ken Leiter (Civ's avatar
Ken Leiter (Civ committed
10

11
XdmfGeometry::XdmfGeometry() :
12 13
	mGeometryType(XdmfGeometryType::NoGeometryType()),
	mNumberPoints(0)
14
{
15 16
	std::cout << "Created Geometry " << this << std::endl;
}
17

18 19 20
XdmfGeometry::~XdmfGeometry()
{
	std::cout << "Deleted Geometry " << this << std::endl;
21 22
}

23
XdmfGeometryType XdmfGeometry::getGeometryType() const
24
{
25
	return mGeometryType;
26 27 28 29
}

void XdmfGeometry::setGeometryType(const XdmfGeometryType& geomType)
{
30
	mGeometryType = geomType;
31 32
}

33
std::string XdmfGeometry::getGeometryTypeAsString() const
34
{
35
	return mGeometryType.getName();
36 37
}

38
int XdmfGeometry::getDimensions() const
39
{
40
	return mGeometryType.getDimensions();
41 42
}

43
std::string XdmfGeometry::printSelf() const
Ken Leiter (Civ's avatar
Ken Leiter (Civ committed
44 45 46
{
	return "XdmfGeometry";
}
47 48 49 50 51

void XdmfGeometry::write(boost::shared_ptr<XdmfVisitor> visitor) const
{
	visitor->visit(this);
}