Class CurvesGeometry
- java.lang.Object
-
- org.cakelab.blender.nio.CFacade
-
- org.blender.dna.CurvesGeometry
-
public class CurvesGeometry extends CFacade
Generated facet for DNA struct type 'CurvesGeometry'.Class Documentation
Blender Source Code
A reusable data structure for geometry consisting of many curves. All control point data is stored contiguously for better efficiency. Data for each curve is stored as a slice of the main
getPoint_data()
array.The data structure is meant to be embedded in other data-blocks to allow reusing curve-processing algorithms for multiple Blender data-block types.
-
-
Field Summary
Fields Modifier and Type Field Description static long[]
__DNA__FIELD__curve_data
Field descriptor (offset) for struct member 'curve_data'.static long[]
__DNA__FIELD__curve_offsets
Field descriptor (offset) for struct member 'curve_offsets'.static long[]
__DNA__FIELD__curve_size
Field descriptor (offset) for struct member 'curve_size'.static long[]
__DNA__FIELD__point_data
Field descriptor (offset) for struct member 'point_data'.static long[]
__DNA__FIELD__point_size
Field descriptor (offset) for struct member 'point_size'.static long[]
__DNA__FIELD__runtime
Field descriptor (offset) for struct member 'runtime'.static int
__DNA__SDNA_INDEX
This is the sdna index of the struct CurvesGeometry.-
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 CurvesGeometry(long __address, Block __block, BlockTable __blockTable)
protected
CurvesGeometry(CurvesGeometry that)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description CPointer<CurvesGeometry>
__io__addressof()
Instantiates a pointer on this instance.CustomData
getCurve_data()
Get method for struct member 'curve_data'.CPointer<java.lang.Integer>
getCurve_offsets()
Get method for struct member 'curve_offsets'.int
getCurve_size()
Get method for struct member 'curve_size'.CustomData
getPoint_data()
Get method for struct member 'point_data'.int
getPoint_size()
Get method for struct member 'point_size'.CPointer<java.lang.Object>
getRuntime()
Get method for struct member 'runtime'.void
setCurve_data(CustomData curve_data)
Set method for struct member 'curve_data'.void
setCurve_offsets(CPointer<java.lang.Integer> curve_offsets)
Set method for struct member 'curve_offsets'.void
setCurve_size(int curve_size)
Set method for struct member 'curve_size'.void
setPoint_data(CustomData point_data)
Set method for struct member 'point_data'.void
setPoint_size(int point_size)
Set method for struct member 'point_size'.void
setRuntime(CPointer<java.lang.Object> runtime)
Set method for struct member 'runtime'.-
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 CurvesGeometry.It is required when allocating a new block to store data for CurvesGeometry.
- See Also:
StructDNA
,BlockTable
, Constant Field Values
-
__DNA__FIELD__curve_offsets
public static final long[] __DNA__FIELD__curve_offsets
Field descriptor (offset) for struct member 'curve_offsets'.Field Documentation
Blender Source Code
The start index of each curve in the point data. The size of each curve can be calculated by subtracting the offset from the next offset. That is valid even for the last curve because this array is allocated with a length one larger than the number of curves. This is allowed to be null when there are no curves.
Every curve offset must be at least one larger than the previous. In other words, every curve must have at least one point.
Note
stored in
This is not stored in CustomData because its size is one larger than curve_data.CustomData
because its size is one larger thangetCurve_data()
.Pointer Arithmetics
This is how you get a reference on the corresponding field in the struct:
CurvesGeometry curvesgeometry = ...; CPointer<Object> p = curvesgeometry.__dna__addressof(CurvesGeometry.__DNA__FIELD__curve_offsets); CPointer<CPointer<Integer>> p_curve_offsets = p.cast(new Class[]{CPointer.class, Integer.class});
Metadata
- Field: 'curve_offsets'
- Signature: 'int*'
- Actual Size (32bit/64bit): 4/8
-
__DNA__FIELD__point_data
public static final long[] __DNA__FIELD__point_data
Field descriptor (offset) for struct member 'point_data'.Field Documentation
Blender Source Code
All attributes stored on control points (#ATTR_DOMAIN_POINT). This might not contain a layer for positions if there are no points.
Pointer Arithmetics
This is how you get a reference on the corresponding field in the struct:
CurvesGeometry curvesgeometry = ...; CPointer<Object> p = curvesgeometry.__dna__addressof(CurvesGeometry.__DNA__FIELD__point_data); CPointer<CustomData> p_point_data = p.cast(new Class[]{CustomData.class});
Metadata
- Field: 'point_data'
- Signature: 'CustomData'
- Actual Size (32bit/64bit): 236/248
-
__DNA__FIELD__curve_data
public static final long[] __DNA__FIELD__curve_data
Field descriptor (offset) for struct member 'curve_data'.Field Documentation
Blender Source Code
All attributes stored on curves (#ATTR_DOMAIN_CURVE).
Pointer Arithmetics
This is how you get a reference on the corresponding field in the struct:
CurvesGeometry curvesgeometry = ...; CPointer<Object> p = curvesgeometry.__dna__addressof(CurvesGeometry.__DNA__FIELD__curve_data); CPointer<CustomData> p_curve_data = p.cast(new Class[]{CustomData.class});
Metadata
- Field: 'curve_data'
- Signature: 'CustomData'
- Actual Size (32bit/64bit): 236/248
-
__DNA__FIELD__point_size
public static final long[] __DNA__FIELD__point_size
Field descriptor (offset) for struct member 'point_size'.Pointer Arithmetics
This is how you get a reference on the corresponding field in the struct:
CurvesGeometry curvesgeometry = ...; CPointer<Object> p = curvesgeometry.__dna__addressof(CurvesGeometry.__DNA__FIELD__point_size); CPointer<Integer> p_point_size = p.cast(new Class[]{Integer.class});
Metadata
- Field: 'point_size'
- Signature: 'int'
- Actual Size (32bit/64bit): 4/4
-
__DNA__FIELD__curve_size
public static final long[] __DNA__FIELD__curve_size
Field descriptor (offset) for struct member 'curve_size'.Pointer Arithmetics
This is how you get a reference on the corresponding field in the struct:
CurvesGeometry curvesgeometry = ...; CPointer<Object> p = curvesgeometry.__dna__addressof(CurvesGeometry.__DNA__FIELD__curve_size); CPointer<Integer> p_curve_size = p.cast(new Class[]{Integer.class});
Metadata
- Field: 'curve_size'
- Signature: 'int'
- Actual Size (32bit/64bit): 4/4
-
__DNA__FIELD__runtime
public static final long[] __DNA__FIELD__runtime
Field descriptor (offset) for struct member 'runtime'.Field Documentation
Blender Source Code
Runtime data for curves, stored as a pointer to allow defining this as a C++ class.
Pointer Arithmetics
This is how you get a reference on the corresponding field in the struct:
CurvesGeometry curvesgeometry = ...; CPointer<Object> p = curvesgeometry.__dna__addressof(CurvesGeometry.__DNA__FIELD__runtime); CPointer<CPointer<Object>> p_runtime = p.cast(new Class[]{CPointer.class, Object.class});
Metadata
- Field: 'runtime'
- Signature: 'CurvesGeometryRuntimeHandle*'
- Actual Size (32bit/64bit): 4/8
-
-
Constructor Detail
-
CurvesGeometry
public CurvesGeometry(long __address, Block __block, BlockTable __blockTable)
-
CurvesGeometry
protected CurvesGeometry(CurvesGeometry that)
-
-
Method Detail
-
getCurve_offsets
public CPointer<java.lang.Integer> getCurve_offsets() throws java.io.IOException
Get method for struct member 'curve_offsets'.Field Documentation
Blender Source Code
The start index of each curve in the point data. The size of each curve can be calculated by subtracting the offset from the next offset. That is valid even for the last curve because this array is allocated with a length one larger than the number of curves. This is allowed to be null when there are no curves.
Every curve offset must be at least one larger than the previous. In other words, every curve must have at least one point.
Note
stored in
This is not stored in CustomData because its size is one larger than curve_data.CustomData
because its size is one larger thangetCurve_data()
.- Throws:
java.io.IOException
- See Also:
__DNA__FIELD__curve_offsets
-
setCurve_offsets
public void setCurve_offsets(CPointer<java.lang.Integer> curve_offsets) throws java.io.IOException
Set method for struct member 'curve_offsets'.Field Documentation
Blender Source Code
The start index of each curve in the point data. The size of each curve can be calculated by subtracting the offset from the next offset. That is valid even for the last curve because this array is allocated with a length one larger than the number of curves. This is allowed to be null when there are no curves.
Every curve offset must be at least one larger than the previous. In other words, every curve must have at least one point.
Note
stored in
This is not stored in CustomData because its size is one larger than curve_data.CustomData
because its size is one larger thangetCurve_data()
.- Throws:
java.io.IOException
- See Also:
__DNA__FIELD__curve_offsets
-
getPoint_data
public CustomData getPoint_data() throws java.io.IOException
Get method for struct member 'point_data'.Field Documentation
Blender Source Code
All attributes stored on control points (#ATTR_DOMAIN_POINT). This might not contain a layer for positions if there are no points.
- Throws:
java.io.IOException
- See Also:
__DNA__FIELD__point_data
-
setPoint_data
public void setPoint_data(CustomData point_data) throws java.io.IOException
Set method for struct member 'point_data'.Field Documentation
Blender Source Code
All attributes stored on control points (#ATTR_DOMAIN_POINT). This might not contain a layer for positions if there are no points.
- Throws:
java.io.IOException
- See Also:
__DNA__FIELD__point_data
-
getCurve_data
public CustomData getCurve_data() throws java.io.IOException
Get method for struct member 'curve_data'.Field Documentation
Blender Source Code
All attributes stored on curves (#ATTR_DOMAIN_CURVE).
- Throws:
java.io.IOException
- See Also:
__DNA__FIELD__curve_data
-
setCurve_data
public void setCurve_data(CustomData curve_data) throws java.io.IOException
Set method for struct member 'curve_data'.Field Documentation
Blender Source Code
All attributes stored on curves (#ATTR_DOMAIN_CURVE).
- Throws:
java.io.IOException
- See Also:
__DNA__FIELD__curve_data
-
getPoint_size
public int getPoint_size() throws java.io.IOException
Get method for struct member 'point_size'.- Throws:
java.io.IOException
- See Also:
__DNA__FIELD__point_size
-
setPoint_size
public void setPoint_size(int point_size) throws java.io.IOException
Set method for struct member 'point_size'.- Throws:
java.io.IOException
- See Also:
__DNA__FIELD__point_size
-
getCurve_size
public int getCurve_size() throws java.io.IOException
Get method for struct member 'curve_size'.- Throws:
java.io.IOException
- See Also:
__DNA__FIELD__curve_size
-
setCurve_size
public void setCurve_size(int curve_size) throws java.io.IOException
Set method for struct member 'curve_size'.- Throws:
java.io.IOException
- See Also:
__DNA__FIELD__curve_size
-
getRuntime
public CPointer<java.lang.Object> getRuntime() throws java.io.IOException
Get method for struct member 'runtime'.Field Documentation
Blender Source Code
Runtime data for curves, stored as a pointer to allow defining this as a C++ class.
- Throws:
java.io.IOException
- See Also:
__DNA__FIELD__runtime
-
setRuntime
public void setRuntime(CPointer<java.lang.Object> runtime) throws java.io.IOException
Set method for struct member 'runtime'.Field Documentation
Blender Source Code
Runtime data for curves, stored as a pointer to allow defining this as a C++ class.
- Throws:
java.io.IOException
- See Also:
__DNA__FIELD__runtime
-
__io__addressof
public CPointer<CurvesGeometry> __io__addressof()
Instantiates a pointer on this instance.
-
-