public class bGPDspoint extends CFacade
Grease-Pencil Annotations - 'Stroke Point' -> Coordinates may either be 2d or 3d depending on settings at the time -> Coordinates of point on stroke, in proportions of window size This assumes that the bottom-left corner is (0,0)
Modifier and Type | Field and Description |
---|---|
static long[] |
__DNA__FIELD__flag
Field descriptor (offset) for struct member 'flag'.
|
static long[] |
__DNA__FIELD__pressure
Field descriptor (offset) for struct member 'pressure'.
|
static long[] |
__DNA__FIELD__strength
Field descriptor (offset) for struct member 'strength'.
|
static long[] |
__DNA__FIELD__time
Field descriptor (offset) for struct member 'time'.
|
static long[] |
__DNA__FIELD__x
Field descriptor (offset) for struct member 'x'.
|
static long[] |
__DNA__FIELD__y
Field descriptor (offset) for struct member 'y'.
|
static long[] |
__DNA__FIELD__z
Field descriptor (offset) for struct member 'z'.
|
static int |
__DNA__SDNA_INDEX
This is the sdna index of the struct bGPDspoint.
|
__io__address, __io__arch_index, __io__block, __io__blockTable, __io__pointersize
Modifier | Constructor and Description |
---|---|
protected |
bGPDspoint(bGPDspoint that) |
|
bGPDspoint(long __address,
Block __block,
BlockTable __blockTable) |
Modifier and Type | Method and Description |
---|---|
CPointer<bGPDspoint> |
__io__addressof()
Instantiates a pointer on this instance.
|
int |
getFlag()
Get method for struct member 'flag'.
|
float |
getPressure()
Get method for struct member 'pressure'.
|
float |
getStrength()
Get method for struct member 'strength'.
|
float |
getTime()
Get method for struct member 'time'.
|
float |
getX()
Get method for struct member 'x'.
|
float |
getY()
Get method for struct member 'y'.
|
float |
getZ()
Get method for struct member 'z'.
|
void |
setFlag(int flag)
Set method for struct member 'flag'.
|
void |
setPressure(float pressure)
Set method for struct member 'pressure'.
|
void |
setStrength(float strength)
Set method for struct member 'strength'.
|
void |
setTime(float time)
Set method for struct member 'time'.
|
void |
setX(float x)
Set method for struct member 'x'.
|
void |
setY(float y)
Set method for struct member 'y'.
|
void |
setZ(float z)
Set method for struct member 'z'.
|
__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 bGPDspoint.
org.cakelab.blender.io.dna.internal.StructDNA}
,
org.cakelab.blender.io.block.BlockTable#allocate}
,
Constant Field Valuespublic static final long[] __DNA__FIELD__x
This is how you get a reference on the corresponding field in the struct:
bGPDspoint bgpdspoint = ...; CPointer<Object> p = bgpdspoint.__dna__addressof(bGPDspoint.__DNA__FIELD__x); CPointer<Float> p_x = p.cast(new Class[]{Float.class});
public static final long[] __DNA__FIELD__y
This is how you get a reference on the corresponding field in the struct:
bGPDspoint bgpdspoint = ...; CPointer<Object> p = bgpdspoint.__dna__addressof(bGPDspoint.__DNA__FIELD__y); CPointer<Float> p_y = p.cast(new Class[]{Float.class});
public static final long[] __DNA__FIELD__z
co-ordinates of point (usually 2d, but can be 3d as well)
This is how you get a reference on the corresponding field in the struct:
bGPDspoint bgpdspoint = ...; CPointer<Object> p = bgpdspoint.__dna__addressof(bGPDspoint.__DNA__FIELD__z); CPointer<Float> p_z = p.cast(new Class[]{Float.class});
public static final long[] __DNA__FIELD__pressure
pressure of input device (from 0 to 1) at this point
This is how you get a reference on the corresponding field in the struct:
bGPDspoint bgpdspoint = ...; CPointer<Object> p = bgpdspoint.__dna__addressof(bGPDspoint.__DNA__FIELD__pressure); CPointer<Float> p_pressure = p.cast(new Class[]{Float.class});
public static final long[] __DNA__FIELD__strength
color strength (used for alpha factor)
This is how you get a reference on the corresponding field in the struct:
bGPDspoint bgpdspoint = ...; CPointer<Object> p = bgpdspoint.__dna__addressof(bGPDspoint.__DNA__FIELD__strength); CPointer<Float> p_strength = p.cast(new Class[]{Float.class});
public static final long[] __DNA__FIELD__time
seconds since start of stroke
This is how you get a reference on the corresponding field in the struct:
bGPDspoint bgpdspoint = ...; CPointer<Object> p = bgpdspoint.__dna__addressof(bGPDspoint.__DNA__FIELD__time); CPointer<Float> p_time = p.cast(new Class[]{Float.class});
public static final long[] __DNA__FIELD__flag
additional options (NOTE: can shrink this field down later if needed)
This is how you get a reference on the corresponding field in the struct:
bGPDspoint bgpdspoint = ...; CPointer<Object> p = bgpdspoint.__dna__addressof(bGPDspoint.__DNA__FIELD__flag); CPointer<Integer> p_flag = p.cast(new Class[]{Integer.class});
public bGPDspoint(long __address, Block __block, BlockTable __blockTable)
protected bGPDspoint(bGPDspoint that)
public float getX() throws java.io.IOException
java.io.IOException
__DNA__FIELD__x
public void setX(float x) throws java.io.IOException
java.io.IOException
__DNA__FIELD__x
public float getY() throws java.io.IOException
java.io.IOException
__DNA__FIELD__y
public void setY(float y) throws java.io.IOException
java.io.IOException
__DNA__FIELD__y
public float getZ() throws java.io.IOException
co-ordinates of point (usually 2d, but can be 3d as well)
java.io.IOException
__DNA__FIELD__z
public void setZ(float z) throws java.io.IOException
co-ordinates of point (usually 2d, but can be 3d as well)
java.io.IOException
__DNA__FIELD__z
public float getPressure() throws java.io.IOException
pressure of input device (from 0 to 1) at this point
java.io.IOException
__DNA__FIELD__pressure
public void setPressure(float pressure) throws java.io.IOException
pressure of input device (from 0 to 1) at this point
java.io.IOException
__DNA__FIELD__pressure
public float getStrength() throws java.io.IOException
color strength (used for alpha factor)
java.io.IOException
__DNA__FIELD__strength
public void setStrength(float strength) throws java.io.IOException
color strength (used for alpha factor)
java.io.IOException
__DNA__FIELD__strength
public float getTime() throws java.io.IOException
seconds since start of stroke
java.io.IOException
__DNA__FIELD__time
public void setTime(float time) throws java.io.IOException
seconds since start of stroke
java.io.IOException
__DNA__FIELD__time
public int getFlag() throws java.io.IOException
additional options (NOTE: can shrink this field down later if needed)
java.io.IOException
__DNA__FIELD__flag
public void setFlag(int flag) throws java.io.IOException
additional options (NOTE: can shrink this field down later if needed)
java.io.IOException
__DNA__FIELD__flag
public CPointer<bGPDspoint> __io__addressof()