XdmfGeometry.hpp 1.28 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
	LOKI_DEFINE_VISITABLE(XdmfGeometry, XdmfDataItem)
21

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

29 30
	std::map<std::string, std::string> getItemProperties() const;

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

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

	XdmfGeometry();
	virtual ~XdmfGeometry();

private:

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

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

#endif /* XDMFGEOMETRY_HPP_ */