#include <DLS.h>
Public Member Functions | |
Articulation (RIFF::Chunk *artl) | |
Constructor. | |
virtual | ~Articulation () |
virtual void | UpdateChunks () |
Apply articulation connections to the respective RIFF chunks. | |
Public Attributes | |
Connection * | pConnections |
Points to the beginning of a Connection array. | |
uint32_t | Connections |
Reflects the number of Connections. | |
Protected Attributes | |
RIFF::Chunk * | pArticulationCk |
uint32_t | HeaderSize |
Definition at line 269 of file DLS.h.
DLS::Articulation::Articulation | ( | RIFF::Chunk * | artl | ) |
Constructor.
Expects an 'artl' or 'art2' chunk to be given where the articulation connections will be read from.
artl | - pointer to an 'artl' or 'art2' chunk |
Exception | if no 'artl' or 'art2' chunk was given |
Definition at line 118 of file DLS.cpp.
References CHUNK_ID_ART2, CHUNK_ID_ARTL, Connections, DLS::Connection::conn_block_t::control, DLS::Connection::conn_block_t::destination, RIFF::Chunk::GetChunkID(), HeaderSize, DLS::Connection::Init(), pArticulationCk, pConnections, RIFF::Chunk::Read(), RIFF::Chunk::ReadUint32(), DLS::Connection::conn_block_t::scale, RIFF::Chunk::SetPos(), DLS::Connection::conn_block_t::source, and DLS::Connection::conn_block_t::transform.
DLS::Articulation::~Articulation | ( | ) | [virtual] |
void DLS::Articulation::UpdateChunks | ( | ) | [virtual] |
Apply articulation connections to the respective RIFF chunks.
You have to call File::Save() to make changes persistent.
Definition at line 148 of file DLS.cpp.
References Connections, DLS::Connection::conn_block_t::control, DLS::Connection::conn_block_t::destination, HeaderSize, RIFF::Chunk::LoadChunkData(), pArticulationCk, pConnections, RIFF::Chunk::Resize(), DLS::Connection::conn_block_t::scale, DLS::Connection::conn_block_t::source, DLS::Connection::ToConnBlock(), and DLS::Connection::conn_block_t::transform.
uint32_t DLS::Articulation::Connections |
Reflects the number of Connections.
Definition at line 272 of file DLS.h.
Referenced by Articulation(), and UpdateChunks().
uint32_t DLS::Articulation::HeaderSize [protected] |
RIFF::Chunk* DLS::Articulation::pArticulationCk [protected] |
Points to the beginning of a Connection array.
Definition at line 271 of file DLS.h.
Referenced by Articulation(), UpdateChunks(), and ~Articulation().