Alphabetical Class Index  Class Hierarchy   File Members   Compound Members   File List  

HIOUtilityLeadTools.h
1 //
2 // Copyright (c) 2000 by Tech Soft 3D, LLC.
3 // The information contained herein is confidential and proprietary to
4 // Tech Soft 3D, LLC., and considered a trade secret as defined under
5 // civil and criminal statutes. Tech Soft 3D shall pursue its civil
6 // and criminal remedies in the event of unauthorized use or misappropriation
7 // of its trade secrets. Use of this information by anyone other than
8 // authorized employees of Tech Soft 3D, LLC. is granted only under a
9 // written non-disclosure agreement, expressly prescribing the scope and
10 // manner of such use.
11 //
12 
13 
14 #ifndef _HIO_UTILITY_LEADTOOLS_H
15 #define _HIO_UTILITY_LEADTOOLS_H
16 
17 #ifdef H_PACK_8
18 #pragma pack(push)
19 #pragma pack(8)
20 #endif
21 
22 #include "HTools.h"
23 #include "HIOManager.h"
24 
32 class HIOUtilityLeadTools: public HInputHandler, public HOutputHandler
33 {
34 
35 public:
39  SetOutputOps(HOutputOpFileOutputFromImageKey);
40  };
41 
42  ~HIOUtilityLeadTools() {;};
43 
46  // Here is a list of some of the file formats and some of the flavors LEAD supports for Import
47  // add if you think your license of LEAD covers more formats
48  HIORegisterInputType("jpeg",this); // JPEG
49  HIORegisterInputType("jpg",this); // JPEG
50  HIORegisterInputType("bmp",this); // Windows BMP, OS/2 BMP
51  HIORegisterInputType("gif",this); // GIF (Embedded Text, Animated, Interlaced, Transparency),
52  HIORegisterInputType("tif",this); // TIFF 6.0 (MPT, JPEG, Packbits, Huffman, RLE, LZW, CMYK, CCITT, CCITT G31D, CCITT G32D, CCITT G4, Bitonal, Grayscale, Palletized, RGB, YCbCr, CIELAB)
53  HIORegisterInputType("tiff",this); // TIFF 6.0 (MPT, JPEG, Packbits, Huffman, RLE, LZW, CMYK, CCITT, CCITT G31D, CCITT G32D, CCITT G4, Bitonal, Grayscale, Palletized, RGB, YCbCr, CIELAB)
54  HIORegisterInputType("wmf",this); // Windows Metafile (WMF)
55  HIORegisterInputType("emf",this); // Enhanced Metafile (WMF)
56  HIORegisterInputType("ico",this); // Windows Icon (ICO)
57  HIORegisterInputType("cur",this); // Windows Cursor (CUR)
58  HIORegisterInputType("ani",this); // Windows Animated Cursor (ANI)
59  HIORegisterInputType("clp",this); // Windows Clipboard Cursor (CLP)
60  HIORegisterInputType("avi",this); // Windows AVI(AVI)
61  HIORegisterInputType("fpx",this); // FlashPix (FPX)
62  HIORegisterInputType("exf",this); // Fuji Exif 2.0 (EXF)
63  HIORegisterInputType("psd",this); // Adobe PhotoShop (PSD)
64  HIORegisterInputType("pcd",this); // Kodak PhotoCD PCD, EPS, IOCA, MODCA
65  HIORegisterInputType("cal",this); // CALS raster (CAL)
66  HIORegisterInputType("pcx",this); // PC Paintbrush (PCX)
67  HIORegisterInputType("wfx",this); // Winfax (WFX), MAC, VDA
68  HIORegisterInputType("png",this); // CompuServe PNG
69  HIORegisterInputType("tga",this); // Targa (TGA)
70  HIORegisterInputType("ras",this); // Sun Raster (RAS)
71  HIORegisterInputType("pct",this); // Macintosh PICT (PCT), LEAD CMP
72  HIORegisterInputType("awd",this); // Microsoft FAX (AWD)
73  HIORegisterInputType("wpg",this); // WordPerfect (WPG)
74  HIORegisterInputType("msp",this); // Microsoft Paint (MSP)
75  HIORegisterInputType("mac",this); // Machintosh Paint (MAC)
76  HIORegisterInputType("cut",this); // Dr. Halo
77  //HIORegisterInputType("DICOM",this); // DICOM - What's the extension
78  //HIORegisterInputType("pdf",this); // Adobe Portable Document Format(PDF) - required PDF plugin
79  };
80 
83 
85  const char * GetInputTypesString()
86  {return "jpeg;jpg;bmp;gif;tif;tiff;wmf;emf;ico;cur;ani;clp;avi;fpx;exf;psd;pcd;cal;pcx;wfx;png;tga;ras;pct;awd;wpg;msp;mac;cut";};
87 
88 
97  HFileInputResult FileInputToImageKey(const char * filename, HC_KEY *image_key, HC_KEY segment_key, HInputHandlerOptions * options);
98 
101  // Here is a list of some of the file formats and some of the flavors LEAD supports for Export
102  // add if you think your license of LEAD covers more formats
103  HIORegisterOutputType("jpeg",this); // JPEG
104  HIORegisterOutputType("jpg",this); // JPEG
105  HIORegisterOutputType("bmp",this); // Windows BMP, OS/2 BMP
106  HIORegisterOutputType("gif",this); // GIF (Embedded Text, Animated, Interlaced, Transparency),
107  HIORegisterOutputType("tif",this); // TIFF 6.0 (MPT, JPEG, Packbits, Huffman, RLE, LZW, CMYK, CCITT, CCITT G31D, CCITT G32D, CCITT G4, Bitonal, Grayscale, Palletized, RGB, YCbCr, CIELAB)
108  HIORegisterOutputType("tiff",this); // TIFF 6.0 (MPT, JPEG, Packbits, Huffman, RLE, LZW, CMYK, CCITT, CCITT G31D, CCITT G32D, CCITT G4, Bitonal, Grayscale, Palletized, RGB, YCbCr, CIELAB)
109  HIORegisterOutputType("wmf",this); // Windows Metafile (WMF)
110  HIORegisterOutputType("emf",this); // Enhanced Metafile (WMF)
111  HIORegisterOutputType("ico",this); // Windows Icon (ICO)
112  HIORegisterOutputType("cur",this); // Windows Cursor (CUR)
113  HIORegisterOutputType("ani",this); // Windows Animated Cursor (ANI)
114  HIORegisterOutputType("clp",this); // Windows Clipboard Cursor (CLP)
115  HIORegisterOutputType("avi",this); // Windows AVI(AVI)
116  HIORegisterOutputType("fpx",this); // FlashPix (FPX)
117  HIORegisterOutputType("exf",this); // Fuji Exif 2.0 (EXF)
118  HIORegisterOutputType("psd",this); // Adobe PhotoShop (PSD)
119  HIORegisterOutputType("pcd",this); // Kodak PhotoCD PCD, EPS, IOCA, MODCA
120  HIORegisterOutputType("cal",this); // CALS raster (CAL)
121  HIORegisterOutputType("pcx",this); // PC Paintbrush (PCX)
122  HIORegisterOutputType("wfx",this); // Winfax (WFX), MAC, VDA
123  HIORegisterOutputType("png",this); // CompuServe PNG
124  HIORegisterOutputType("tga",this); // Targa (TGA)
125  HIORegisterOutputType("ras",this); // Sun Raster (RAS)
126  HIORegisterOutputType("pct",this); // Macintosh PICT (PCT), LEAD CMP
127  HIORegisterOutputType("awd",this); // Microsoft FAX (AWD)
128  HIORegisterOutputType("wpg",this); // WordPerfect (WPG)
129  HIORegisterOutputType("msp",this); // Microsoft Paint (MSP)
130  HIORegisterOutputType("mac",this); // Machintosh Paint (MAC)
131  HIORegisterOutputType("cut",this); // Dr. Halo
132  //HIORegisterOutputType("DICOM",this); // DICOM - What's the extension
133  //HIORegisterOutputType("pdf",this); // Adobe Portable Document Format(PDF) - - required PDF plugin
134  };
135 
138 
140  const char * GetOutputTypesString()
141  {return "jpeg;jpg;bmp;gif;tif;tiff;wmf;emf;ico;cur;ani;clp;avi;fpx;exf;psd;pcd;cal;pcx;wfx;png;tga;ras;pct;awd;wpg;msp;mac;cut";};
142 
143 
152  HFileOutputResult FileOutputFromImageKey(const char * filename, HC_KEY image_key, HOutputHandlerOptions * options);
153 
154 };
155 
156 
157 
158 #ifdef H_PACK_8
159 #pragma pack(pop)
160 #endif
161 
162 #endif
163 
164 
165 
166 
167 
168 
169 
Definition: HIOUtilityLeadTools.h:32
#define HInputOpFileInputToImageKey
This HInputHandler supports input to an image key.
Definition: HIOManager.h:65
void RegisterOutputHandlerTypes()
Definition: HIOUtilityLeadTools.h:100
Specifies an #HOutputHandler for geometry data.
Definition: HIOManager.h:861
HInputHandler an abstract base class for model and image input.
Definition: HIOManager.h:667
#define HOutputOpFileOutputFromImageKey
This HOutputHandler supports output from an image key.
Definition: HIOManager.h:80
HOutputHandlerStyle
Definition: HIOManager.h:858
Specifies an HInputHandler for image data.
Definition: HIOManager.h:228
HInputHandlerStyle GetInputStyle()
Definition: HIOUtilityLeadTools.h:82
HOutputHandlerStyle GetOutputStyle()
Definition: HIOUtilityLeadTools.h:137
#define HIORegisterInputType(type, input_object)
Definition: HIOManager.h:87
#define HIORegisterOutputType(type, output_object)
HIORegisterOutputType(type,output_object) Used by a HOutputHandler to set extension types that it han...
Definition: HIOManager.h:92
HFileOutputResult FileOutputFromImageKey(const char *filename, HC_KEY image_key, HOutputHandlerOptions *options)
void RegisterInputHandlerTypes()
Definition: HIOUtilityLeadTools.h:45
HInputHandlerStyle
Definition: HIOManager.h:226
HIOUtilityLeadTools()
Definition: HIOUtilityLeadTools.h:37
const char * GetOutputTypesString()
Definition: HIOUtilityLeadTools.h:140
Definition: HIOManager.h:247
void SetInputOps(unsigned long ops)
This sets the HInputOp.
Definition: HIOManager.h:836
A header file containing the HIO classes for passing to HBaseView::FileInput and HBaseView::FileOutpu...
HFileInputResult FileInputToImageKey(const char *filename, HC_KEY *image_key, HC_KEY segment_key, HInputHandlerOptions *options)
const char * GetInputTypesString()
Definition: HIOUtilityLeadTools.h:85