Alphabetical Class List   File List   Compound Members  

HIOUtilityGDIOutput Class Reference

The HIOUtilityGDIOutput class should be used for exporting data to a Windows Printer or Clipboard Device Context (DC). More...

#include <HIOUtilityGDIOutput.h>

List of all members.

Public Methods

const char * GetOutputTypesString ()
HOutputHandlerStyle GetOutputStyle ()
HFileOutputResult FileOutputByKey (const char *FileName, HC_KEY key, HOutputHandlerOptions *options)


Detailed Description

The HIOUtilityGDIOutput class should be used for exporting data to a Windows Printer or Clipboard Device Context (DC).

Via the GDIExportInfo structure you supply the id to the device context, the window handle and a bool indicating whether or not this is export to a clipboard or printer DC. The code queries the device and repositions subwindows to ensure we get WYSIWYG printing. This code should be used as a reference for developers who want to get WYSIWYG printing of their subwindows.

The printing code employs a multi-pass render approach where it first creates an image of all the data which would be sent down as rasters when rendered to a clipboard or printer DC and then sends down the rest of the (vector) data after first passing it through a hidden surface removal algorithm to ensure it is sorted correctly wrt to the data in the image. Using this appraoch means that the image and shaded geometry in the scene will be sent down in one quik BitBlit while the remaining polylines, edges, text and markers will be sent down as vector primitives. This results in high quality hardcopy and clipboard output.


Member Function Documentation

HFileOutputResult HIOUtilityGDIOutput::FileOutputByKey const char *    FileName,
HC_KEY    key,
HOutputHandlerOptions *    options
 

This function should be used for all GDI Print and Copy to Clipboard work

Parameters:
FileName  A character pointer denoting the name of the file to be read in
key  This is typically unused
options  You pass in the HBaseView pointer, the camera setting, the device context and the hWnd within this structure
Returns:
result of operation

HOutputHandlerStyle HIOUtilityGDIOutput::GetOutputStyle   [inline]
 

Returns:
The styles of model exported by this handler.

const char* HIOUtilityGDIOutput::GetOutputTypesString   [inline]
 

Returns:
The file extensions which may be created by this handler.


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


Copyright © 2002 Tech Soft 3D