OEScalarGrid¶
class OEScalarGrid : public OEGrid<float>
This class represents OEScalarGrid.
An OEScalarGrid represents a cubic grid with regular intervals in Cartesian space.
The following methods are publicly inherited from 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:
Constructors¶
OEScalarGrid()
Creates a one point OEScalarGrid grid object.
OEScalarGrid(const OEScalarGrid &rhs)
OEScalarGrid(const OEFixedGrid<float> &rhs)
Creates a OEScalarGrid object and copies the entire contents of the ‘rhs’ grid.
OEScalarGrid(float minmax[6], float spacing, const char *title="")
OEScalarGrid(double minmax[6], double spacing, const char *title="")
Creates a OEScalarGrid 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.
OEScalarGrid(int xdim, int ydim, int zdim, float midx, float midy, float midz,
float spacing, std::string title="", float *dataptr=0)
Creates and initializes a OEScalarGrid 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=¶
OEScalarGrid &operator=(const OEScalarGrid &rhs)
OEScalarGrid &operator=(const OEFixedGrid<float> &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
.
IsDataType¶
bool IsDataType(const void *type) const
Returns whether type is the same as the instance this method is called on (i.e. OEScalarGrid).