|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.xbig.base.NativeObject
org.ogre4j.PixelBox
public class PixelBox
| Field Summary |
|---|
| Fields inherited from class org.xbig.base.NativeObject |
|---|
deleted, object, remote |
| Constructor Summary | |
|---|---|
|
PixelBox()
|
|
PixelBox(IBox extents,
PixelFormat pixelFormat,
VoidPointer pixelData)
Constructor providing extents in the form of a object. |
|
PixelBox(InstancePointer p)
This constructor is public for internal useage only! |
protected |
PixelBox(InstancePointer p,
boolean remote)
Creates a Java wrapper object for an existing C++ object. |
|
PixelBox(int width,
int height,
int depth,
PixelFormat pixelFormat,
VoidPointer pixelData)
Constructor providing width, height and depth. |
|
PixelBox(WithoutNativeObject val)
Allows creation of Java objects without C++ objects. |
| Method Summary | |
|---|---|
boolean |
contains(IBox def)
|
void |
delete()
Deletes the corresponding C++ object. |
void |
finalize()
|
int |
getback()
|
int |
getbottom()
|
int |
getConsecutiveSize()
Return the size (in bytes) this image would take if it was laid out consecutive in memory |
VoidPointer |
getdata()
|
int |
getDepth()
|
PixelFormat |
getformat()
|
int |
getfront()
|
int |
getHeight()
|
int |
getleft()
|
int |
getright()
|
int |
getrowPitch()
|
int |
getRowSkip()
Get the number of elements between one past the rightmost pixel of one row and the leftmost pixel of the next row. |
int |
getslicePitch()
|
int |
getSliceSkip()
Get the number of elements between one past the right bottom pixel of one slice and the left top pixel of the next slice. |
void |
getSubVolume(IPixelBox returnValue,
IBox def)
Return a subvolume of this . |
int |
gettop()
|
int |
getWidth()
|
boolean |
isConsecutive()
Return whether this buffer is laid out consecutive in memory (ie the pitches are equal to the dimensions) |
void |
setback(int _jni_value_)
|
void |
setbottom(int _jni_value_)
|
void |
setConsecutive()
Set the rowPitch and slicePitch so that the buffer is laid out consecutive in memory. |
void |
setdata(VoidPointer _jni_value_)
|
void |
setformat(PixelFormat _jni_value_)
|
void |
setfront(int _jni_value_)
|
void |
setleft(int _jni_value_)
|
void |
setright(int _jni_value_)
|
void |
setrowPitch(int _jni_value_)
|
void |
setslicePitch(int _jni_value_)
|
void |
settop(int _jni_value_)
|
| Methods inherited from class org.xbig.base.NativeObject |
|---|
disconnectFromNativeObject, equals, getInstancePointer, hashCode, setInstancePointer, setInstancePointer, setInstancePointer, toString |
| Methods inherited from class java.lang.Object |
|---|
clone, getClass, notify, notifyAll, wait, wait, wait |
| Methods inherited from interface org.xbig.base.INativeObject |
|---|
disconnectFromNativeObject, getInstancePointer, setInstancePointer, setInstancePointer, setInstancePointer |
| Constructor Detail |
|---|
public PixelBox(InstancePointer p)
protected PixelBox(InstancePointer p,
boolean remote)
public PixelBox(WithoutNativeObject val)
WithoutNativeObject,
INativeObject.disconnectFromNativeObject()public PixelBox()
public PixelBox(IBox extents,
PixelFormat pixelFormat,
VoidPointer pixelData)
public PixelBox(int width,
int height,
int depth,
PixelFormat pixelFormat,
VoidPointer pixelData)
| Method Detail |
|---|
public void delete()
INativeObjectSubclasses must implement this but if the native instance was created by the underlying library the native call to dispose must not happen!
delete in interface INativeObjectdelete in class NativeObject#remotepublic void finalize()
finalize in class NativeObjectpublic void setConsecutive()
setConsecutive in interface IPixelBoxpublic int getRowSkip()
getRowSkip in interface IPixelBoxpublic int getSliceSkip()
getSliceSkip in interface IPixelBoxpublic boolean isConsecutive()
isConsecutive in interface IPixelBoxpublic int getConsecutiveSize()
getConsecutiveSize in interface IPixelBox
public void getSubVolume(IPixelBox returnValue,
IBox def)
getSubVolume in interface IPixelBoxpublic boolean contains(IBox def)
contains in interface IBoxpublic int getWidth()
getWidth in interface IBoxpublic int getHeight()
getHeight in interface IBoxpublic int getDepth()
getDepth in interface IBoxpublic VoidPointer getdata()
getdata in interface IPixelBoxpublic void setdata(VoidPointer _jni_value_)
setdata in interface IPixelBoxpublic PixelFormat getformat()
getformat in interface IPixelBoxpublic void setformat(PixelFormat _jni_value_)
setformat in interface IPixelBoxpublic int getrowPitch()
getrowPitch in interface IPixelBoxpublic void setrowPitch(int _jni_value_)
setrowPitch in interface IPixelBoxpublic int getslicePitch()
getslicePitch in interface IPixelBoxpublic void setslicePitch(int _jni_value_)
setslicePitch in interface IPixelBoxpublic int getleft()
getleft in interface IBoxpublic void setleft(int _jni_value_)
setleft in interface IBoxpublic int gettop()
gettop in interface IBoxpublic void settop(int _jni_value_)
settop in interface IBoxpublic int getright()
getright in interface IBoxpublic void setright(int _jni_value_)
setright in interface IBoxpublic int getbottom()
getbottom in interface IBoxpublic void setbottom(int _jni_value_)
setbottom in interface IBoxpublic int getfront()
getfront in interface IBoxpublic void setfront(int _jni_value_)
setfront in interface IBoxpublic int getback()
getback in interface IBoxpublic void setback(int _jni_value_)
setback in interface IBox
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||