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__curve_type
Field descriptor (offset) for struct member 'curve_type'.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__radius
Field descriptor (offset) for struct member 'radius'.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'.CPointer<java.lang.Byte>
getCurve_type()
Get method for struct member 'curve_type'.CustomData
getPoint_data()
Get method for struct member 'point_data'.int
getPoint_size()
Get method for struct member 'point_size'.CPointer<java.lang.Float>
getRadius()
Get method for struct member 'radius'.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
setCurve_type(CPointer<java.lang.Byte> curve_type)
Set method for struct member 'curve_type'.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
setRadius(CPointer<java.lang.Float> radius)
Set method for struct member 'radius'.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__radius
public static final long[] __DNA__FIELD__radius
Field descriptor (offset) for struct member 'radius'.Field Documentation
Blender Source Code
A runtime pointer to the "radius" attribute data.
Note
This data is owned by
This data is owned by point_data.getPoint_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__radius); CPointer<CPointer<Float>> p_radius = p.cast(new Class[]{CPointer.class, Float.class});
Metadata
- Field: 'radius'
- Signature: 'float*'
- Actual Size (32bit/64bit): 4/8
-
__DNA__FIELD__curve_type
public static final long[] __DNA__FIELD__curve_type
Field descriptor (offset) for struct member 'curve_type'.Field Documentation
Blender Source Code
The type of each curve. #CurveType.
Note
This data is owned by
This data is owned by curve_data.getCurve_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_type); CPointer<CPointer<Byte>> p_curve_type = p.cast(new Class[]{CPointer.class, Byte.class});
Metadata
- Field: 'curve_type'
- Signature: 'int8_t*'
- Actual Size (32bit/64bit): 4/8
-
__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.
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'.Field Documentation
Blender Source Code
The total number of control points in all curves.
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'.Field Documentation
Blender Source Code
The number of curves in the data-block.
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
-
getRadius
public CPointer<java.lang.Float> getRadius() throws java.io.IOException
Get method for struct member 'radius'.Field Documentation
Blender Source Code
A runtime pointer to the "radius" attribute data.
Note
This data is owned by
This data is owned by point_data.getPoint_data()
.- Throws:
java.io.IOException
- See Also:
__DNA__FIELD__radius
-
setRadius
public void setRadius(CPointer<java.lang.Float> radius) throws java.io.IOException
Set method for struct member 'radius'.Field Documentation
Blender Source Code
A runtime pointer to the "radius" attribute data.
Note
This data is owned by
This data is owned by point_data.getPoint_data()
.- Throws:
java.io.IOException
- See Also:
__DNA__FIELD__radius
-
getCurve_type
public CPointer<java.lang.Byte> getCurve_type() throws java.io.IOException
Get method for struct member 'curve_type'.Field Documentation
Blender Source Code
The type of each curve. #CurveType.
Note
This data is owned by
This data is owned by curve_data.getCurve_data()
.- Throws:
java.io.IOException
- See Also:
__DNA__FIELD__curve_type
-
setCurve_type
public void setCurve_type(CPointer<java.lang.Byte> curve_type) throws java.io.IOException
Set method for struct member 'curve_type'.Field Documentation
Blender Source Code
The type of each curve. #CurveType.
Note
This data is owned by
This data is owned by curve_data.getCurve_data()
.- Throws:
java.io.IOException
- See Also:
__DNA__FIELD__curve_type
-
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.
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.
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'.Field Documentation
Blender Source Code
The total number of control points in all curves.
- 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'.Field Documentation
Blender Source Code
The total number of control points in all curves.
- 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'.Field Documentation
Blender Source Code
The number of curves in the data-block.
- 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'.Field Documentation
Blender Source Code
The number of curves in the data-block.
- 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.
-
-