OEGrid¶
template<class GridType>
class OEGrid : public OEFixedGrid<GridType>
This class represents OEGrid.
The following methods are publicly inherited from OEFixedGrid:
The following methods are publicly inherited from OEGridBase:
The following methods are publicly inherited from OEGridAbstractBase:
The following methods are publicly inherited from OEBase:
- The following classes derive from this class:
Constructors¶
OEGrid()
Creates a one point OEScalarGrid grid object.
OEGrid(const OEGrid<GridType> &rhs)
OEGrid(const OEFixedGrid<GridType> &rhs)
Creates a OEGrid object and copies the entire contents of the ‘rhs’ grid.
OEGrid(const float minmax[6], float spacing, const char *title="")
OEGrid(const double minmax[6], double spacing, const char *title="")
Creates a OEGrid object from a minimum bounding box (‘minmax’).
The size of each length between grid points is determined by the ‘spacing’ parameter.
The ‘title’ parameter is provided as a convenience for setting the title upon construction.
It can later be retrieved with the OEGridBase::GetTitle
method.
OEGrid(int xdim, int ydim, int zdim, float midx, float midy, float midz,
float spacing, std::string title="", GridType *dataptr=0)
Creates and initializes a OEGrid object. The
grid data can be copied from the optional parameter
‘dataptr’. The pointer should be an array of size
xdim*ydim*zdim*sizeof(float)
.
operator=¶
OEGrid<GridType> &operator=(const OEGrid<GridType> &rhs)
OEGrid<GridType> &operator=(const OEFixedGrid<GridType> &rhs)
Copies the contents of ‘rhs’ grid.
Clear¶
void Clear()
Reallocates memory for the grid, effectively clearing all the grid values.
Calls through to OEBase::Clear
.
CreateCopy¶
OEBase *CreateCopy() const
GetDataType¶
const void *GetDataType() const
IsDataType¶
bool IsDataType(const void *type) const
SetAll¶
bool SetAll(int xdim, int ydim, int zdim, float midx, float midy, float midz,
float spacing, std::string title, GridType *dataptr)
Convenience method for setting all the properties of this grid at once.
SetDim¶
bool SetDim(unsigned int ixdim, unsigned int iydim, unsigned int izdim)
Sets the number of grid points for each dimension.