Open Inventor Release 2024.1.3
 
Loading...
Searching...
No Matches
SoGDIVectorOutput Class Reference

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:

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.
 

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.

Definition at line 64 of file SoVectorizeGDIAction.h.

Constructor & Destructor Documentation

◆ SoGDIVectorOutput()

SoGDIVectorOutput::SoGDIVectorOutput ( )

Constructor.

The default constructor enables the printer job.

◆ ~SoGDIVectorOutput()

virtual SoGDIVectorOutput::~SoGDIVectorOutput ( )
virtual

Destructor.

The destructor closes any output opened by the SoGDIVectorOutput.

Member Function Documentation

◆ closeFile()

void SoGDIVectorOutput::closeFile ( )
virtual

Fully optional.

Inactive but exists for consistency with the other output formats.

Reimplemented from SoVectorOutput.

◆ openFile() [1/4]

void SoGDIVectorOutput::openFile ( )

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

◆ openFile() [2/4]

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: This function should not be used in a Unicode application. Use the SbString version.

Reimplemented from SoVectorOutput.

◆ openFile() [3/4]

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.

◆ openFile() [4/4]

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.


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