# HIOUtilityHPGL2

## Functions

| `HIOUtilityHPGL2`
| `~HIOUtilityHPGL2`
char const * | `GetOutputName`
void | `RegisterOutputHandlerTypes`
char const * | `GetOutputTypesString`
`HOutputHandlerStyle` | `GetOutputStyle`
char const * | `GetOutputDefaultHSRA`
`HFileIOResult` | `FileOutputByKey`
`HFileIOResult` | `FileOutputByKey`
`HFileIOResult` | `FileOutputByKey`

## Detailed Description

class `HIOUtilityHPGL2` : public HOutputHandler

  The HIOUtilityHPGL is the class for writing HPGL2 files using the HOOPS HPGL2 driver. The output files are suitable to send to a HPGL2 printer or plotter.

  Public Functions

  inline `HIOUtilityHPGL2`()

    Constructs an HIOUtilityHPGL2 object.

  inline `~HIOUtilityHPGL2`()
  inline virtual char const *`GetOutputName`()

    Returns: | A character pointer denoting the name of the handler.

  inline virtual void `RegisterOutputHandlerTypes`()

    This method registers the “hp” extension to this handler as an output handler.

  inline virtual char const *`GetOutputTypesString`()

    Returns: | The string of the type of output this handler creates which is “hp”.

  inline virtual HOutputHandlerStyle `GetOutputStyle`()

    Returns: | The type of output style which is HOutputHandlerStyleHardcopy.

  inline virtual char const *`GetOutputDefaultHSRA`()

    Returns: | The default HSRA for the HIOUtilityHPGL2 instance.

  virtual HFileIOResult `FileOutputByKey`(__wchar_t const *filename, HC_KEY key, HOutputHandlerOptions *options)

    This method writes a HPGL2 file out of the segment tree underneath the given key.

    Parameters: | filename – The name of the file to output. key – The HOOPS segment key to get output data from. options – The options class containing any needed extra information for the operation.
    Returns: | The #HFileOutputResult result of the output operation.

  inline virtual HFileIOResult `FileOutputByKey`(unsigned short const *filename, HC_KEY key, HOutputHandlerOptions *options)

    This method writes model data from a given HOOPS key to a given output file. Note that this must be implemented in a subclassed HOutputHandler instance 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.

  inline virtual HFileIOResult `FileOutputByKey`(char const *filename, HC_KEY key, HOutputHandlerOptions *options)

    This method writes model data from a given HOOPS key to a given output file. Note that this must be implemented in a subclassed HOutputHandler instance 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.

Conversation saved
HOOPSY BETA

### Hello! I'm HOOPSY

Your Docs generative AI assistant. Ask me anything about HOOPS Visualize 3DF or choose a sample question below to start a conversation:

What is HOOPS Visualize 3DF?
What are the latest release notes for HOOPS Visualize 3DF?
How do I start evaluating HOOPS Visualize 3DF?
How do I write my first sample application?
How can I get assistance?

HOOPSY may store conversations according to OpenAI's policy. Responses may not always be accurate.

HOOPSY is thinking...