This structure returns information to the application when fixedResolution is TRUE and resolution is not -1. More...
#include <LDM/nodes/SoLDMResourceParameters.h>
Public Types | |
enum | ReportCode { PROGRESS , ABORT } |
Available report code. More... | |
Public Attributes | |
ReportCode | what |
Report code. | |
int | numTilesToAdd |
How many more tiles need to be allowed in main memory. | |
int | numTilesToLoad |
How many tiles need to be loaded. | |
int | numTilesLoaded |
Number of tiles LDM has already loaded. | |
This structure returns information to the application when fixedResolution is TRUE and resolution is not -1.
Definition at line 81 of file SoLDMResourceParameters.h.
Available report code.
Enumerator | |
---|---|
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:
|
Definition at line 85 of file SoLDMResourceParameters.h.
int SoLDMResourceParameters::FixedResolutionReport::numTilesLoaded |
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.
Definition at line 145 of file SoLDMResourceParameters.h.
int SoLDMResourceParameters::FixedResolutionReport::numTilesToAdd |
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.
Definition at line 135 of file SoLDMResourceParameters.h.
int SoLDMResourceParameters::FixedResolutionReport::numTilesToLoad |
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.
Definition at line 140 of file SoLDMResourceParameters.h.
ReportCode SoLDMResourceParameters::FixedResolutionReport::what |
Report code.
Definition at line 127 of file SoLDMResourceParameters.h.