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:
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, float spacing, const char *title="") OEScalarGrid(double minmax, 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
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
OEScalarGrid &operator=(const OEScalarGrid &rhs) OEScalarGrid &operator=(const OEFixedGrid<float> &rhs)
Copies the contents of ‘rhs’ grid.
Reallocates memory for the grid, effectively clearing all the grid values.
Calls through to
OEBase *CreateCopy() const
Makes a copy of the grid instance.
const void *GetDataType() const
Returns the data type of the grid.
unsigned int GetType() const
Returns the data type tag for the grid.
bool IsDataType(const void *type) const
Returns whether type is the same as the instance this method is called on (i.e. OEScalarGrid).
bool SetType(unsigned int t)
Sets the tag associated with this grid.