#include <HIOUtilityOOC.h>
Public Member Functions | |
HFileInputResult | FileInputByKey (wchar_t const *filename, HC_KEY key, HInputHandlerOptions *options) |
HFileInputResult | FileInputByKey (char const *filename, HC_KEY key, HInputHandlerOptions *options) |
char const * | GetInputName () |
HInputHandlerStyle | GetInputStyle () |
char const * | GetInputTypesString () |
HIOUtilityOOC () | |
void | RegisterInputHandlerTypes () |
Static Public Member Functions | |
static bool | FreePointCloudData (int signal, void *signal_data, void *user_data) |
static bool | UpdateCheck (float request_time, float actual_time, void *user_data) |
The HIOUtilityOOC is the HIO plug-in class for the HOOPS/OOC module. Using this input handler, you can load OOC files that have been preprocess by ooc.exe into the HOOPS database.
HIOUtilityOOC::HIOUtilityOOC | ( | ) |
Constructs an HIOUtilitySKP object.
HFileInputResult HIOUtilityOOC::FileInputByKey | ( | wchar_t const * | filename, |
HC_KEY | key, | ||
HInputHandlerOptions * | options | ||
) |
This method reads the OOC file into the segment tree underneath given key.
filename | The UNICODE name of the file to load. |
key | The HOOPS segment key to load model data into. |
options | An options class containing any needed extra information for operation. |
HFileInputResult HIOUtilityOOC::FileInputByKey | ( | char const * | filename, |
HC_KEY | key, | ||
HInputHandlerOptions * | options | ||
) | [inline, virtual] |
This method reads the OOC file into the segment tree underneath given key.
filename | The name of the file to load. |
key | The HOOPS segment key to load model data into. |
options | An options class containing any needed extra information for operation. |
Reimplemented from HInputHandler.
char const* HIOUtilityOOC::GetInputName | ( | ) | [inline, virtual] |
Implements HInputHandler.
HInputHandlerStyle HIOUtilityOOC::GetInputStyle | ( | ) | [inline, virtual] |
This abstract method returns the HInputHandlerStyle the HInputHandler.
For example, the following line of code can be used for an HInputHandler that handles models:
{return HInputHandlerStyleModel;}
Implements HInputHandler.
References HInputHandlerStyleModel.
char const* HIOUtilityOOC::GetInputTypesString | ( | ) | [inline, virtual] |
This method must be implemented in a subclassed HInputHandler.
Examples:
The following line of code can be used to specify the stl extension:
{return "stl";};
The following line of code can be used to specify that the jpg, bmp and gif extension are handled:
{return "jpg;bmp;gif";};
Implements HInputHandler.
void HIOUtilityOOC::RegisterInputHandlerTypes | ( | ) | [virtual] |
This abstract function must register extension types to be handled by subclassed HInputHandler instance.
For example, the following line of code can be used to specify a class that will handle files with "stl" extensions:
{HIORegisterInputType("stl",this);};
Implements HInputHandler.