Manage vector output to GDI devices.
[Windows only] This class is not implemented on UNIX systems.
More...
#include <HardCopy/SoVectorizeGDIAction.h>
Public Member Functions | |
SoGDIVectorOutput () | |
Constructor. | |
virtual | ~SoGDIVectorOutput () |
Destructor. | |
SoNONUNICODE SbBool | openFile (const char *file_name) |
Opens the GDI output as a Windows Enhanced MetaFile (.EMF) from the given file name. | |
SbBool | openFile (const SbString &file_name) |
Opens the GDI output as a Windows Enhanced MetaFile (.EMF) from the given file name. | |
void | openFile (HDC hdc) |
Initializes GDI output using the given device context (type HDC). | |
void | openFile () |
Default method: Opens the printer dialog box for paper output. | |
void | closeFile () |
Fully optional. | |
Public Member Functions inherited from SoVectorOutput | |
SoVectorOutput () | |
Constructor. | |
virtual | ~SoVectorOutput () |
Destructor. | |
virtual void | setFilePointer (FILE *newFP) |
Sets file pointer to write to. | |
virtual FILE * | getFilePointer () |
Returns the file pointer in use. | |
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.
Definition at line 64 of file SoVectorizeGDIAction.h.
SoGDIVectorOutput::SoGDIVectorOutput | ( | ) |
Constructor.
The default constructor enables the printer job.
|
virtual |
Destructor.
The destructor closes any output opened by the SoGDIVectorOutput.
|
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.
|
virtual |
Opens the GDI output as a Windows Enhanced MetaFile (.EMF) from the given file name.
Non Unicode: This function should not be used in a Unicode application. Use the SbString version.
Reimplemented from SoVectorOutput.
Opens the GDI output as a Windows Enhanced MetaFile (.EMF) from the given file name.
Reimplemented from SoVectorOutput.
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.