//! Adds a standard modifier chain (type: view node modifier chain) to the chain of all data blocks. void U3DFileWriter::addModifierChain_LightNode(const std::string& lightNodeName, const std::string& lightResourceName) { size_t ModifierChainBlockIndex = addStandardBlock_ModifierChain(lightNodeName,mlU3D::MODIFIERCHAINTYPE_NODEMODIFIERCHAIN, 0x00000000, 1); size_t LightNodeBlockIndex = addStandardBlock_LightNode(lightNodeName, lightResourceName); _dataBlocks[LightNodeBlockIndex].close(); _dataBlocks[ModifierChainBlockIndex].addChildDataBytes(_dataBlocks[LightNodeBlockIndex].getNumDataBytes()); }
//! Adds a standard modifier chain (type: CLOD mesh declaration) to the chain of all data blocks. void U3DFileWriter::addModifierChain_CLODMeshDeclaration(const mlU3D::CLODMeshGenerator& meshGenerator) { size_t ModifierChainBlockIndex = addStandardBlock_ModifierChain(meshGenerator.resourceName, mlU3D::MODIFIERCHAINTYPE_MODELRESOURCEMODIFIERCHAIN, 0x00000000, 1); size_t CLODMeshDeclarationBlockIndex = addStandardBlock_CLODMeshDeclaration(meshGenerator); _dataBlocks[CLODMeshDeclarationBlockIndex].close(); _dataBlocks[ModifierChainBlockIndex].addChildDataBytes(_dataBlocks[CLODMeshDeclarationBlockIndex].getNumDataBytes()); }
//! Adds a standard modifier chain (type: model node modifier chain) to the chain of all data blocks. void U3DFileWriter::addModifierChain_ModelNode(const mlU3D::ModelNode& modelNode) { size_t ModifierChainBlockIndex = addStandardBlock_ModifierChain(modelNode.internalName, mlU3D::MODIFIERCHAINTYPE_NODEMODIFIERCHAIN, 0x00000000, 1); size_t ModelNodeBlockIndex = addStandardBlock_ModelNode(modelNode); _dataBlocks[ModelNodeBlockIndex].close(); _dataBlocks[ModifierChainBlockIndex].addChildDataBytes(_dataBlocks[ModelNodeBlockIndex].getNumDataBytes()); }
//! Adds a standard modifier chain (type: group node modifier chain) to the chain of all data blocks. void U3DFileWriter::addModifierChain_GroupNode(const std::string& groupNodeName, const std::string& parentNodeName) { size_t ModifierChainBlockIndex = addStandardBlock_ModifierChain(groupNodeName,mlU3D::MODIFIERCHAINTYPE_NODEMODIFIERCHAIN, 0x00000000, 1); size_t GroupNodeBlockIndex = addStandardBlock_GroupNode(groupNodeName, parentNodeName); _dataBlocks[GroupNodeBlockIndex].close(); _dataBlocks[ModifierChainBlockIndex].addChildDataBytes(_dataBlocks[GroupNodeBlockIndex].getNumDataBytes()); }
//! Adds a standard modifier chain (type: CLOD mesh declaration) to the chain of all data blocks. void U3DFileWriter::addModifierChain_CLODMeshDeclaration(const U3DMeshInfoStruct& meshInfo) { size_t ModifierChainBlockIndex = addStandardBlock_ModifierChain(meshInfo.ResourceName, U3D_MODIFIERCHAINTYPE_MODELRESOURCEMODIFIERCHAIN, 0x00000000, 1); size_t CLODMeshDeclarationBlockIndex = addStandardBlock_CLODMeshDeclaration(meshInfo); _dataBlocks[CLODMeshDeclarationBlockIndex].close(); _dataBlocks[ModifierChainBlockIndex].addChildDataBytes(_dataBlocks[CLODMeshDeclarationBlockIndex].getNumDataBytes()); }
//! Adds a standard modifier chain (type: model node modifier chain) to the chain of all data blocks. void U3DFileWriter::addModifierChain_ModelNode(const U3DObjectInfoStruct& objectInfo) { size_t ModifierChainBlockIndex = addStandardBlock_ModifierChain(objectInfo.InternalName,U3D_MODIFIERCHAINTYPE_NODEMODIFIERCHAIN, 0x00000000, 1); size_t ModelNodeBlockIndex = addStandardBlock_ModelNode(objectInfo); _dataBlocks[ModelNodeBlockIndex].close(); _dataBlocks[ModifierChainBlockIndex].addChildDataBytes(_dataBlocks[ModelNodeBlockIndex].getNumDataBytes()); }
//! Adds a standard modifier chain (type: light node modifier chain) to the chain of all data blocks. void U3DFileWriter::addModifierChain_ViewNode(const std::string& viewNodeName, const std::string& viewResourceName) { size_t ModifierChainBlockIndex = addStandardBlock_ModifierChain(viewNodeName, U3D_MODIFIERCHAINTYPE_NODEMODIFIERCHAIN, 0x00000000, 1); size_t ViewNodeBlockIndex = addStandardBlock_ViewNode(viewNodeName, viewResourceName); _dataBlocks[ViewNodeBlockIndex].close(); _dataBlocks[ModifierChainBlockIndex].addChildDataBytes(_dataBlocks[ViewNodeBlockIndex].getNumDataBytes()); }
//! Adds a standard modifier chain (type: line set declaration & continuation) to the chain of all data blocks. void U3DFileWriter::addModifierChain_LineSet(const mlU3D::LineSetGenerator& lineSetGenerator, U3DDataBlockWriter continuationBlock) { size_t ModifierChainBlockIndex = addStandardBlock_ModifierChain(lineSetGenerator.resourceName, mlU3D::MODIFIERCHAINTYPE_MODELRESOURCEMODIFIERCHAIN, 0x00000000, 2); size_t LineSetDeclarationBlockIndex = addStandardBlock_LineSetDeclaration(lineSetGenerator); _dataBlocks[LineSetDeclarationBlockIndex].close(); size_t ContinuationBlockIndex = addDataBlock(continuationBlock); _dataBlocks[ContinuationBlockIndex].close(); _dataBlocks[ModifierChainBlockIndex].addChildDataBytes(_dataBlocks[LineSetDeclarationBlockIndex].getNumDataBytes()); _dataBlocks[ModifierChainBlockIndex].addChildDataBytes(_dataBlocks[ContinuationBlockIndex].getNumDataBytes()); }
//! Adds a standard modifier chain (type: point set declaration & continuation) to the chain of all data blocks. void U3DFileWriter::addModifierChain_PointSet(const U3DPointSetInfoStruct& pointSetInfo, U3DDataBlockWriter continuationBlock) { size_t ModifierChainBlockIndex = addStandardBlock_ModifierChain(pointSetInfo.ResourceName, U3D_MODIFIERCHAINTYPE_MODELRESOURCEMODIFIERCHAIN, 0x00000000, 2); size_t PointSetDeclarationBlockIndex = addStandardBlock_PointSetDeclaration(pointSetInfo); _dataBlocks[PointSetDeclarationBlockIndex].close(); size_t ContinuationBlockIndex = addDataBlock(continuationBlock); _dataBlocks[ContinuationBlockIndex].close(); _dataBlocks[ModifierChainBlockIndex].addChildDataBytes(_dataBlocks[PointSetDeclarationBlockIndex].getNumDataBytes()); _dataBlocks[ModifierChainBlockIndex].addChildDataBytes(_dataBlocks[ContinuationBlockIndex].getNumDataBytes()); }