Package | Description |
---|---|
org.cakelab.blender.io | |
org.cakelab.blender.io.block | |
org.cakelab.blender.io.util | |
org.cakelab.blender.utils |
This package contains optional utility classes to use with generated DNA API classes.
|
Modifier and Type | Method and Description |
---|---|
BlockHeader |
BlenderFile.seekFirstBlock(Identifier code) |
Modifier and Type | Field and Description |
---|---|
static Identifier |
BlockCodes.ID_AC
Action
|
static Identifier |
BlockCodes.ID_AR
Armature
|
static Identifier |
BlockCodes.ID_BR
Brush
|
static Identifier |
BlockCodes.ID_CA
Camera
|
static Identifier |
BlockCodes.ID_CF
Cache File
|
static Identifier |
BlockCodes.ID_CO
constraint.
|
static Identifier |
BlockCodes.ID_CU
Curve
|
static Identifier |
BlockCodes.ID_DATA
Block code of a block containing data related to other blocks.
|
static Identifier |
BlockCodes.ID_DNA1
block code of the block containing the
StructDNA struct. |
static Identifier |
BlockCodes.ID_ENDB
block code of the last block.
|
static Identifier |
BlockCodes.ID_FLUIDSIM
fluidsim Ipo
NOTE! Fake IDs, needed for g.sipo->blocktype or outliner. |
static Identifier |
BlockCodes.ID_GD
GreasePencil
|
static Identifier |
BlockCodes.ID_GLOB
Block code of a block containing struct
FileGlobal . |
static Identifier |
BlockCodes.ID_GR
Group
|
static Identifier |
BlockCodes.ID_HA
Hair
|
static Identifier |
BlockCodes.ID_ID
Only used as 'placeholder' in .blend files for directly linked data-blocks.
|
static Identifier |
BlockCodes.ID_IM
Image
|
static Identifier |
BlockCodes.ID_IP
Ipo (depreciated, replaced by FCurves)
|
static Identifier |
BlockCodes.ID_KE
Key (shape key)
|
static Identifier |
BlockCodes.ID_LA
Lamp
|
static Identifier |
BlockCodes.ID_LI
Library
|
static Identifier |
BlockCodes.ID_LP
LightProbe
|
static Identifier |
BlockCodes.ID_LS
FreestyleLineStyle
|
static Identifier |
BlockCodes.ID_LT
Lattice
|
static Identifier |
BlockCodes.ID_MA
Material
|
static Identifier |
BlockCodes.ID_MB
MetaBall
|
static Identifier |
BlockCodes.ID_MC
MovieClip
|
static Identifier |
BlockCodes.ID_ME
Mesh
|
static Identifier |
BlockCodes.ID_MSK
Mask
|
static Identifier |
BlockCodes.ID_NLA
used in outliner...
|
static Identifier |
BlockCodes.ID_NT
NodeTree
|
static Identifier |
BlockCodes.ID_OB
Object
|
static Identifier |
BlockCodes.ID_PA
ParticleSettings
|
static Identifier |
BlockCodes.ID_PAL
Palette
|
static Identifier |
BlockCodes.ID_PC
Paint Curve
|
static Identifier |
BlockCodes.ID_PO
pose (action channel, used to be ID_AC in code, so we keep code for backwards compat)
NOTE! Fake IDs, needed for g.sipo->blocktype or outliner. |
static Identifier |
BlockCodes.ID_PT
PointCloud
|
static Identifier |
BlockCodes.ID_REND
Block code of a block containing struct
Link . |
static Identifier |
BlockCodes.ID_SCE
Scene
|
static Identifier |
BlockCodes.ID_SCR
Screen
|
static Identifier |
BlockCodes.ID_SCRN
depreciated, but still heavily in use
|
static Identifier |
BlockCodes.ID_SEQ
NOTE! Fake IDs, needed for g.sipo->blocktype or outliner
|
static Identifier |
BlockCodes.ID_SIM
Simulation
|
static Identifier |
BlockCodes.ID_SO
Sound
|
static Identifier |
BlockCodes.ID_SPK
Speaker
|
static Identifier |
BlockCodes.ID_TE
Texture
|
static Identifier |
BlockCodes.ID_TEST
Block code of a block containing struct
Link . |
static Identifier |
BlockCodes.ID_TXT
Text
|
static Identifier |
BlockCodes.ID_VF
VectorFont
|
static Identifier |
BlockCodes.ID_VO
Volume
|
static Identifier |
BlockCodes.ID_WM
WindowManager
|
static Identifier |
BlockCodes.ID_WO
World
|
static Identifier |
BlockCodes.ID_WS
Work Space
|
Modifier and Type | Method and Description |
---|---|
Identifier |
BlockHeader.getCode() |
static Identifier |
BlockCodes.MAKE_ID2(char c,
char d) |
Modifier and Type | Method and Description |
---|---|
Block |
BlockTable.allocate(Identifier blockCode,
int size)
This method allocates memory and assigns it to a block with the given code.
|
Block |
BlockTable.allocate(Identifier code,
long size)
This method allocates memory on heap and assigns it to a new block with the given code.
|
Block |
BlockTable.allocate(Identifier blockCode,
long size,
int sdnaIndex,
int count)
This method allocates memory for 'count' structs of type 'sdnaIndex'
and assigns it to a new block with the given blockCode.
|
java.util.List<Block> |
BlockTable.getBlocks(Identifier blockCode)
Returns a list of blocks which have the given block code.
|
void |
BlockTable.getBlocks(Identifier blockCode,
java.util.List<Block> list)
Retrieve all blocks with the given block code which are on heap.
|
Constructor and Description |
---|
BlockHeader(Identifier code,
int size,
long address) |
BlockHeader(Identifier code,
int size,
long address,
int sdnaIndex,
int count) |
Modifier and Type | Method and Description |
---|---|
void |
Identifier.consume(CDataReadWriteAccess in,
Identifier expected)
This reads a code from the input stream and compares it
to the 'expected' value.
|
Modifier and Type | Method and Description |
---|---|
<T> CArrayFacade<T> |
BlenderFactoryBase.newCArrayBlock(Identifier blockCode,
java.lang.Class<?>[] typeList,
int[] dimensions)
Factory instance method equivalent to
BlenderFactoryBase.newCArrayBlock(Identifier, Class[], int[], BlenderFile) . |
static <T> CArrayFacade<T> |
BlenderFactoryBase.newCArrayBlock(Identifier blockCode,
java.lang.Class<?>[] typeList,
int[] dimensions,
BlenderFile blend)
Allocate a new block for one instance of a multi-dimensional array of
any component type supported by blender.
|
<T> CArrayFacade<T> |
BlenderFactoryBase.newCArrayBlock(Identifier blockCode,
java.lang.Class<T> componentType,
int arrayLength)
Factory instance method equivalent to
BlenderFactoryBase.newCArrayBlock(Identifier, Class, int, BlenderFile) . |
static <T> CArrayFacade<T> |
BlenderFactoryBase.newCArrayBlock(Identifier blockCode,
java.lang.Class<T> componentType,
int arrayLength,
BlenderFile blend)
Allocate a new block for one instance of a one-dimensional array of
any non-pointer component type which is either a scalar or a DNA struct.
|
<T> CPointer<CPointer<T>> |
BlenderFactoryBase.newCPointerBlock(Identifier blockCode,
java.lang.Class<?>[] typeList)
Factory instance method equivalent to
BlenderFactoryBase.newCPointerBlock(Identifier, Class[], BlenderFile) . |
static <T> CPointer<CPointer<T>> |
BlenderFactoryBase.newCPointerBlock(Identifier blockCode,
java.lang.Class<?>[] typeList,
BlenderFile blend)
This method creates a block with a single pointer in it.
|
<T> CArrayFacade<CPointer<T>> |
BlenderFactoryBase.newCPointerBlock(Identifier blockCode,
java.lang.Class<?>[] typeList,
int count)
Factory instance method equivalent to
BlenderFactoryBase.newCPointerBlock(Identifier, Class[], int count, BlenderFile) . |
static <T> CArrayFacade<CPointer<T>> |
BlenderFactoryBase.newCPointerBlock(Identifier blockCode,
java.lang.Class<?>[] typeList,
int count,
BlenderFile blend)
This method creates a block with a set of pointers and returns an array facet to
access them.
|
<T extends CFacade> |
BlenderFactoryBase.newCStructBlock(Identifier blockCode,
java.lang.Class<T> facetClass)
Factory instance method equivalent to
BlenderFactoryBase.newCStructBlock(Identifier, Class, BlenderFile) . |
static <T extends CFacade> |
BlenderFactoryBase.newCStructBlock(Identifier blockCode,
java.lang.Class<T> facetClass,
BlenderFile blend)
Allocate a new block for one instance of a C struct.
|
<T extends CFacade> |
BlenderFactoryBase.newCStructBlock(Identifier blockCode,
java.lang.Class<T> facetClass,
int count)
Factory instance method equivalent to
BlenderFactoryBase.newCStructBlock(Identifier, Class, int, BlenderFile) . |
static <T extends CFacade> |
BlenderFactoryBase.newCStructBlock(Identifier blockCode,
java.lang.Class<T> facetClass,
int count,
BlenderFile blend)
Allocate a new block for multiple instances of a C struct.
|