public class bToolRef extends CFacade
Stored per mode.
Modifier and Type | Field and Description |
---|---|
static long[] |
__DNA__FIELD__idname
Field descriptor (offset) for struct member 'idname'.
|
static long[] |
__DNA__FIELD__idname_fallback
Field descriptor (offset) for struct member 'idname_fallback'.
|
static long[] |
__DNA__FIELD__mode
Field descriptor (offset) for struct member 'mode'.
|
static long[] |
__DNA__FIELD__next
Field descriptor (offset) for struct member 'next'.
|
static long[] |
__DNA__FIELD__prev
Field descriptor (offset) for struct member 'prev'.
|
static long[] |
__DNA__FIELD__properties
Field descriptor (offset) for struct member 'properties'.
|
static long[] |
__DNA__FIELD__runtime
Field descriptor (offset) for struct member 'runtime'.
|
static long[] |
__DNA__FIELD__space_type
Field descriptor (offset) for struct member 'space_type'.
|
static long[] |
__DNA__FIELD__tag
Field descriptor (offset) for struct member 'tag'.
|
static int |
__DNA__SDNA_INDEX
This is the sdna index of the struct bToolRef.
|
__io__address, __io__arch_index, __io__block, __io__blockTable, __io__pointersize
Modifier | Constructor and Description |
---|---|
protected |
bToolRef(bToolRef that) |
|
bToolRef(long __address,
Block __block,
BlockTable __blockTable) |
Modifier and Type | Method and Description |
---|---|
CPointer<bToolRef> |
__io__addressof()
Instantiates a pointer on this instance.
|
CArrayFacade<java.lang.Byte> |
getIdname_fallback()
Get method for struct member 'idname_fallback'.
|
CArrayFacade<java.lang.Byte> |
getIdname()
Get method for struct member 'idname'.
|
int |
getMode()
Get method for struct member 'mode'.
|
CPointer<bToolRef> |
getNext()
Get method for struct member 'next'.
|
CPointer<bToolRef> |
getPrev()
Get method for struct member 'prev'.
|
CPointer<IDProperty> |
getProperties()
Get method for struct member 'properties'.
|
CPointer<java.lang.Object> |
getRuntime()
Get method for struct member 'runtime'.
|
short |
getSpace_type()
Get method for struct member 'space_type'.
|
short |
getTag()
Get method for struct member 'tag'.
|
void |
setIdname_fallback(CArrayFacade<java.lang.Byte> idname_fallback)
Set method for struct member 'idname_fallback'.
|
void |
setIdname(CArrayFacade<java.lang.Byte> idname)
Set method for struct member 'idname'.
|
void |
setMode(int mode)
Set method for struct member 'mode'.
|
void |
setNext(CPointer<bToolRef> next)
Set method for struct member 'next'.
|
void |
setPrev(CPointer<bToolRef> prev)
Set method for struct member 'prev'.
|
void |
setProperties(CPointer<IDProperty> properties)
Set method for struct member 'properties'.
|
void |
setRuntime(CPointer<java.lang.Object> runtime)
Set method for struct member 'runtime'.
|
void |
setSpace_type(short space_type)
Set method for struct member 'space_type'.
|
void |
setTag(short tag)
Set method for struct member 'tag'.
|
__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
public static final int __DNA__SDNA_INDEX
It is required when allocating a new block to store data for bToolRef.
org.cakelab.blender.io.dna.internal.StructDNA}
,
org.cakelab.blender.io.block.BlockTable#allocate}
,
Constant Field Valuespublic static final long[] __DNA__FIELD__next
This is how you get a reference on the corresponding field in the struct:
bToolRef btoolref = ...; CPointer<Object> p = btoolref.__dna__addressof(bToolRef.__DNA__FIELD__next); CPointer<CPointer<bToolRef>> p_next = p.cast(new Class[]{CPointer.class, bToolRef.class});
public static final long[] __DNA__FIELD__prev
This is how you get a reference on the corresponding field in the struct:
bToolRef btoolref = ...; CPointer<Object> p = btoolref.__dna__addressof(bToolRef.__DNA__FIELD__prev); CPointer<CPointer<bToolRef>> p_prev = p.cast(new Class[]{CPointer.class, bToolRef.class});
public static final long[] __DNA__FIELD__idname
This is how you get a reference on the corresponding field in the struct:
bToolRef btoolref = ...; CPointer<Object> p = btoolref.__dna__addressof(bToolRef.__DNA__FIELD__idname); CPointer<CArrayFacade<Byte>> p_idname = p.cast(new Class[]{CArrayFacade.class, Byte.class});
public static final long[] __DNA__FIELD__idname_fallback
Optionally use these when not interacting directly with the primary tools gizmo.
This is how you get a reference on the corresponding field in the struct:
bToolRef btoolref = ...; CPointer<Object> p = btoolref.__dna__addressof(bToolRef.__DNA__FIELD__idname_fallback); CPointer<CArrayFacade<Byte>> p_idname_fallback = p.cast(new Class[]{CArrayFacade.class, Byte.class});
public static final long[] __DNA__FIELD__tag
Use to avoid initializing the same tool multiple times.
This is how you get a reference on the corresponding field in the struct:
bToolRef btoolref = ...; CPointer<Object> p = btoolref.__dna__addressof(bToolRef.__DNA__FIELD__tag); CPointer<Short> p_tag = p.cast(new Class[]{Short.class});
public static final long[] __DNA__FIELD__space_type
#bToolKey (spacetype, mode), used in 'WM_api.h'
This is how you get a reference on the corresponding field in the struct:
bToolRef btoolref = ...; CPointer<Object> p = btoolref.__dna__addressof(bToolRef.__DNA__FIELD__space_type); CPointer<Short> p_space_type = p.cast(new Class[]{Short.class});
public static final long[] __DNA__FIELD__mode
Value depends on the 'space_type', object mode for 3D view, image editor has own mode too. RNA needs to handle using item function.
This is how you get a reference on the corresponding field in the struct:
bToolRef btoolref = ...; CPointer<Object> p = btoolref.__dna__addressof(bToolRef.__DNA__FIELD__mode); CPointer<Integer> p_mode = p.cast(new Class[]{Integer.class});
public static final long[] __DNA__FIELD__properties
Use for tool options, each group's name must match a tool name:
{"Tool Name": {"SOME_OT_operator": {...}, ..}, ..}
This is done since different tools may call the same operators with their own options.
This is how you get a reference on the corresponding field in the struct:
bToolRef btoolref = ...; CPointer<Object> p = btoolref.__dna__addressof(bToolRef.__DNA__FIELD__properties); CPointer<CPointer<IDProperty>> p_properties = p.cast(new Class[]{CPointer.class, IDProperty.class});
public static final long[] __DNA__FIELD__runtime
Variables needed to operate the tool.
This is how you get a reference on the corresponding field in the struct:
bToolRef btoolref = ...; CPointer<Object> p = btoolref.__dna__addressof(bToolRef.__DNA__FIELD__runtime); CPointer<CPointer<Object>> p_runtime = p.cast(new Class[]{CPointer.class, Object.class});
public bToolRef(long __address, Block __block, BlockTable __blockTable)
protected bToolRef(bToolRef that)
public CPointer<bToolRef> getNext() throws java.io.IOException
java.io.IOException
__DNA__FIELD__next
public void setNext(CPointer<bToolRef> next) throws java.io.IOException
java.io.IOException
__DNA__FIELD__next
public CPointer<bToolRef> getPrev() throws java.io.IOException
java.io.IOException
__DNA__FIELD__prev
public void setPrev(CPointer<bToolRef> prev) throws java.io.IOException
java.io.IOException
__DNA__FIELD__prev
public CArrayFacade<java.lang.Byte> getIdname() throws java.io.IOException
java.io.IOException
__DNA__FIELD__idname
public void setIdname(CArrayFacade<java.lang.Byte> idname) throws java.io.IOException
java.io.IOException
__DNA__FIELD__idname
public CArrayFacade<java.lang.Byte> getIdname_fallback() throws java.io.IOException
Optionally use these when not interacting directly with the primary tools gizmo.
java.io.IOException
__DNA__FIELD__idname_fallback
public void setIdname_fallback(CArrayFacade<java.lang.Byte> idname_fallback) throws java.io.IOException
Optionally use these when not interacting directly with the primary tools gizmo.
java.io.IOException
__DNA__FIELD__idname_fallback
public short getTag() throws java.io.IOException
Use to avoid initializing the same tool multiple times.
java.io.IOException
__DNA__FIELD__tag
public void setTag(short tag) throws java.io.IOException
Use to avoid initializing the same tool multiple times.
java.io.IOException
__DNA__FIELD__tag
public short getSpace_type() throws java.io.IOException
#bToolKey (spacetype, mode), used in 'WM_api.h'
java.io.IOException
__DNA__FIELD__space_type
public void setSpace_type(short space_type) throws java.io.IOException
#bToolKey (spacetype, mode), used in 'WM_api.h'
java.io.IOException
__DNA__FIELD__space_type
public int getMode() throws java.io.IOException
Value depends on the 'space_type', object mode for 3D view, image editor has own mode too. RNA needs to handle using item function.
java.io.IOException
__DNA__FIELD__mode
public void setMode(int mode) throws java.io.IOException
Value depends on the 'space_type', object mode for 3D view, image editor has own mode too. RNA needs to handle using item function.
java.io.IOException
__DNA__FIELD__mode
public CPointer<IDProperty> getProperties() throws java.io.IOException
Use for tool options, each group's name must match a tool name:
{"Tool Name": {"SOME_OT_operator": {...}, ..}, ..}
This is done since different tools may call the same operators with their own options.
java.io.IOException
__DNA__FIELD__properties
public void setProperties(CPointer<IDProperty> properties) throws java.io.IOException
Use for tool options, each group's name must match a tool name:
{"Tool Name": {"SOME_OT_operator": {...}, ..}, ..}
This is done since different tools may call the same operators with their own options.
java.io.IOException
__DNA__FIELD__properties
public CPointer<java.lang.Object> getRuntime() throws java.io.IOException
Variables needed to operate the tool.
java.io.IOException
__DNA__FIELD__runtime
public void setRuntime(CPointer<java.lang.Object> runtime) throws java.io.IOException
Variables needed to operate the tool.
java.io.IOException
__DNA__FIELD__runtime