Alphabetical Class Index  Class Hierarchy   File Members   Compound Members   File List  

HIOUtilityWhip2D Class Reference

#include <HIOUtilityDwfExport.h>

List of all members.

Public Member Functions

HFileOutputResult FileOutputByKey (const __wchar_t *filename, HC_KEY key, HOutputHandlerOptions *options)
HFileOutputResult FileOutputByKey (const unsigned short *filename, HC_KEY key, HOutputHandlerOptions *options)
const char * GetOutputDefaultHSRA ()
const char * GetOutputName ()
HOutputHandlerStyle GetOutputStyle ()
const char * GetOutputTypesString ()
void RegisterOutputHandlerTypes ()

Detailed Description

The HIOUtilityWhip2D is the class for writing DWF Whip 2D files using the HOOPS Whip 2D driver.


Member Function Documentation

HFileOutputResult HIOUtilityWhip2D::FileOutputByKey ( const __wchar_t *  filename,
HC_KEY  key,
HOutputHandlerOptions options 
) [virtual]

This method writes a 2D DWF (Whip) file out of the segment tree underneath key

Parameters:
FileNameA character pointer denoting the name of the file to be written
keyA hoops key of the segment - the tree underneath which is required to be exported
optionsExport options
Returns:
OutputOK if the export succeeds

Reimplemented from HOutputHandler.

HFileOutputResult HIOUtilityWhip2D::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.

Parameters:
filenameThe wide character name of the file to output.
keyThe HOOPS segment key to get output model data from.
optionsThe options class containing any needed extra information for the operation.
Returns:
The #HFileOutputResult result of the output operation.

Reimplemented from HOutputHandler.

References HOutputHandler::FileOutputByKey().

const char* HIOUtilityWhip2D::GetOutputDefaultHSRA ( ) [inline, virtual]
Returns:
A default HSRA for HOutputHandler instance if needed.

For example: the following line of code might be used for an output handler needing painters:

 
 {return "painters";};

Reimplemented from HOutputHandler.

const char* HIOUtilityWhip2D::GetOutputName ( ) [inline, virtual]
Returns:
A character pointer denoting the name of the handler.

Implements HOutputHandler.

HOutputHandlerStyle HIOUtilityWhip2D::GetOutputStyle ( ) [inline, virtual]
Returns:
The HOutputHandlerStyle that this instance will use. It can be HOutputHandlerStyleModel for geometry data, HOutputHandlerStyleImage for images, HOutputHandlerStyleHardcopy for hardcopy or HOutputHandlerStyleHTML for MVO style html page.

For example: the following code can be used for an HOutputHandler that outputs model:

 
 {return HOutputHandlerStyleModel;}

Implements HOutputHandler.

References HOutputHandlerStyleHardcopy.

const char* HIOUtilityWhip2D::GetOutputTypesString ( ) [inline, virtual]

This must be implemented in a subclassed HOutputHandler

Returns:
The extension type or types that can be handled by this HOutputHandler.

For example: the following line of code can be use to specify the stl extenstion:

 
 {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 HIOUtilityWhip2D::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.


The documentation for this class was generated from the following file: