Class Paint
- java.lang.Object
-
- org.cakelab.blender.nio.CFacade
-
- org.blender.dna.Paint
-
public class Paint extends CFacade
-
-
Field Summary
Fields Modifier and Type Field Description static long[]
__DNA__FIELD___pad1
Field descriptor (offset) for struct member '_pad1'.static long[]
__DNA__FIELD___pad2
Field descriptor (offset) for struct member '_pad2'.static long[]
__DNA__FIELD__brush
Field descriptor (offset) for struct member 'brush'.static long[]
__DNA__FIELD__cavity_curve
Field descriptor (offset) for struct member 'cavity_curve'.static long[]
__DNA__FIELD__flags
Field descriptor (offset) for struct member 'flags'.static long[]
__DNA__FIELD__num_input_samples
Field descriptor (offset) for struct member 'num_input_samples'.static long[]
__DNA__FIELD__paint_cursor
Field descriptor (offset) for struct member 'paint_cursor'.static long[]
__DNA__FIELD__paint_cursor_col
Field descriptor (offset) for struct member 'paint_cursor_col'.static long[]
__DNA__FIELD__palette
Field descriptor (offset) for struct member 'palette'.static long[]
__DNA__FIELD__runtime
Field descriptor (offset) for struct member 'runtime'.static long[]
__DNA__FIELD__symmetry_flags
Field descriptor (offset) for struct member 'symmetry_flags'.static long[]
__DNA__FIELD__tile_offset
Field descriptor (offset) for struct member 'tile_offset'.static long[]
__DNA__FIELD__tool_slots
Field descriptor (offset) for struct member 'tool_slots'.static long[]
__DNA__FIELD__tool_slots_len
Field descriptor (offset) for struct member 'tool_slots_len'.static int
__DNA__SDNA_INDEX
This is the sdna index of the struct Paint.-
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 Paint(long __address, Block __block, BlockTable __blockTable)
protected
Paint(Paint that)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description CPointer<Paint>
__io__addressof()
Instantiates a pointer on this instance.CArrayFacade<java.lang.Byte>
get_pad1()
Get method for struct member '_pad1'.CArrayFacade<java.lang.Byte>
get_pad2()
Get method for struct member '_pad2'.CPointer<Brush>
getBrush()
Get method for struct member 'brush'.CPointer<CurveMapping>
getCavity_curve()
Get method for struct member 'cavity_curve'.int
getFlags()
Get method for struct member 'flags'.int
getNum_input_samples()
Get method for struct member 'num_input_samples'.CPointer<java.lang.Object>
getPaint_cursor()
Get method for struct member 'paint_cursor'.CArrayFacade<java.lang.Byte>
getPaint_cursor_col()
Get method for struct member 'paint_cursor_col'.CPointer<Palette>
getPalette()
Get method for struct member 'palette'.Paint_Runtime
getRuntime()
Get method for struct member 'runtime'.int
getSymmetry_flags()
Get method for struct member 'symmetry_flags'.CArrayFacade<java.lang.Float>
getTile_offset()
Get method for struct member 'tile_offset'.CPointer<PaintToolSlot>
getTool_slots()
Get method for struct member 'tool_slots'.int
getTool_slots_len()
Get method for struct member 'tool_slots_len'.void
set_pad1(CArrayFacade<java.lang.Byte> _pad1)
Set method for struct member '_pad1'.void
set_pad2(CArrayFacade<java.lang.Byte> _pad2)
Set method for struct member '_pad2'.void
setBrush(CPointer<Brush> brush)
Set method for struct member 'brush'.void
setCavity_curve(CPointer<CurveMapping> cavity_curve)
Set method for struct member 'cavity_curve'.void
setFlags(int flags)
Set method for struct member 'flags'.void
setNum_input_samples(int num_input_samples)
Set method for struct member 'num_input_samples'.void
setPaint_cursor(CPointer<java.lang.Object> paint_cursor)
Set method for struct member 'paint_cursor'.void
setPaint_cursor_col(CArrayFacade<java.lang.Byte> paint_cursor_col)
Set method for struct member 'paint_cursor_col'.void
setPalette(CPointer<Palette> palette)
Set method for struct member 'palette'.void
setRuntime(Paint_Runtime runtime)
Set method for struct member 'runtime'.void
setSymmetry_flags(int symmetry_flags)
Set method for struct member 'symmetry_flags'.void
setTile_offset(CArrayFacade<java.lang.Float> tile_offset)
Set method for struct member 'tile_offset'.void
setTool_slots(CPointer<PaintToolSlot> tool_slots)
Set method for struct member 'tool_slots'.void
setTool_slots_len(int tool_slots_len)
Set method for struct member 'tool_slots_len'.-
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 Paint.It is required when allocating a new block to store data for Paint.
- See Also:
StructDNA
,BlockTable
, Constant Field Values
-
__DNA__FIELD__brush
public static final long[] __DNA__FIELD__brush
Field descriptor (offset) for struct member 'brush'.Field Documentation
Blender Python API
Active BrushPointer Arithmetics
This is how you get a reference on the corresponding field in the struct:
Paint paint = ...; CPointer<Object> p = paint.__dna__addressof(Paint.__DNA__FIELD__brush); CPointer<CPointer<Brush>> p_brush = p.cast(new Class[]{CPointer.class, Brush.class});
Metadata
- Field: 'brush'
- Signature: 'Brush*'
- Actual Size (32bit/64bit): 4/8
-
__DNA__FIELD__tool_slots
public static final long[] __DNA__FIELD__tool_slots
Field descriptor (offset) for struct member 'tool_slots'.Field Documentation
Blender Python API
(read-only)Blender Source Code
Each tool has its own active brush, The currently active tool is defined by the current 'brush'.
Pointer Arithmetics
This is how you get a reference on the corresponding field in the struct:
Paint paint = ...; CPointer<Object> p = paint.__dna__addressof(Paint.__DNA__FIELD__tool_slots); CPointer<CPointer<PaintToolSlot>> p_tool_slots = p.cast(new Class[]{CPointer.class, PaintToolSlot.class});
Metadata
- Field: 'tool_slots'
- Signature: 'PaintToolSlot*'
- Actual Size (32bit/64bit): 4/8
-
__DNA__FIELD__tool_slots_len
public static final long[] __DNA__FIELD__tool_slots_len
Field descriptor (offset) for struct member 'tool_slots_len'.Pointer Arithmetics
This is how you get a reference on the corresponding field in the struct:
Paint paint = ...; CPointer<Object> p = paint.__dna__addressof(Paint.__DNA__FIELD__tool_slots_len); CPointer<Integer> p_tool_slots_len = p.cast(new Class[]{Integer.class});
Metadata
- Field: 'tool_slots_len'
- Signature: 'int'
- Actual Size (32bit/64bit): 4/4
-
__DNA__FIELD___pad1
public static final long[] __DNA__FIELD___pad1
Field descriptor (offset) for struct member '_pad1'.Pointer Arithmetics
This is how you get a reference on the corresponding field in the struct:
Paint paint = ...; CPointer<Object> p = paint.__dna__addressof(Paint.__DNA__FIELD___pad1); CPointer<CArrayFacade<Byte>> p__pad1 = p.cast(new Class[]{CArrayFacade.class, Byte.class});
Metadata
- Field: '_pad1'
- Signature: 'char[4]'
- Actual Size (32bit/64bit): 4/4
-
__DNA__FIELD__palette
public static final long[] __DNA__FIELD__palette
Field descriptor (offset) for struct member 'palette'.Field Documentation
Blender Python API
Active PalettePointer Arithmetics
This is how you get a reference on the corresponding field in the struct:
Paint paint = ...; CPointer<Object> p = paint.__dna__addressof(Paint.__DNA__FIELD__palette); CPointer<CPointer<Palette>> p_palette = p.cast(new Class[]{CPointer.class, Palette.class});
Metadata
- Field: 'palette'
- Signature: 'Palette*'
- Actual Size (32bit/64bit): 4/8
-
__DNA__FIELD__cavity_curve
public static final long[] __DNA__FIELD__cavity_curve
Field descriptor (offset) for struct member 'cavity_curve'.Field Documentation
Blender Python API
(read-only) Editable cavity curveBlender Source Code
Cavity curve.
Pointer Arithmetics
This is how you get a reference on the corresponding field in the struct:
Paint paint = ...; CPointer<Object> p = paint.__dna__addressof(Paint.__DNA__FIELD__cavity_curve); CPointer<CPointer<CurveMapping>> p_cavity_curve = p.cast(new Class[]{CPointer.class, CurveMapping.class});
Metadata
- Field: 'cavity_curve'
- Signature: 'CurveMapping*'
- Actual Size (32bit/64bit): 4/8
-
__DNA__FIELD__paint_cursor
public static final long[] __DNA__FIELD__paint_cursor
Field descriptor (offset) for struct member 'paint_cursor'.Field Documentation
Blender Source Code
WM
Paint
cursorPointer Arithmetics
This is how you get a reference on the corresponding field in the struct:
Paint paint = ...; CPointer<Object> p = paint.__dna__addressof(Paint.__DNA__FIELD__paint_cursor); CPointer<CPointer<Object>> p_paint_cursor = p.cast(new Class[]{CPointer.class, Object.class});
Metadata
- Field: 'paint_cursor'
- Signature: 'void*'
- Actual Size (32bit/64bit): 4/8
-
__DNA__FIELD__paint_cursor_col
public static final long[] __DNA__FIELD__paint_cursor_col
Field descriptor (offset) for struct member 'paint_cursor_col'.Pointer Arithmetics
This is how you get a reference on the corresponding field in the struct:
Paint paint = ...; CPointer<Object> p = paint.__dna__addressof(Paint.__DNA__FIELD__paint_cursor_col); CPointer<CArrayFacade<Byte>> p_paint_cursor_col = p.cast(new Class[]{CArrayFacade.class, Byte.class});
Metadata
- Field: 'paint_cursor_col'
- Signature: 'char[4]'
- Actual Size (32bit/64bit): 4/4
-
__DNA__FIELD__flags
public static final long[] __DNA__FIELD__flags
Field descriptor (offset) for struct member 'flags'.Field Documentation
Blender Source Code
enum ePaintFlags
Pointer Arithmetics
This is how you get a reference on the corresponding field in the struct:
Paint paint = ...; CPointer<Object> p = paint.__dna__addressof(Paint.__DNA__FIELD__flags); CPointer<Integer> p_flags = p.cast(new Class[]{Integer.class});
Metadata
- Field: 'flags'
- Signature: 'int'
- Actual Size (32bit/64bit): 4/4
-
__DNA__FIELD__num_input_samples
public static final long[] __DNA__FIELD__num_input_samples
Field descriptor (offset) for struct member 'num_input_samples'.Field Documentation
Blender Source Code
Paint
stroke can use up to PAINT_MAX_INPUT_SAMPLES inputs to smooth the strokePointer Arithmetics
This is how you get a reference on the corresponding field in the struct:
Paint paint = ...; CPointer<Object> p = paint.__dna__addressof(Paint.__DNA__FIELD__num_input_samples); CPointer<Integer> p_num_input_samples = p.cast(new Class[]{Integer.class});
Metadata
- Field: 'num_input_samples'
- Signature: 'int'
- Actual Size (32bit/64bit): 4/4
-
__DNA__FIELD__symmetry_flags
public static final long[] __DNA__FIELD__symmetry_flags
Field descriptor (offset) for struct member 'symmetry_flags'.Field Documentation
Blender Source Code
flags used for symmetry
Pointer Arithmetics
This is how you get a reference on the corresponding field in the struct:
Paint paint = ...; CPointer<Object> p = paint.__dna__addressof(Paint.__DNA__FIELD__symmetry_flags); CPointer<Integer> p_symmetry_flags = p.cast(new Class[]{Integer.class});
Metadata
- Field: 'symmetry_flags'
- Signature: 'int'
- Actual Size (32bit/64bit): 4/4
-
__DNA__FIELD__tile_offset
public static final long[] __DNA__FIELD__tile_offset
Field descriptor (offset) for struct member 'tile_offset'.Field Documentation
Blender Python API
Stride at which tiled strokes are copiedPointer Arithmetics
This is how you get a reference on the corresponding field in the struct:
Paint paint = ...; CPointer<Object> p = paint.__dna__addressof(Paint.__DNA__FIELD__tile_offset); CPointer<CArrayFacade<Float>> p_tile_offset = p.cast(new Class[]{CArrayFacade.class, Float.class});
Metadata
- Field: 'tile_offset'
- Signature: 'float[3]'
- Actual Size (32bit/64bit): 12/12
-
__DNA__FIELD___pad2
public static final long[] __DNA__FIELD___pad2
Field descriptor (offset) for struct member '_pad2'.Pointer Arithmetics
This is how you get a reference on the corresponding field in the struct:
Paint paint = ...; CPointer<Object> p = paint.__dna__addressof(Paint.__DNA__FIELD___pad2); CPointer<CArrayFacade<Byte>> p__pad2 = p.cast(new Class[]{CArrayFacade.class, Byte.class});
Metadata
- Field: '_pad2'
- Signature: 'char[4]'
- Actual Size (32bit/64bit): 4/4
-
__DNA__FIELD__runtime
public static final long[] __DNA__FIELD__runtime
Field descriptor (offset) for struct member 'runtime'.Pointer Arithmetics
This is how you get a reference on the corresponding field in the struct:
Paint paint = ...; CPointer<Object> p = paint.__dna__addressof(Paint.__DNA__FIELD__runtime); CPointer<Paint_Runtime> p_runtime = p.cast(new Class[]{Paint_Runtime.class});
Metadata
- Field: 'runtime'
- Signature: 'Paint_Runtime'
- Actual Size (32bit/64bit): 8/8
-
-
Constructor Detail
-
Paint
public Paint(long __address, Block __block, BlockTable __blockTable)
-
Paint
protected Paint(Paint that)
-
-
Method Detail
-
getBrush
public CPointer<Brush> getBrush() throws java.io.IOException
Get method for struct member 'brush'.Field Documentation
Blender Python API
Active Brush- Throws:
java.io.IOException
- See Also:
__DNA__FIELD__brush
-
setBrush
public void setBrush(CPointer<Brush> brush) throws java.io.IOException
Set method for struct member 'brush'.Field Documentation
Blender Python API
Active Brush- Throws:
java.io.IOException
- See Also:
__DNA__FIELD__brush
-
getTool_slots
public CPointer<PaintToolSlot> getTool_slots() throws java.io.IOException
Get method for struct member 'tool_slots'.Field Documentation
Blender Python API
(read-only)Blender Source Code
Each tool has its own active brush, The currently active tool is defined by the current 'brush'.
- Throws:
java.io.IOException
- See Also:
__DNA__FIELD__tool_slots
-
setTool_slots
public void setTool_slots(CPointer<PaintToolSlot> tool_slots) throws java.io.IOException
Set method for struct member 'tool_slots'.Field Documentation
Blender Python API
(read-only)Blender Source Code
Each tool has its own active brush, The currently active tool is defined by the current 'brush'.
- Throws:
java.io.IOException
- See Also:
__DNA__FIELD__tool_slots
-
getTool_slots_len
public int getTool_slots_len() throws java.io.IOException
Get method for struct member 'tool_slots_len'.- Throws:
java.io.IOException
- See Also:
__DNA__FIELD__tool_slots_len
-
setTool_slots_len
public void setTool_slots_len(int tool_slots_len) throws java.io.IOException
Set method for struct member 'tool_slots_len'.- Throws:
java.io.IOException
- See Also:
__DNA__FIELD__tool_slots_len
-
get_pad1
public CArrayFacade<java.lang.Byte> get_pad1() throws java.io.IOException
Get method for struct member '_pad1'.- Throws:
java.io.IOException
- See Also:
__DNA__FIELD___pad1
-
set_pad1
public void set_pad1(CArrayFacade<java.lang.Byte> _pad1) throws java.io.IOException
Set method for struct member '_pad1'.- Throws:
java.io.IOException
- See Also:
__DNA__FIELD___pad1
-
getPalette
public CPointer<Palette> getPalette() throws java.io.IOException
Get method for struct member 'palette'.Field Documentation
Blender Python API
Active Palette- Throws:
java.io.IOException
- See Also:
__DNA__FIELD__palette
-
setPalette
public void setPalette(CPointer<Palette> palette) throws java.io.IOException
Set method for struct member 'palette'.Field Documentation
Blender Python API
Active Palette- Throws:
java.io.IOException
- See Also:
__DNA__FIELD__palette
-
getCavity_curve
public CPointer<CurveMapping> getCavity_curve() throws java.io.IOException
Get method for struct member 'cavity_curve'.Field Documentation
Blender Python API
(read-only) Editable cavity curveBlender Source Code
Cavity curve.
- Throws:
java.io.IOException
- See Also:
__DNA__FIELD__cavity_curve
-
setCavity_curve
public void setCavity_curve(CPointer<CurveMapping> cavity_curve) throws java.io.IOException
Set method for struct member 'cavity_curve'.Field Documentation
Blender Python API
(read-only) Editable cavity curveBlender Source Code
Cavity curve.
- Throws:
java.io.IOException
- See Also:
__DNA__FIELD__cavity_curve
-
getPaint_cursor
public CPointer<java.lang.Object> getPaint_cursor() throws java.io.IOException
Get method for struct member 'paint_cursor'.Field Documentation
Blender Source Code
WM
Paint
cursor- Throws:
java.io.IOException
- See Also:
__DNA__FIELD__paint_cursor
-
setPaint_cursor
public void setPaint_cursor(CPointer<java.lang.Object> paint_cursor) throws java.io.IOException
Set method for struct member 'paint_cursor'.Field Documentation
Blender Source Code
WM
Paint
cursor- Throws:
java.io.IOException
- See Also:
__DNA__FIELD__paint_cursor
-
getPaint_cursor_col
public CArrayFacade<java.lang.Byte> getPaint_cursor_col() throws java.io.IOException
Get method for struct member 'paint_cursor_col'.- Throws:
java.io.IOException
- See Also:
__DNA__FIELD__paint_cursor_col
-
setPaint_cursor_col
public void setPaint_cursor_col(CArrayFacade<java.lang.Byte> paint_cursor_col) throws java.io.IOException
Set method for struct member 'paint_cursor_col'.- Throws:
java.io.IOException
- See Also:
__DNA__FIELD__paint_cursor_col
-
getFlags
public int getFlags() throws java.io.IOException
Get method for struct member 'flags'.Field Documentation
Blender Source Code
enum ePaintFlags
- Throws:
java.io.IOException
- See Also:
__DNA__FIELD__flags
-
setFlags
public void setFlags(int flags) throws java.io.IOException
Set method for struct member 'flags'.Field Documentation
Blender Source Code
enum ePaintFlags
- Throws:
java.io.IOException
- See Also:
__DNA__FIELD__flags
-
getNum_input_samples
public int getNum_input_samples() throws java.io.IOException
Get method for struct member 'num_input_samples'.Field Documentation
Blender Source Code
Paint
stroke can use up to PAINT_MAX_INPUT_SAMPLES inputs to smooth the stroke- Throws:
java.io.IOException
- See Also:
__DNA__FIELD__num_input_samples
-
setNum_input_samples
public void setNum_input_samples(int num_input_samples) throws java.io.IOException
Set method for struct member 'num_input_samples'.Field Documentation
Blender Source Code
Paint
stroke can use up to PAINT_MAX_INPUT_SAMPLES inputs to smooth the stroke- Throws:
java.io.IOException
- See Also:
__DNA__FIELD__num_input_samples
-
getSymmetry_flags
public int getSymmetry_flags() throws java.io.IOException
Get method for struct member 'symmetry_flags'.Field Documentation
Blender Source Code
flags used for symmetry
- Throws:
java.io.IOException
- See Also:
__DNA__FIELD__symmetry_flags
-
setSymmetry_flags
public void setSymmetry_flags(int symmetry_flags) throws java.io.IOException
Set method for struct member 'symmetry_flags'.Field Documentation
Blender Source Code
flags used for symmetry
- Throws:
java.io.IOException
- See Also:
__DNA__FIELD__symmetry_flags
-
getTile_offset
public CArrayFacade<java.lang.Float> getTile_offset() throws java.io.IOException
Get method for struct member 'tile_offset'.Field Documentation
Blender Python API
Stride at which tiled strokes are copied- Throws:
java.io.IOException
- See Also:
__DNA__FIELD__tile_offset
-
setTile_offset
public void setTile_offset(CArrayFacade<java.lang.Float> tile_offset) throws java.io.IOException
Set method for struct member 'tile_offset'.Field Documentation
Blender Python API
Stride at which tiled strokes are copied- Throws:
java.io.IOException
- See Also:
__DNA__FIELD__tile_offset
-
get_pad2
public CArrayFacade<java.lang.Byte> get_pad2() throws java.io.IOException
Get method for struct member '_pad2'.- Throws:
java.io.IOException
- See Also:
__DNA__FIELD___pad2
-
set_pad2
public void set_pad2(CArrayFacade<java.lang.Byte> _pad2) throws java.io.IOException
Set method for struct member '_pad2'.- Throws:
java.io.IOException
- See Also:
__DNA__FIELD___pad2
-
getRuntime
public Paint_Runtime getRuntime() throws java.io.IOException
Get method for struct member 'runtime'.- Throws:
java.io.IOException
- See Also:
__DNA__FIELD__runtime
-
setRuntime
public void setRuntime(Paint_Runtime runtime) throws java.io.IOException
Set method for struct member 'runtime'.- Throws:
java.io.IOException
- See Also:
__DNA__FIELD__runtime
-
-