MeshLib Java Docs
Loading...
Searching...
No Matches
meshlib.RasterInfo Class Reference
Inheritance diagram for meshlib.RasterInfo:

Public Member Functions

 RasterInfo (java.lang.foreign.MemorySegment ptr, boolean owned, java.lang.Object owner)
 RasterInfo ()
 RasterInfo (meshlib.Vector3i dims, meshlib.ScalarType type, int channels)
 RasterInfo (meshlib.RasterInfo _other)
meshlib.RasterInfo assignFromAnother (meshlib.RasterInfo _other)
long dataSize ()
boolean opEqual (meshlib.RasterInfo _1)
boolean opNotEqual (meshlib.RasterInfo _1)
meshlib.Vector3i dims ()
void setDims (meshlib.Vector3i value)
meshlib.ScalarType type ()
void setType (meshlib.ScalarType value)
int channels ()
void setChannels (int value)
Public Member Functions inherited from meshlib.CppObject
final java.lang.foreign.MemorySegment rawPointer ()
final boolean isOwned ()
final void close ()
final java.lang.foreign.MemorySegment release ()

Additional Inherited Members

Protected Member Functions inherited from meshlib.CppObject
 CppObject (java.lang.foreign.MemorySegment ptr, java.util.function.Consumer< java.lang.foreign.MemorySegment > destroy, java.lang.Object owner)

Detailed Description

everything about a raster except its values Generated from class MR::RasterInfo.

Instances created here own their C++ objects, see CppObject.

Constructor & Destructor Documentation

◆ RasterInfo() [1/4]

meshlib.RasterInfo.RasterInfo ( java.lang.foreign.MemorySegment ptr,
boolean owned,
java.lang.Object owner )

Wraps a pointer from the C bindings. If owned, the object is destroyed when the wrapper dies. owner is kept alive as long as this wrapper is. Not for normal use.

◆ RasterInfo() [2/4]

meshlib.RasterInfo.RasterInfo ( )

Constructs an empty (default-constructed) instance.

Calls MR_RasterInfo_DefaultConstruct().

◆ RasterInfo() [3/4]

meshlib.RasterInfo.RasterInfo ( meshlib.Vector3i dims,
meshlib.ScalarType type,
int channels )

Constructs MR::RasterInfo elementwise. The reference to the parameter dims might be preserved in the constructed object. The reference to the parameter type might be preserved in the constructed object.

Calls MR_RasterInfo_ConstructFrom().

◆ RasterInfo() [4/4]

meshlib.RasterInfo.RasterInfo ( meshlib.RasterInfo _other)

Generated from constructor MR::RasterInfo::RasterInfo. The reference to things referred to by the parameter _other (if any) might be preserved in the constructed object.

Calls MR_RasterInfo_ConstructFromAnother().

Member Function Documentation

◆ assignFromAnother()

meshlib.RasterInfo meshlib.RasterInfo.assignFromAnother ( meshlib.RasterInfo _other)

Generated from method MR::RasterInfo::operator=. The reference to things referred to by the parameter _other (if any) might be preserved in this object.

Calls MR_RasterInfo_AssignFromAnother().

◆ channels()

int meshlib.RasterInfo.channels ( )

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 Returns a pointer to a member variable of class MR::RasterInfo named channels. The reference to this object might be preserved as the return value.

Calls MR_RasterInfo_Get_channels().

◆ dataSize()

long meshlib.RasterInfo.dataSize ( )

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 Generated from method MR::RasterInfo::dataSize.

Calls MR_RasterInfo_dataSize().

◆ dims()

meshlib.Vector3i meshlib.RasterInfo.dims ( )

number of pixels along each axis: x is the width, y is the height, z is the number of layers Returns a pointer to a member variable of class MR::RasterInfo named dims. The reference to this object might be preserved as the return value.

Calls MR_RasterInfo_Get_dims().

◆ opEqual()

boolean meshlib.RasterInfo.opEqual ( meshlib.RasterInfo _1)

Generated from method MR::RasterInfo::operator==.

Calls MR_equal_MR_RasterInfo().

◆ opNotEqual()

boolean meshlib.RasterInfo.opNotEqual ( meshlib.RasterInfo _1)

Generated from method MR::RasterInfo::operator!=.

Calls MR_not_equal_MR_RasterInfo().

◆ setChannels()

void meshlib.RasterInfo.setChannels ( int value)

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 Modifies a member variable of class MR::RasterInfo named channels.

Calls MR_RasterInfo_Set_channels().

◆ setDims()

void meshlib.RasterInfo.setDims ( meshlib.Vector3i value)

number of pixels along each axis: x is the width, y is the height, z is the number of layers Modifies a member variable of class MR::RasterInfo named dims. The reference to the parameter value might be preserved in this object in element dims.

Calls MR_RasterInfo_Set_dims().

◆ setType()

void meshlib.RasterInfo.setType ( meshlib.ScalarType value)

type of all values Modifies a member variable of class MR::RasterInfo named type. The reference to the parameter value might be preserved in this object in element type.

Calls MR_RasterInfo_Set_type().

◆ type()

meshlib.ScalarType meshlib.RasterInfo.type ( )

type of all values Returns a pointer to a member variable of class MR::RasterInfo named type. The reference to this object might be preserved as the return value.

Calls MR_RasterInfo_Get_type().


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