24#ifndef __SO_VECTORIZE_GDI_ACTION_
25#define __SO_VECTORIZE_GDI_ACTION_
34# include <Inventor/Win/SoWinDef.h>
38# define HGDIOBJ void *
40# define HGDIOBJ void *
41 typedef uint32_t DWORD;
42 typedef DWORD COLORREF;
49#include <HardCopy/SoVectorizeAction.h>
233 static void initClass();
234 static void exitClass();
238 virtual void printPolyMark(
const SbVec4f* points,
int num_points,
240 virtual void printPolyMark(
const SbVec4f* points,
int num_points,
243 virtual void printImage(
const SbVec4f &origin,
const unsigned char *imagePixels,
248 virtual void printPolyLine(
const SbVec4f* points,
int num_points,
250 float thickness, u_short pattern,
int linePatternScaleFactor);
251 virtual void printPolygon(
const SbVec4f* points,
int num_points,
253 const SbString &name,
const unsigned char* pattern);
255 const SbString& font_name,
float font_size,
256 const SbString&
string,
int justif,
float angle);
259 HDC getPrinterDC(
void);
262 virtual void writeHeader();
263 virtual void writeFooter();
266 virtual void printBorder();
267 virtual void printBackground();
270 virtual void setHardwareClip();
274 void assignColor(
SbColor,
float);
275 void selectPen(DWORD, DWORD, COLORREF,
SbBool);
277 void pointsToLandscape(POINT *,
int);
286 structCurrentPen currentPen;
289 HBRUSH m_currentBrush;
291 COLORREF m_currentBrushColor;
297 float m_currentMiterLimit;
306 int m_offsetX, m_offsetY;
Class for smart character strings.
<a href="IconLegend.html"><img src="extHC.gif" alt="HardCopy" border="0"></a> Manage vector output t...
void openFile()
Default method: Opens the printer dialog box for paper output.
virtual ~SoGDIVectorOutput()
Destructor.
void closeFile()
Fully optional.
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).
SoGDIVectorOutput()
Constructor.
VertAlignment
Vertical alignment.
HorAlignment
Horizontal alignment.
<a href="IconLegend.html"><img src="extTGS.gif" alt="VSG extension" border="0"></a> Extension of Poi...
<a href="IconLegend.html"><img src="extHC.gif" alt="HardCopy" border="0"></a> Abstract class used to...
<a href="IconLegend.html"><img src="extHC.gif" alt="HardCopy" border="0"></a> Abstract class for vec...
EndLineStyle
End line style.
JoinLineStyle
Join line style.
<a href="IconLegend.html"><img src="extHC.gif" alt="HardCopy" border="0"></a> Vectorize a scene grap...
SoGDIVectorOutput * getGDIVectorOutput() const
Returns the SoGDIVectorOutput instance in action.
SbBool hasPrinter()
Returns TRUE if the printer is set.
virtual ~SoVectorizeGDIAction()
Destructor.
SoVectorizeGDIAction()
Constructor.