Class PaintModeSettings
- java.lang.Object
-
- org.cakelab.blender.nio.CFacade
-
- org.blender.dna.PaintModeSettings
-
-
Field Summary
Fields Modifier and Type Field Description static long[]
__DNA__FIELD___pad
Field descriptor (offset) for struct member '_pad'.static long[]
__DNA__FIELD__canvas_image
Field descriptor (offset) for struct member 'canvas_image'.static long[]
__DNA__FIELD__canvas_source
Field descriptor (offset) for struct member 'canvas_source'.static long[]
__DNA__FIELD__image_user
Field descriptor (offset) for struct member 'image_user'.static int
__DNA__SDNA_INDEX
This is the sdna index of the struct PaintModeSettings.-
Fields inherited from class org.cakelab.blender.nio.CFacade
__io__address, __io__arch_index, __io__block, __io__blockTable, __io__pointersize
-
-
Constructor Summary
Constructors Modifier Constructor Description PaintModeSettings(long __address, Block __block, BlockTable __blockTable)
protected
PaintModeSettings(PaintModeSettings that)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description CPointer<PaintModeSettings>
__io__addressof()
Instantiates a pointer on this instance.CArrayFacade<java.lang.Byte>
get_pad()
Get method for struct member '_pad'.CPointer<Image>
getCanvas_image()
Get method for struct member 'canvas_image'.byte
getCanvas_source()
Get method for struct member 'canvas_source'.ImageUser
getImage_user()
Get method for struct member 'image_user'.void
set_pad(CArrayFacade<java.lang.Byte> _pad)
Set method for struct member '_pad'.void
setCanvas_image(CPointer<Image> canvas_image)
Set method for struct member 'canvas_image'.void
setCanvas_source(byte canvas_source)
Set method for struct member 'canvas_source'.void
setImage_user(ImageUser image_user)
Set method for struct member 'image_user'.-
Methods inherited from class org.cakelab.blender.nio.CFacade
__io__addressof, __io__addressof, __io__equals, __io__generic__copy, __io__generic__copy, __io__instanceof, __io__native__copy, __io__newInstance, __io__same__encoding, __io__sizeof, __io__sizeof, __io__subclassof, equals, hashCode
-
-
-
-
Field Detail
-
__DNA__SDNA_INDEX
public static final int __DNA__SDNA_INDEX
This is the sdna index of the struct PaintModeSettings.It is required when allocating a new block to store data for PaintModeSettings.
- See Also:
StructDNA
,BlockTable
, Constant Field Values
-
__DNA__FIELD__canvas_source
public static final long[] __DNA__FIELD__canvas_source
Field descriptor (offset) for struct member 'canvas_source'.Field Documentation
Blender Python API
Source to select canvas fromBlender Source Code
Source to select canvas from to paint on (ePaintCanvasSource)
Pointer Arithmetics
This is how you get a reference on the corresponding field in the struct:
PaintModeSettings paintmodesettings = ...; CPointer<Object> p = paintmodesettings.__dna__addressof(PaintModeSettings.__DNA__FIELD__canvas_source); CPointer<Byte> p_canvas_source = p.cast(new Class[]{Byte.class});
Metadata
- Field: 'canvas_source'
- Signature: 'char'
- Actual Size (32bit/64bit): 1/1
-
__DNA__FIELD___pad
public static final long[] __DNA__FIELD___pad
Field descriptor (offset) for struct member '_pad'.Pointer Arithmetics
This is how you get a reference on the corresponding field in the struct:
PaintModeSettings paintmodesettings = ...; CPointer<Object> p = paintmodesettings.__dna__addressof(PaintModeSettings.__DNA__FIELD___pad); CPointer<CArrayFacade<Byte>> p__pad = p.cast(new Class[]{CArrayFacade.class, Byte.class});
Metadata
- Field: '_pad'
- Signature: 'char[7]'
- Actual Size (32bit/64bit): 7/7
-
__DNA__FIELD__canvas_image
public static final long[] __DNA__FIELD__canvas_image
Field descriptor (offset) for struct member 'canvas_image'.Field Documentation
Blender Python API
Image used as as painting targetBlender Source Code
Selected image when canvas_source=PAINT_CANVAS_SOURCE_IMAGE.
Pointer Arithmetics
This is how you get a reference on the corresponding field in the struct:
PaintModeSettings paintmodesettings = ...; CPointer<Object> p = paintmodesettings.__dna__addressof(PaintModeSettings.__DNA__FIELD__canvas_image); CPointer<CPointer<Image>> p_canvas_image = p.cast(new Class[]{CPointer.class, Image.class});
Metadata
- Field: 'canvas_image'
- Signature: 'Image*'
- Actual Size (32bit/64bit): 4/8
-
__DNA__FIELD__image_user
public static final long[] __DNA__FIELD__image_user
Field descriptor (offset) for struct member 'image_user'.Pointer Arithmetics
This is how you get a reference on the corresponding field in the struct:
PaintModeSettings paintmodesettings = ...; CPointer<Object> p = paintmodesettings.__dna__addressof(PaintModeSettings.__DNA__FIELD__image_user); CPointer<ImageUser> p_image_user = p.cast(new Class[]{ImageUser.class});
Metadata
- Field: 'image_user'
- Signature: 'ImageUser'
- Actual Size (32bit/64bit): 36/40
-
-
Constructor Detail
-
PaintModeSettings
public PaintModeSettings(long __address, Block __block, BlockTable __blockTable)
-
PaintModeSettings
protected PaintModeSettings(PaintModeSettings that)
-
-
Method Detail
-
getCanvas_source
public byte getCanvas_source() throws java.io.IOException
Get method for struct member 'canvas_source'.Field Documentation
Blender Python API
Source to select canvas fromBlender Source Code
Source to select canvas from to paint on (ePaintCanvasSource)
- Throws:
java.io.IOException
- See Also:
__DNA__FIELD__canvas_source
-
setCanvas_source
public void setCanvas_source(byte canvas_source) throws java.io.IOException
Set method for struct member 'canvas_source'.Field Documentation
Blender Python API
Source to select canvas fromBlender Source Code
Source to select canvas from to paint on (ePaintCanvasSource)
- Throws:
java.io.IOException
- See Also:
__DNA__FIELD__canvas_source
-
get_pad
public CArrayFacade<java.lang.Byte> get_pad() throws java.io.IOException
Get method for struct member '_pad'.- Throws:
java.io.IOException
- See Also:
__DNA__FIELD___pad
-
set_pad
public void set_pad(CArrayFacade<java.lang.Byte> _pad) throws java.io.IOException
Set method for struct member '_pad'.- Throws:
java.io.IOException
- See Also:
__DNA__FIELD___pad
-
getCanvas_image
public CPointer<Image> getCanvas_image() throws java.io.IOException
Get method for struct member 'canvas_image'.Field Documentation
Blender Python API
Image used as as painting targetBlender Source Code
Selected image when canvas_source=PAINT_CANVAS_SOURCE_IMAGE.
- Throws:
java.io.IOException
- See Also:
__DNA__FIELD__canvas_image
-
setCanvas_image
public void setCanvas_image(CPointer<Image> canvas_image) throws java.io.IOException
Set method for struct member 'canvas_image'.Field Documentation
Blender Python API
Image used as as painting targetBlender Source Code
Selected image when canvas_source=PAINT_CANVAS_SOURCE_IMAGE.
- Throws:
java.io.IOException
- See Also:
__DNA__FIELD__canvas_image
-
getImage_user
public ImageUser getImage_user() throws java.io.IOException
Get method for struct member 'image_user'.- Throws:
java.io.IOException
- See Also:
__DNA__FIELD__image_user
-
setImage_user
public void setImage_user(ImageUser image_user) throws java.io.IOException
Set method for struct member 'image_user'.- Throws:
java.io.IOException
- See Also:
__DNA__FIELD__image_user
-
__io__addressof
public CPointer<PaintModeSettings> __io__addressof()
Instantiates a pointer on this instance.
-
-