/usr/include/vtk-6.3/vtkxdmf2/XdmfRegion.h is in libvtk6-dev 6.3.0+dfsg1-5.
This file is owned by root:root, with mode 0o644.
The actual contents of the file can be viewed below.
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 | #ifndef __XdmfRegion_h
#define __XdmfRegion_h
#include "XdmfElement.h"
// Where Values are Assigned
#define XDMF_REGION_TYPE_UNSET -1
#define XDMF_REGION_TYPE_CELL 1
#define XDMF_REGION_TYPE_FACE 2
#define XDMF_REGION_TYPE_EDGE 3
#define XDMF_REGION_TYPE_NODE 4
namespace xdmf2
{
// Forward declaration of Xdmf classes
class XdmfTopology;
class XdmfDataDesc;
class XdmfArray;
//! Class to support data side Regions.
/*!
XdmfRegion is a Class that handles sets of nodes,cells
on an XdmfGrid. They may be centered on the Node, Edge,
Face, Cell, or Grid.
\verbatim
XML Element Name : Region
XML Region : Name
XML Region : Center = Node* | Cell | Grid | Face | Edge
Example :
<Region Name="Values" Center="Node">
<DataItem Format="XML" Dimensions="4" >
1 2 3 4
</DataItem>
</Region>
\endverbatim
*/
class XDMF_EXPORT XdmfRegion : public XdmfElement{
public:
XdmfRegion();
~XdmfRegion();
XdmfConstString GetClassName() { return ( "XdmfRegion" ) ; };
XdmfInt32 SetRegionTypeFromString( XdmfConstString RegionType );
XdmfConstString GetRegionTypeAsString( void );
//! Set the Center
/*!
Set where the Group is centered
\param Value XDMF_REGION_TYPE_CELL | XDMF_REGION_TYPE_FACE | XDMF_REGION_TYPE_EDGE | XDMF_REGION_TYPE_NODE
*/
XdmfSetValueMacro( RegionType, XdmfInt32 );
//! Returns the Center of the Attribute
XdmfGetValueMacro( RegionType, XdmfInt32 );
//! Returns the Shape of the attribute
XdmfDataDesc *GetShapeDesc( void ) { return( this->ShapeDesc ); };
//! Insert an Element
XdmfInt32 Insert(XdmfElement *Child);
//! Sets the values for the Attribute
XdmfInt32 SetValues(XdmfArray *Values);
//! Retrieves the Values of the Attribute, create one by default
XdmfArray *GetValues(XdmfInt32 Create=1);
//! Initialize but don't read the Heavy Data
XdmfInt32 UpdateInformation();
//! Initialize and Read the Heavy Data
XdmfInt32 Update();
//! Build XML (output)
XdmfInt32 Build();
//! Release Big Data
XdmfInt32 Release();
protected:
XdmfInt32 RegionType;
XdmfDataDesc *ShapeDesc;
XdmfInt32 ValuesAreMine;
XdmfArray *Values;
XdmfInt32 Active;
};
}
#endif // __XdmfGroup_h
|