MeshLib Python Docs
Loading...
Searching...
No Matches
Inheritance diagram for mrmeshpy.ConstRasterInfo:

Public Member Functions

 __init__ (self, *args, **kwargs)
int dataSize (self)
int channels (self)
ConstVector3i dims (self)
ScalarType type (self)

Static Public Member Functions

bool __eq__ (*args, **kwargs)
bool __ne__ (*args, **kwargs)

Static Protected Attributes

typing _offsetof_channels = 16
typing _offsetof_dims = 0
typing _offsetof_type = 12

Detailed Description

Generated from:  MR::RasterInfo

everything about a raster except its values

Constructor & Destructor Documentation

◆ __init__()

mrmeshpy.ConstRasterInfo.__init__ ( self,
* args,
** kwargs )
__init__(*args, **kwargs)
Overloaded function.

1. __init__(self: meshlib.mrmeshpy.ConstRasterInfo) -> None

2. __init__(self: meshlib.mrmeshpy.ConstRasterInfo, arg0: meshlib.mrmeshpy.ConstRasterInfo) -> None

Implicit copy constructor.

3. __init__(self: meshlib.mrmeshpy.ConstRasterInfo, dims: meshlib.mrmeshpy.ConstVector3i, type: meshlib.mrmeshpy.ScalarType, channels: int) -> None

Implicit aggregate constructor.

4. __init__(self: meshlib.mrmeshpy.ConstRasterInfo, : meshlib.mrmeshpy.ConstRasterInfo) -> None

Member Function Documentation

◆ __eq__()

bool mrmeshpy.ConstRasterInfo.__eq__ ( * args,
** kwargs )
static

◆ __ne__()

bool mrmeshpy.ConstRasterInfo.__ne__ ( * args,
** kwargs )
static

◆ channels()

int mrmeshpy.ConstRasterInfo.channels ( self)
number of values in each pixel, e.g. 1 for gray values, 3 for RGB colors, 4 for RGBA colors, or any number of bands;
convertRasterToImage takes three or more channels as RGB(A) colors, so three or four gray bands look like colors there

Reimplemented in mrmeshpy.RasterInfo, and mrmeshpy.RasterInfo.

◆ dataSize()

int mrmeshpy.ConstRasterInfo.dataSize ( self)
returns the size of all values in bytes, or the largest size_t value if the size does not fit in size_t, which no data can have

◆ dims()

ConstVector3i mrmeshpy.ConstRasterInfo.dims ( self)
number of pixels along each axis: x is the width, y is the height, z is the number of layers

Reimplemented in mrmeshpy.RasterInfo, and mrmeshpy.RasterInfo.

◆ type()

ScalarType mrmeshpy.ConstRasterInfo.type ( self)
type of all values

Reimplemented in mrmeshpy.RasterInfo, and mrmeshpy.RasterInfo.

Member Data Documentation

◆ _offsetof_channels

typing mrmeshpy.ConstRasterInfo._offsetof_channels = 16
staticprotected

◆ _offsetof_dims

typing mrmeshpy.ConstRasterInfo._offsetof_dims = 0
staticprotected

◆ _offsetof_type

typing mrmeshpy.ConstRasterInfo._offsetof_type = 12
staticprotected

The documentation for this class was generated from the following file: