SoGDIVectorOutput Class Reference
[HardCopy]

HardCopy Manage vector output to GDI devices.
[Windows only] This class is not implemented on UNIX systems. More...

#include <HardCopy/SoVectorizeGDIAction.h>

Inheritance diagram for SoGDIVectorOutput:
SoVectorOutput

List of all members.

Public Member Functions

 SoGDIVectorOutput ()
virtual ~SoGDIVectorOutput ()
SoNONUNICODE SbBool openFile (const char *file_name)
SbBool openFile (const SbString &file_name)
void openFile (HDC hdc)
void openFile ()
void closeFile ()

Detailed Description

HardCopy Manage vector output to GDI devices.
[Windows only] This class is not implemented on UNIX systems.

This class is used for writing vector formatted files (Enhanced Metafiles .EMF), for printing directly under MS-Windows, or with a application device context (DC).

An instance of SoGDIVectorOutput is contained in an SoVectorizeGDIAction. This is typically the only instance needed.


Constructor & Destructor Documentation

SoGDIVectorOutput::SoGDIVectorOutput (  ) 

Constructor.

The default constructor enables the printer job.

virtual SoGDIVectorOutput::~SoGDIVectorOutput (  )  [virtual]

Destructor.

The destructor closes any output opened by the SoGDIVectorOutput.


Member Function Documentation

void SoGDIVectorOutput::closeFile (  )  [virtual]

Fully optional.

Inactive but exists for consistency with the other output formats.

Reimplemented from SoVectorOutput.

void SoGDIVectorOutput::openFile (  ) 

Default method: Opens the printer dialog box for paper output.

void SoGDIVectorOutput::openFile ( HDC  hdc  ) 

Initializes GDI output using the given device context (type HDC).

But the device context must be first converted into a MM_HIMETRIC mapmode (units: 1/100th mm, the origin being in the bottom left corner, positive x to the right and positive y up). The mapmode can be restored after output processing.

SbBool SoGDIVectorOutput::openFile ( const SbString file_name  )  [virtual]

Opens the GDI output as a Windows Enhanced MetaFile (.EMF) from the given file name.

Reimplemented from SoVectorOutput.

SoNONUNICODE SbBool SoGDIVectorOutput::openFile ( const char *  file_name  )  [virtual]

Opens the GDI output as a Windows Enhanced MetaFile (.EMF) from the given file name.

Non Unicode List:
This function should not be used in a Unicode application. Use the SbString version.

Reimplemented from SoVectorOutput.


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

Open Inventor Toolkit reference manual, generated on 22 Sep 2021
Copyright © Thermo Fisher Scientific All rights reserved.
http://www.openinventor.com/