HIOUtilityExchange
-
class
HIOUtilityExchange The
HIOUtilityExchangeclass is used for loading a variety of CAD formats (mostly Brep) into HOOPS. It requires an installation of HOOPS Exchange. The CAD file is converted to an internal format (PRC) which is then parsed for hierachy information and to create the tesselated data.Inherits from:
HInputHandler,HOutputHandlerIndex
Methods
BuildPRCModel()FileInputByKey()FileInputByKey()FileInputByKey()FileOutputByKey()FileOutputByKey()FileOutputByKey()GetInputName()GetInputStyle()GetInputTypesString()GetOutputName()GetOutputStyle()GetOutputTypesString()HIOUtilityExchange()RegisterInputHandlerTypes()RegisterOutputHandlerTypes()~HIOUtilityExchange()
Variables
Methods
-
HIOUtilityExchange::HIOUtilityExchange() Constructs an HIOUtility object.
-
virtual
HIOUtilityExchange::~HIOUtilityExchange() virtual
-
void
HIOUtilityExchange::RegisterInputHandlerTypes() override virtual
This method registers the appropriate extensions to this handler as an input handler.
-
char const *
HIOUtilityExchange::GetOutputName() virtual
Returns
A character pointer denoting the name of the handler.
-
char const *
HIOUtilityExchange::GetInputName() virtual
Returns
A character pointer denoting the name of the input handler.
-
char const *
HIOUtilityExchange::GetInputTypesString() virtual
Returns
The input extension type that is handled byHIOUtilityExchange.
-
HInputHandlerStyle
HIOUtilityExchange::GetInputStyle() virtual
Returns
The type of input style which isHInputHandlerStyleModel.
-
HFileInputResult
HIOUtilityExchange::FileInputByKey(wchar_t const *FileName, HC_KEY key, HInputHandlerOptions *options) This method reads the modeller file ‘filename’ into the segment tree underneath key.
Parameters
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.
Returns
The #HFileInputResult result of the input operation.
-
HFileInputResult
HIOUtilityExchange::FileInputByKey(char const *FileName, HC_KEY key, HInputHandlerOptions *options) virtual
This method loads model data from a given file to a given HOOPS segment key. Note that this must be implemented in a subclassed
HInputHandlerinstance handling models.Parameters
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 the operation.
Returns
The #HFileInputResult result of the input operation.
-
HFileInputResult
HIOUtilityExchange::FileInputByKey(unsigned short const *FileName, HC_KEY key, HInputHandlerOptions *options) virtual
This method loads model data from a given file to a given HOOPS segment key. Note that this must be implemented in a subclassed
HInputHandlerinstance handling models.Parameters
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 the operation.
Returns
The #HFileInputResult result of the input operation.
-
HFileOutputResult
HIOUtilityExchange::FileOutputByKey(wchar_t const *filename, HC_KEY key, HOutputHandlerOptions *options)
-
HFileOutputResult
HIOUtilityExchange::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.
-
HFileOutputResult
HIOUtilityExchange::FileOutputByKey(char 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 name of the file to output.
key: The HOOPS segment key to output model data from.
options: The options class containing any needed extra information for the operation.
Returns
The #HFileOutputResult result of the output operation.
-
void
HIOUtilityExchange::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:
-
virtual void *
HIOUtilityExchange::BuildPRCModel(HOutputHandlerOptions *options, HC_KEY key) virtual
!This method creates a A3DAsmModelFile object from a HOOPS segment tree
Parameters
options: Output Handler Options. The m_pHBaseView must be set
key: Start Segment Key
Returns
A3DAsmModelFile pointer
-
char const *
HIOUtilityExchange::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.
-
HOutputHandlerStyle
HIOUtilityExchange::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.
Variables
-
int
HIOUtilityExchange::m_TextureLastCount - int