Updates will be applied today, at 4 pm EDT (UTC-0400). No interruption, and site should remain available.

XdmfGeometry.hpp 1.48 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
	static std::string ItemTag;
22

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

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

32 33
	std::string getItemTag() const;

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

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

	XdmfGeometry();
	virtual ~XdmfGeometry();
45
	virtual void populateItem(const std::map<std::string, std::string> & itemProperties, std::vector<boost::shared_ptr<XdmfItem> > & childItems);
Ken Leiter (Civ's avatar
Ken Leiter (Civ committed
46 47 48

private:

49 50
	XdmfGeometry(const XdmfGeometry & geometry);  // Not implemented.
	void operator=(const XdmfGeometry & geometry);  // Not implemented.
Ken Leiter (Civ's avatar
Ken Leiter (Civ committed
51

52
	XdmfGeometryType mGeometryType;
53
	int mNumberPoints;
Ken Leiter (Civ's avatar
Ken Leiter (Civ committed
54 55 56
};

#endif /* XDMFGEOMETRY_HPP_ */