This structure returns information to the application when using fixed resolution mode. More...
#include <LDM/nodes/SoLDMResourceParameters.h>
Public Types | |
enum | ReportCode { PROGRESS, ABORT } |
Public Attributes | |
ReportCode | what |
int | numTilesToAdd |
int | numTilesToLoad |
int | numTilesLoaded |
This structure returns information to the application when using fixed resolution mode.
Available report code.
PROGRESS |
Loading in progress. In this case, the progress is indicated by the two variables numTilesToLoad and numTilesLoaded. The current resources of the machine allow LDM to load the data at the specified resolution. In this case, the only possible way to receive an ABORT report code from the system is either if the user changes the resources (i.e., decreases the main memory space), or add some new geometry to the scene. |
ABORT |
If LDM cannot grant a fixed resolution request, the callback function is called with an ABORT report code. In this case, LDM will automatically disable the fixed resolution mode. The FixedResolutionCB callback will be called with an ABORT report code in the following cases:
|
Number of tiles LDM has already loaded.
The value of this variable is relevant only if the callback is called with a PROGRESS report code.
How many more tiles need to be allowed in main memory.
The value of this variable is relevant only if the callback is called with an ABORT report code. An automatic memory adjustment is possible by calling setMaxTilesInMainMem( getMaxTilesInMainMem() + numTilesToAdd ) and then reenabling the fixed resolution mode within the callback function.
How many tiles need to be loaded.
The value of this variable is relevant only if the callback is called with a PROGRESS report code.