XdmfGeometry.hpp 1.23 KB
Newer Older
Ken Leiter (Civ's avatar
Ken Leiter (Civ committed
1 2 3
#ifndef XDMFGEOMETRY_HPP_
#define XDMFGEOMETRY_HPP_

4
// Includes
5
#include "XdmfDataItem.hpp"
6
#include "XdmfGeometryType.hpp"
7

8 9 10 11 12 13 14
/**
 * @brief Handles the coordinate positions of points in an XdmfGrid.
 *
 * XdmfGeometry is a required part of an XdmfGrid.  It stores the coordinate values
 * of all points contained in an XdmfGrid.  XdmfGeometry contains an XdmfGeometryType property
 * which should be set that specifies the types of coordinate values stored.
 */
15
class XdmfGeometry : public XdmfDataItem {
Ken Leiter (Civ's avatar
Ken Leiter (Civ committed
16 17 18 19

public:

	XdmfNewMacro(XdmfGeometry);
20

21 22
	virtual void accept(boost::shared_ptr<XdmfVisitor> visitor) const;

23
	/**
24
	 * Get the XdmfGeometryType associated with this geometry.
25
	 *
26
	 * @return XdmfGeometryType of this geometry.
27
	 */
28
	XdmfGeometryType getGeometryType() const;
29 30

	/**
31
	 * Set the XdmfGeometryType associated with this geometry.
32
	 *
33
	 * @param geometryType the XdmfGeometryType to set.
34
	 */
35
	void setGeometryType(const XdmfGeometryType & geometryType);
36

Ken Leiter (Civ's avatar
Ken Leiter (Civ committed
37 38 39 40 41 42 43
protected:

	XdmfGeometry();
	virtual ~XdmfGeometry();

private:

44 45
	XdmfGeometry(const XdmfGeometry & geometry);  // Not implemented.
	void operator=(const XdmfGeometry & geometry);  // Not implemented.
Ken Leiter (Civ's avatar
Ken Leiter (Civ committed
46

47
	XdmfGeometryType mGeometryType;
48
	int mNumberPoints;
Ken Leiter (Civ's avatar
Ken Leiter (Civ committed
49 50 51
};

#endif /* XDMFGEOMETRY_HPP_ */