cctw
0.2.1
|
#include <cctwdatachunk.h>
Public Member Functions | |
CctwDataChunk (CctwChunkedData *data, int index, QString name, QObject *parent) | |
virtual | ~CctwDataChunk () |
Public Member Functions inherited from CctwObject | |
CctwObject (QString name, QObject *parent=0) | |
virtual void | writeSettings (QSettings *set, QString section) |
virtual void | readSettings (QSettings *set, QString section) |
Private Member Functions | |
CctwChunkedData::MergeDataType * | allocateBuffer () |
void | releaseBuffer (CctwChunkedData::MergeDataType *) |
CctwIntVector3D | calculateChunkStart () |
CctwIntVector3D | calculateChunkSize () |
Private Attributes | |
CctwChunkedData * | m_Data |
int | m_ChunkIndex |
CctwIntVector3D | m_ChunkStart |
CctwIntVector3D | m_ChunkSize |
CctwChunkedData::MergeDataType * | m_ChunkData |
CctwChunkedData::MergeDataType * | m_ChunkWeights |
int | m_Normalized |
int | m_DataWritten |
int | m_WeightsWritten |
QVector< int > | m_Dependencies |
QMutex | m_DependenciesLock |
QMutex | m_MergeLock |
int | m_MergeCounter |
QList< CctwChunkedData::MergeDataType * > | m_MergeData |
QList< CctwChunkedData::MergeDataType * > | m_MergeWeights |
bool | m_OwnData |
Additional Inherited Members | |
Properties inherited from CctwObject | |
QString | name |
Definition at line 11 of file cctwdatachunk.h.
CctwDataChunk::CctwDataChunk | ( | CctwChunkedData * | data, |
int | index, | ||
QString | name, | ||
QObject * | parent | ||
) |
Definition at line 8 of file cctwdatachunk.cpp.
References g_ChunkCount.
|
virtual |
Definition at line 62 of file cctwdatachunk.cpp.
References dependencyCount(), g_ChunkCount, m_ChunkData, m_ChunkWeights, m_OwnData, CctwObject::printMessage(), and releaseBuffer().
|
slot |
Definition at line 337 of file cctwdatachunk.cpp.
References m_Dependencies, and m_DependenciesLock.
|
private |
Definition at line 260 of file cctwdatachunk.cpp.
References g_Allocated(), g_MaxAllocated(), m_ChunkSize, and CctwVector3D< T >::volume().
Referenced by allocateData(), and allocateWeights().
|
slot |
Definition at line 130 of file cctwdatachunk.cpp.
References allocateBuffer(), m_ChunkData, m_ChunkSize, releaseBuffer(), and CctwVector3D< T >::volume().
Referenced by mergeData(), CctwChunkedData::readChunk(), and CctwTransformer::transformChunkData().
|
staticslot |
Definition at line 79 of file cctwdatachunk.cpp.
References g_ChunkCount.
Referenced by CctwChunkedData::allocatedChunkCount(), CctwTransformer::simpleTransform(), CctwTransformer::transform(), and CctwTransformer::transformChunkData().
|
slot |
Definition at line 143 of file cctwdatachunk.cpp.
References allocateBuffer(), m_ChunkSize, m_ChunkWeights, releaseBuffer(), and CctwVector3D< T >::volume().
Referenced by mergeData(), CctwChunkedData::readChunk(), and CctwTransformer::transformChunkData().
|
private |
Definition at line 36 of file cctwdatachunk.cpp.
References CctwChunkedData::chunkSize, CctwChunkedData::dimensions, m_ChunkIndex, m_ChunkStart, m_Data, CctwObject::printMessage(), CctwVector3D< T >::x(), CctwVector3D< T >::y(), and CctwVector3D< T >::z().
|
private |
Definition at line 25 of file cctwdatachunk.cpp.
References chunkStart(), m_ChunkIndex, m_Data, and CctwObject::printMessage().
Referenced by resetChunkStart().
|
slot |
Definition at line 120 of file cctwdatachunk.cpp.
References m_ChunkSize.
Referenced by CctwApplication::calculateChunkDependencies(), Cctwtcl_Input_Cmd(), Cctwtcl_Transform_Cmd(), CctwTransformer::dependencies(), mergeChunk(), and CctwTransformer::transformChunkData().
|
slot |
Definition at line 109 of file cctwdatachunk.cpp.
References m_ChunkStart.
Referenced by CctwApplication::calculateChunkDependencies(), calculateChunkStart(), CctwTransformer::dependencies(), and CctwTransformer::transformChunkData().
|
slot |
Definition at line 309 of file cctwdatachunk.cpp.
References m_Dependencies, and m_DependenciesLock.
Referenced by CctwChunkedData::clearDependencies().
|
slot |
|
slot |
Definition at line 206 of file cctwdatachunk.cpp.
References m_ChunkData, and pixelOffset().
Referenced by pushMergeData(), and CctwTransformer::transformChunkData().
|
slot |
Definition at line 99 of file cctwdatachunk.cpp.
References m_ChunkData.
|
slot |
Definition at line 89 of file cctwdatachunk.cpp.
References m_ChunkData.
Referenced by Cctwtcl_Input_Cmd(), Cctwtcl_Transform_Cmd(), CctwTransformer::checkTransform(), CctwChunkedData::readChunk(), and CctwChunkedData::writeChunk().
|
slot |
Definition at line 156 of file cctwdatachunk.cpp.
References m_ChunkData, m_ChunkSize, releaseBuffer(), and CctwVector3D< T >::volume().
Referenced by CctwChunkedData::releaseChunkData(), and CctwTransformer::transformChunkNumber().
|
slot |
Definition at line 167 of file cctwdatachunk.cpp.
References m_ChunkSize, m_ChunkWeights, releaseBuffer(), and CctwVector3D< T >::volume().
Referenced by normalizeChunk(), CctwChunkedData::releaseChunkData(), and CctwTransformer::transformChunkNumber().
|
slot |
Definition at line 330 of file cctwdatachunk.cpp.
References m_Dependencies, and m_DependenciesLock.
Referenced by CctwqtMainWindow::reportDependencies(), CctwTransformer::saveDependencies(), and CctwTransformer::transform().
|
slot |
Definition at line 323 of file cctwdatachunk.cpp.
References m_Dependencies, and m_DependenciesLock.
Referenced by CctwTransformer::checkTransform(), mergeChunk(), CctwqtMainWindow::reportDependencies(), CctwApplication::reportInputChunkCounts(), CctwApplication::reportOutputChunkCounts(), CctwTransformer::saveDependencies(), CctwTransformer::transform(), CctwTransformer::transformChunkNumber(), and ~CctwDataChunk().
|
slot |
Definition at line 178 of file cctwdatachunk.cpp.
References m_ChunkData.
Referenced by Cctwtcl_Input_Cmd(), and Cctwtcl_Transform_Cmd().
|
slot |
Definition at line 185 of file cctwdatachunk.cpp.
References m_ChunkWeights.
Referenced by Cctwtcl_Input_Cmd(), and Cctwtcl_Transform_Cmd().
|
slot |
Definition at line 485 of file cctwdatachunk.cpp.
References m_MergeCounter.
Referenced by mergeChunk().
|
slot |
Definition at line 304 of file cctwdatachunk.cpp.
References m_ChunkIndex.
Referenced by Cctwtcl_Transform_Cmd(), CctwChunkedData::chunk(), mergeChunk(), CctwChunkedData::mergeChunk(), mergeData(), and normalizeChunk().
|
staticslot |
Definition at line 255 of file cctwdatachunk.cpp.
References g_MaxAllocated().
|
slot |
Definition at line 400 of file cctwdatachunk.cpp.
References chunkSize(), dependencyCount(), CctwChunkedData::incChunksHeld(), CctwChunkedData::incChunksWritten(), incMergeCounters(), index(), m_ChunkIndex, m_Data, mergeCount(), popMergeData(), CctwObject::printMessage(), pushMergeData(), releaseBuffer(), CctwVector3D< T >::volume(), and CctwChunkedData::writeChunk().
|
slot |
Definition at line 490 of file cctwdatachunk.cpp.
References m_MergeCounter.
Referenced by CctwTransformer::checkTransform(), and mergeChunk().
|
slot |
Definition at line 365 of file cctwdatachunk.cpp.
References allocateData(), allocateWeights(), index(), m_ChunkData, m_ChunkWeights, m_MergeLock, and CctwObject::printMessage().
Referenced by Cctwtcl_Merge_Cmd().
|
slot |
Definition at line 541 of file cctwdatachunk.cpp.
References deallocateWeights(), index(), m_ChunkData, m_ChunkSize, m_ChunkWeights, m_Normalized, CctwObject::printMessage(), and CctwVector3D< T >::volume().
Referenced by CctwChunkedData::normalizeChunk().
|
slot |
Definition at line 192 of file cctwdatachunk.cpp.
References m_ChunkSize, CctwVector3D< T >::x(), CctwVector3D< T >::y(), and CctwVector3D< T >::z().
Referenced by data(), setData(), setWeight(), and weight().
|
slot |
Definition at line 495 of file cctwdatachunk.cpp.
References m_ChunkData, m_ChunkWeights, m_MergeData, m_MergeLock, and m_MergeWeights.
Referenced by mergeChunk().
|
slot |
Definition at line 523 of file cctwdatachunk.cpp.
References data(), m_ChunkData, m_ChunkWeights, m_MergeData, m_MergeLock, and m_MergeWeights.
Referenced by mergeChunk().
|
private |
Definition at line 291 of file cctwdatachunk.cpp.
References g_Allocated().
Referenced by allocateData(), allocateWeights(), deallocateData(), deallocateWeights(), mergeChunk(), and ~CctwDataChunk().
|
slot |
Definition at line 350 of file cctwdatachunk.cpp.
References m_ChunkIndex, m_Dependencies, m_DependenciesLock, CctwObject::printMessage(), and sortDependencies().
Referenced by CctwApplication::reportDependencies(), CctwApplication::reportInputDependencies(), and CctwApplication::reportOutputDependencies().
|
staticslot |
Definition at line 246 of file cctwdatachunk.cpp.
References g_Allocated(), g_AllocationLimit(), g_Available(), and g_MaxAllocated().
Referenced by CctwTransformer::transform().
|
slot |
Definition at line 114 of file cctwdatachunk.cpp.
References calculateChunkStart(), m_ChunkStart, and CctwVector3D< T >::toString().
|
slot |
Definition at line 284 of file cctwdatachunk.cpp.
References m_ChunkData, m_OwnData, and CctwObject::printMessage().
|
slot |
|
slot |
Definition at line 228 of file cctwdatachunk.cpp.
References m_ChunkData, and pixelOffset().
|
slot |
Definition at line 237 of file cctwdatachunk.cpp.
References m_ChunkWeights, and pixelOffset().
|
slot |
Definition at line 316 of file cctwdatachunk.cpp.
References m_Dependencies, and m_DependenciesLock.
Referenced by reportDependencies(), and CctwTransformer::saveDependencies().
|
slot |
Definition at line 217 of file cctwdatachunk.cpp.
References m_ChunkWeights, and pixelOffset().
Referenced by CctwTransformer::transformChunkData().
|
slot |
Definition at line 104 of file cctwdatachunk.cpp.
References m_ChunkWeights.
|
slot |
Definition at line 94 of file cctwdatachunk.cpp.
References m_ChunkWeights.
Referenced by Cctwtcl_Input_Cmd(), Cctwtcl_Transform_Cmd(), CctwTransformer::checkTransform(), CctwChunkedData::readChunk(), and CctwChunkedData::writeChunk().
|
private |
Definition at line 89 of file cctwdatachunk.h.
Referenced by allocateData(), data(), dataAllocated(), dataPointer(), deallocateData(), detachData(), mergeData(), normalizeChunk(), popMergeData(), pushMergeData(), setBuffer(), setData(), and ~CctwDataChunk().
|
private |
Definition at line 86 of file cctwdatachunk.h.
Referenced by calculateChunkSize(), calculateChunkStart(), index(), mergeChunk(), and reportDependencies().
|
private |
Definition at line 88 of file cctwdatachunk.h.
Referenced by allocateBuffer(), allocateData(), allocateWeights(), chunkSize(), deallocateData(), deallocateWeights(), normalizeChunk(), pixelOffset(), and setChunkSize().
|
private |
Definition at line 87 of file cctwdatachunk.h.
Referenced by calculateChunkSize(), chunkStart(), and resetChunkStart().
|
private |
Definition at line 90 of file cctwdatachunk.h.
Referenced by allocateWeights(), deallocateWeights(), detachWeights(), mergeData(), normalizeChunk(), popMergeData(), pushMergeData(), setWeight(), weight(), weightsAllocated(), weightsPointer(), and ~CctwDataChunk().
|
private |
Definition at line 85 of file cctwdatachunk.h.
Referenced by calculateChunkSize(), calculateChunkStart(), and mergeChunk().
|
private |
Definition at line 92 of file cctwdatachunk.h.
|
private |
Definition at line 94 of file cctwdatachunk.h.
Referenced by addDependency(), clearDependencies(), dependency(), dependencyCount(), reportDependencies(), and sortDependencies().
|
mutableprivate |
Definition at line 95 of file cctwdatachunk.h.
Referenced by addDependency(), clearDependencies(), dependency(), dependencyCount(), reportDependencies(), and sortDependencies().
|
private |
Definition at line 97 of file cctwdatachunk.h.
Referenced by clearMergeCounters(), incMergeCounters(), and mergeCount().
|
private |
Definition at line 98 of file cctwdatachunk.h.
Referenced by popMergeData(), and pushMergeData().
|
private |
Definition at line 96 of file cctwdatachunk.h.
Referenced by mergeData(), popMergeData(), and pushMergeData().
|
private |
Definition at line 99 of file cctwdatachunk.h.
Referenced by popMergeData(), and pushMergeData().
|
private |
Definition at line 91 of file cctwdatachunk.h.
Referenced by clearMergeCounters(), and normalizeChunk().
|
private |
True iff this object owns the chunk memory
Definition at line 101 of file cctwdatachunk.h.
Referenced by setBuffer(), and ~CctwDataChunk().
|
private |
Definition at line 93 of file cctwdatachunk.h.