#include <HIOUtilityDwfExport.h>
Public Member Functions | |
HFileOutputResult | FileOutputByKey (const unsigned short *FileName, HC_KEY key, HOutputHandlerOptions *options) |
HFileOutputResult | FileOutputByKey (const __wchar_t *FileName, HC_KEY key, HOutputHandlerOptions *options) |
const char * | GetOutputName () |
HOutputHandlerStyle | GetOutputStyle () |
const char * | GetOutputTypesString () |
void | RegisterOutputHandlerTypes () |
HFileOutputResult HIOUtilityDwfExport::FileOutputByKey | ( | const unsigned short * | filename, | |
HC_KEY | key, | |||
HOutputHandlerOptions * | options | |||
) | [inline, virtual] |
This method writes model data from a given HOOPS key to a given output file. Note that this must be implimented in a subclassed HOutputHandler instance handling models.
filename | The wide character name of the file to output. | |
key | The HOOPS segment key to get output model data from. | |
options | The options class containing any needed extra information for the operation. |
Reimplemented from HOutputHandler.
References HOutputHandler::FileOutputByKey().
HFileOutputResult HIOUtilityDwfExport::FileOutputByKey | ( | const __wchar_t * | FileName, | |
HC_KEY | key, | |||
HOutputHandlerOptions * | options | |||
) | [virtual] |
This method creates a DWF file of the segment tree defined under key.
FileName | A character pointer denoting the name of the file to be written | |
key | A hoops key of the segment - the tree underneath which is required to be exported | |
options | Export options |
Reimplemented from HOutputHandler.
const char* HIOUtilityDwfExport::GetOutputName | ( | ) | [inline, virtual] |
HOutputHandlerStyle HIOUtilityDwfExport::GetOutputStyle | ( | ) | [inline, virtual] |
{return HOutputHandlerStyleModel;}
Implements HOutputHandler.
const char* HIOUtilityDwfExport::GetOutputTypesString | ( | ) | [inline, virtual] |
This must be implemented in a subclassed HOutputHandler
{return "stl";};
The following line of code can be used to specify that jpg, bmp and gif extension are handled:
{return "jpg;bmp;gif";};
Implements HOutputHandler.
void HIOUtilityDwfExport::RegisterOutputHandlerTypes | ( | ) | [inline, virtual] |
This abstract function must register extension types to be handled by subclassed HOutputHandler instance.
For example, the following lines of code can be used to specify a class that will handle files with "tiff" and "tif" extensions:
{HIORegisterOutputType("tif",this); HIORegisterOutputType("tiff",this);};
Implements HOutputHandler.
References HIORegisterOutputType.