ErrorLodSelector Class Reference
The level of detail selector assigns a level of detail to the VolumeBricks based on the error of their low resolution bricks compared to their high resolution versions. More...
#include <errorlodselector.h>
Public Member Functions | |
| ErrorLodSelector (BrickingInformation &brickingInformation) | |
| virtual void | selectLods () |
| Assigns a level of detail to every VolumeBrick based on the error of its low resolution version compared to its high resolution version. | |
Protected Member Functions | |
| void | initializeErrorSet () |
| Creates an ErrorStruct for every VolumeBrick and puts them into the errorSet_. | |
| void | calculateNextImprovement (ErrorStruct errorStruct) |
| Calculates to which level of detail the brick in the errorStruct should be improved. | |
Protected Attributes | |
| std::set< ErrorStruct, std::greater< ErrorStruct > > | errorSet_ |
| A set holding all the ErrorStructs, sorted by the ErrorStruct with the largest error reduction per byte. | |
| int | voxelSizeInByte_ |
| The size of a voxel in byte. | |
| int | availableMemoryInByte_ |
| The memory availabe for all the bricks' volume data. | |
| int | usedMemoryInByte_ |
| The memory already consumed by the bricks' volume data. | |
Detailed Description
The level of detail selector assigns a level of detail to the VolumeBricks based on the error of their low resolution bricks compared to their high resolution versions.
Definition at line 92 of file errorlodselector.h.
Member Function Documentation
| void calculateNextImprovement | ( | ErrorStruct | errorStruct | ) | [protected] |
Calculates to which level of detail the brick in the errorStruct should be improved.
This depends on how much the error would be reduced and on how much memory would be needed.
Definition at line 108 of file errorlodselector.cpp.
Member Data Documentation
std::set<ErrorStruct, std::greater<ErrorStruct> > errorSet_ [protected] |
A set holding all the ErrorStructs, sorted by the ErrorStruct with the largest error reduction per byte.
The first element in the set is therefore the brick that is improved next.
Definition at line 123 of file errorlodselector.h.