Alphabetical Class Index  Class Hierarchy   File Members   Compound Members   File List  

HIOUtilityLeadTools.h
1 // Copyright (c) 1998-2014 by Tech Soft 3D, Inc.
2 //
3 // The information contained herein is confidential and proprietary to Tech Soft 3D, Inc.,
4 // and considered a trade secret as defined under civil and criminal statutes.
5 // Tech Soft 3D, Inc. shall pursue its civil and criminal remedies in the event of
6 // unauthorized use or misappropriation of its trade secrets. Use of this information
7 // by anyone other than authorized employees of Tech Soft 3D, Inc. is granted only under
8 // a written non-disclosure agreement, expressly prescribing the scope and manner of such use.
9 
10 #ifndef _HIO_UTILITY_LEADTOOLS_H
11 #define _HIO_UTILITY_LEADTOOLS_H
12 
13 #ifdef H_PACK_8
14 #pragma pack(push)
15 #pragma pack(8)
16 #endif
17 
18 #include "HTools.h"
19 #include "HIOManager.h"
20 
29 {
30 
31 public:
36  };
37 
38  ~HIOUtilityLeadTools() {;};
39 
42  // Here is a list of some of the file formats and some of the flavors LEAD supports for Import
43  // add if you think your license of LEAD covers more formats
44  HIORegisterInputType("jpeg",this); // JPEG
45  HIORegisterInputType("jpg",this); // JPEG
46  HIORegisterInputType("bmp",this); // Windows BMP, OS/2 BMP
47  HIORegisterInputType("gif",this); // GIF (Embedded Text, Animated, Interlaced, Transparency),
48  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)
49  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)
50  HIORegisterInputType("wmf",this); // Windows Metafile (WMF)
51  HIORegisterInputType("emf",this); // Enhanced Metafile (WMF)
52  HIORegisterInputType("ico",this); // Windows Icon (ICO)
53  HIORegisterInputType("cur",this); // Windows Cursor (CUR)
54  HIORegisterInputType("ani",this); // Windows Animated Cursor (ANI)
55  HIORegisterInputType("clp",this); // Windows Clipboard Cursor (CLP)
56  HIORegisterInputType("avi",this); // Windows AVI(AVI)
57  HIORegisterInputType("fpx",this); // FlashPix (FPX)
58  HIORegisterInputType("exf",this); // Fuji Exif 2.0 (EXF)
59  HIORegisterInputType("psd",this); // Adobe PhotoShop (PSD)
60  HIORegisterInputType("pcd",this); // Kodak PhotoCD PCD, EPS, IOCA, MODCA
61  HIORegisterInputType("cal",this); // CALS raster (CAL)
62  HIORegisterInputType("pcx",this); // PC Paintbrush (PCX)
63  HIORegisterInputType("wfx",this); // Winfax (WFX), MAC, VDA
64  HIORegisterInputType("png",this); // CompuServe PNG
65  HIORegisterInputType("tga",this); // Targa (TGA)
66  HIORegisterInputType("ras",this); // Sun Raster (RAS)
67  HIORegisterInputType("pct",this); // Macintosh PICT (PCT), LEAD CMP
68  HIORegisterInputType("awd",this); // Microsoft FAX (AWD)
69  HIORegisterInputType("wpg",this); // WordPerfect (WPG)
70  HIORegisterInputType("msp",this); // Microsoft Paint (MSP)
71  HIORegisterInputType("mac",this); // Machintosh Paint (MAC)
72  HIORegisterInputType("cut",this); // Dr. Halo
73  //HIORegisterInputType("DICOM",this); // DICOM - What's the extension
74  //HIORegisterInputType("pdf",this); // Adobe Portable Document Format(PDF) - required PDF plugin
75  };
76 
79 
81  const char * GetInputTypesString()
82  {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";};
83 
84 
93  HFileInputResult FileInputToImageKey(const char * filename, HC_KEY *image_key, HC_KEY segment_key, HInputHandlerOptions * options);
94 
97  // Here is a list of some of the file formats and some of the flavors LEAD supports for Export
98  // add if you think your license of LEAD covers more formats
99  HIORegisterOutputType("jpeg",this); // JPEG
100  HIORegisterOutputType("jpg",this); // JPEG
101  HIORegisterOutputType("bmp",this); // Windows BMP, OS/2 BMP
102  HIORegisterOutputType("gif",this); // GIF (Embedded Text, Animated, Interlaced, Transparency),
103  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)
104  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)
105  HIORegisterOutputType("wmf",this); // Windows Metafile (WMF)
106  HIORegisterOutputType("emf",this); // Enhanced Metafile (WMF)
107  HIORegisterOutputType("ico",this); // Windows Icon (ICO)
108  HIORegisterOutputType("cur",this); // Windows Cursor (CUR)
109  HIORegisterOutputType("ani",this); // Windows Animated Cursor (ANI)
110  HIORegisterOutputType("clp",this); // Windows Clipboard Cursor (CLP)
111  HIORegisterOutputType("avi",this); // Windows AVI(AVI)
112  HIORegisterOutputType("fpx",this); // FlashPix (FPX)
113  HIORegisterOutputType("exf",this); // Fuji Exif 2.0 (EXF)
114  HIORegisterOutputType("psd",this); // Adobe PhotoShop (PSD)
115  HIORegisterOutputType("pcd",this); // Kodak PhotoCD PCD, EPS, IOCA, MODCA
116  HIORegisterOutputType("cal",this); // CALS raster (CAL)
117  HIORegisterOutputType("pcx",this); // PC Paintbrush (PCX)
118  HIORegisterOutputType("wfx",this); // Winfax (WFX), MAC, VDA
119  HIORegisterOutputType("png",this); // CompuServe PNG
120  HIORegisterOutputType("tga",this); // Targa (TGA)
121  HIORegisterOutputType("ras",this); // Sun Raster (RAS)
122  HIORegisterOutputType("pct",this); // Macintosh PICT (PCT), LEAD CMP
123  HIORegisterOutputType("awd",this); // Microsoft FAX (AWD)
124  HIORegisterOutputType("wpg",this); // WordPerfect (WPG)
125  HIORegisterOutputType("msp",this); // Microsoft Paint (MSP)
126  HIORegisterOutputType("mac",this); // Machintosh Paint (MAC)
127  HIORegisterOutputType("cut",this); // Dr. Halo
128  //HIORegisterOutputType("DICOM",this); // DICOM - What's the extension
129  //HIORegisterOutputType("pdf",this); // Adobe Portable Document Format(PDF) - - required PDF plugin
130  };
131 
134 
136  const char * GetOutputTypesString()
137  {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";};
138 
139 
148  HFileOutputResult FileOutputFromImageKey(const char * filename, HC_KEY image_key, HOutputHandlerOptions * options);
149 
150 };
151 
152 
153 
154 #ifdef H_PACK_8
155 #pragma pack(pop)
156 #endif
157 
158 #endif
159 
160 
161 
162 
163 
164 
165 
Definition: HIOUtilityLeadTools.h:28
#define HInputOpFileInputToImageKey
This HInputHandler supports input to an image key.
Definition: HIOManager.h:62
void RegisterOutputHandlerTypes()
Definition: HIOUtilityLeadTools.h:96
Specifies an HOutputHandler for geometry data.
Definition: HIOManager.h:865
HInputHandler an abstract base class for model and image input.
Definition: HIOManager.h:671
#define HOutputOpFileOutputFromImageKey
This HOutputHandler supports output from an image key.
Definition: HIOManager.h:77
HOutputHandlerStyle
Definition: HIOManager.h:862
Specifies an HInputHandler for image data.
Definition: HIOManager.h:226
HOutputHandler an abstract base class for model and image output.
Definition: HIOManager.h:1225
HInputHandlerStyle GetInputStyle()
Definition: HIOUtilityLeadTools.h:78
HOutputHandlerStyle GetOutputStyle()
Definition: HIOUtilityLeadTools.h:133
#define HIORegisterInputType(type, input_object)
Definition: HIOManager.h:84
#define HIORegisterOutputType(type, output_object)
HIORegisterOutputType(type,output_object) Used by a HOutputHandler to set extension types that it han...
Definition: HIOManager.h:89
HFileOutputResult FileOutputFromImageKey(const char *filename, HC_KEY image_key, HOutputHandlerOptions *options)
void RegisterInputHandlerTypes()
Definition: HIOUtilityLeadTools.h:41
HInputHandlerStyle
Definition: HIOManager.h:224
Definition: HIOManager.h:908
HIOUtilityLeadTools()
Definition: HIOUtilityLeadTools.h:33
const char * GetOutputTypesString()
Definition: HIOUtilityLeadTools.h:136
Definition: HIOManager.h:245
void SetInputOps(unsigned long ops)
This sets the HInputOp.
Definition: HIOManager.h:840
void SetOutputOps(unsigned long ops)
This sets the HOutputOp.
Definition: HIOManager.h:1390
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:81