XdmfGeometry.cpp 694 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 24 25 26 27
void XdmfGeometry::accept(boost::shared_ptr<XdmfVisitor> visitor) const
{
	visitor->visit(this, visitor);
}

28
XdmfGeometryType XdmfGeometry::getGeometryType() const
29
{
30
	return mGeometryType;
31 32
}

33
void XdmfGeometry::setGeometryType(const XdmfGeometryType & geometryType)
Ken Leiter (Civ's avatar
Ken Leiter (Civ committed
34
{
35
	mGeometryType = geometryType;
Ken Leiter (Civ's avatar
Ken Leiter (Civ committed
36
}