HIOUtilityDwfExport
-
class
HIOUtilityDwfExport The
HIOUtilityDwfExportis the integration class for the DWF toolkit. Using this integration class allows you to export Autodesk’s DWF (Design Web Format). This integration is based on DWF Toolkit version 7+. To use this integration class you will need to obtain a license of DWF Toolkit.Inherits from:
HOutputHandler
Methods
-
HIOUtilityDwfExport::HIOUtilityDwfExport()
-
HIOUtilityDwfExport::~HIOUtilityDwfExport()
-
void
HIOUtilityDwfExport::RegisterOutputHandlerTypes() virtual
This abstract function must register extension types to be handled by subclassed
HOutputHandlerinstance.{HIORegisterOutputType("tif",this); HIORegisterOutputType("tiff",this);};
For example, the following lines of code can be used to specify a class that will handle files with “tiff” and “tif” extensions:
-
HOutputHandlerStyle
HIOUtilityDwfExport::GetOutputStyle() virtual
{return HOutputHandlerStyleModel;}
For example: the following code can be used for an
HOutputHandlerthat outputs model:Returns
TheHOutputHandlerStylethat this instance will use. It can be HOutputHandlerStyleModel for geometry data,HOutputHandlerStyleImagefor images,HOutputHandlerStyleHardcopyfor hardcopy orHOutputHandlerStyleHTMLfor MVO style html page.
-
char const *
HIOUtilityDwfExport::GetOutputTypesString() virtual
{return "stl";};
This must be implemented in a subclassed
HOutputHandlerFor example: the following line of code can be use to specify the stl extension:{return "jpg;bmp;gif";};
The following line of code can be used to specify that jpg, bmp and gif extension are handled:
Returns
The extension type or types that can be handled by thisHOutputHandler.
-
char const *
HIOUtilityDwfExport::GetOutputName() virtual
Returns
A character pointer denoting the name of the handler.
-
HFileOutputResult
HIOUtilityDwfExport::FileOutputByKey(__wchar_t const *FileName, HC_KEY key, HOutputHandlerOptions *options) virtual
This method creates a DWF file of the segment tree defined under key.
Parameters
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
Returns
OutputOK if the export succeeds
-
HFileOutputResult
HIOUtilityDwfExport::FileOutputByKey(unsigned short const *FileName, HC_KEY key, HOutputHandlerOptions *options) virtual
This method writes model data from a given HOOPS key to a given output file. Note that this must be implemented in a subclassed
HOutputHandlerinstance handling models.Parameters
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.
Returns
The #HFileOutputResult result of the output operation.