Alphabetical Class Index  Class Hierarchy   File Members   Compound Members   File List  

HIOUtilityLeadTools.h
00001 //
00002 // Copyright (c) 2000 by Tech Soft 3D, LLC.
00003 // The information contained herein is confidential and proprietary to
00004 // Tech Soft 3D, LLC., and considered a trade secret as defined under
00005 // civil and criminal statutes.  Tech Soft 3D shall pursue its civil
00006 // and criminal remedies in the event of unauthorized use or misappropriation
00007 // of its trade secrets.  Use of this information by anyone other than
00008 // authorized employees of Tech Soft 3D, LLC. is granted only under a
00009 // written non-disclosure agreement, expressly prescribing the scope and
00010 // manner of such use.
00011 //
00012 
00013 
00014 #ifndef _HIO_UTILITY_LEADTOOLS_H
00015 #define _HIO_UTILITY_LEADTOOLS_H
00016 
00017 #ifdef H_PACK_8
00018 #pragma pack(push)
00019 #pragma pack(8)
00020 #endif
00021 
00022 #include "HTools.h"
00023 #include "HIOManager.h"
00024 
00032 class HIOUtilityLeadTools: public HInputHandler, public HOutputHandler
00033 {
00034 
00035 public:
00037     HIOUtilityLeadTools() { 
00038         SetInputOps(HInputOpFileInputToImageKey);
00039         SetOutputOps(HOutputOpFileOutputFromImageKey);
00040     };
00041 
00042     ~HIOUtilityLeadTools() {;};
00043 
00045     void RegisterInputHandlerTypes() {
00046     // Here is a list of some of the file formats and some of the flavors LEAD supports for Import
00047     // add if you think your license of LEAD covers more formats
00048     HIORegisterInputType("jpeg",this);  // JPEG
00049     HIORegisterInputType("jpg",this);   // JPEG
00050     HIORegisterInputType("bmp",this);   // Windows BMP, OS/2 BMP
00051     HIORegisterInputType("gif",this);   // GIF (Embedded Text, Animated, Interlaced, Transparency), 
00052     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)
00053     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)
00054     HIORegisterInputType("wmf",this);   // Windows Metafile (WMF)
00055     HIORegisterInputType("emf",this);   // Enhanced Metafile (WMF)
00056     HIORegisterInputType("ico",this);   // Windows Icon (ICO)
00057     HIORegisterInputType("cur",this);   // Windows Cursor (CUR)
00058     HIORegisterInputType("ani",this);   // Windows Animated Cursor (ANI)
00059     HIORegisterInputType("clp",this);   // Windows Clipboard Cursor (CLP)
00060     HIORegisterInputType("avi",this);   // Windows AVI(AVI)
00061     HIORegisterInputType("fpx",this);   // FlashPix (FPX)
00062     HIORegisterInputType("exf",this);   // Fuji Exif 2.0 (EXF)
00063     HIORegisterInputType("psd",this);   // Adobe PhotoShop (PSD)
00064     HIORegisterInputType("pcd",this);   // Kodak PhotoCD PCD, EPS, IOCA, MODCA
00065     HIORegisterInputType("cal",this);   // CALS raster (CAL)
00066     HIORegisterInputType("pcx",this);   // PC Paintbrush (PCX)
00067     HIORegisterInputType("wfx",this);   // Winfax (WFX), MAC, VDA
00068     HIORegisterInputType("png",this);   // CompuServe PNG
00069     HIORegisterInputType("tga",this);   // Targa (TGA)
00070     HIORegisterInputType("ras",this);   // Sun Raster (RAS)
00071     HIORegisterInputType("pct",this);   // Macintosh PICT (PCT), LEAD CMP
00072     HIORegisterInputType("awd",this);   // Microsoft FAX (AWD)
00073     HIORegisterInputType("wpg",this);   // WordPerfect (WPG)
00074     HIORegisterInputType("msp",this);   // Microsoft Paint (MSP)
00075     HIORegisterInputType("mac",this);   // Machintosh Paint (MAC)
00076     HIORegisterInputType("cut",this);   // Dr. Halo
00077     //HIORegisterInputType("DICOM",this);  // DICOM - What's the extension
00078     //HIORegisterInputType("pdf",this);   // Adobe Portable Document Format(PDF) - required PDF plugin
00079     };
00080 
00082     HInputHandlerStyle GetInputStyle() {return HInputHandlerStyleImage;};
00083 
00085     const char * GetInputTypesString() 
00086     {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";};
00087 
00088 
00097     HFileInputResult FileInputToImageKey(const char * filename, HC_KEY  *image_key, HC_KEY segment_key, HInputHandlerOptions * options);
00098 
00100     void RegisterOutputHandlerTypes() {
00101         // Here is a list of some of the file formats and some of the flavors LEAD supports for Export
00102         // add if you think your license of LEAD covers more formats
00103         HIORegisterOutputType("jpeg",this);  // JPEG
00104         HIORegisterOutputType("jpg",this);   // JPEG
00105         HIORegisterOutputType("bmp",this);   // Windows BMP, OS/2 BMP
00106         HIORegisterOutputType("gif",this);   // GIF (Embedded Text, Animated, Interlaced, Transparency), 
00107         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)
00108         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)
00109         HIORegisterOutputType("wmf",this);   // Windows Metafile (WMF)
00110         HIORegisterOutputType("emf",this);   // Enhanced Metafile (WMF)
00111         HIORegisterOutputType("ico",this);   // Windows Icon (ICO)
00112         HIORegisterOutputType("cur",this);   // Windows Cursor (CUR)
00113         HIORegisterOutputType("ani",this);   // Windows Animated Cursor (ANI)
00114         HIORegisterOutputType("clp",this);   // Windows Clipboard Cursor (CLP)
00115         HIORegisterOutputType("avi",this);   // Windows AVI(AVI)
00116         HIORegisterOutputType("fpx",this);   // FlashPix (FPX)
00117         HIORegisterOutputType("exf",this);   // Fuji Exif 2.0 (EXF)
00118         HIORegisterOutputType("psd",this);   // Adobe PhotoShop (PSD)
00119         HIORegisterOutputType("pcd",this);   // Kodak PhotoCD PCD, EPS, IOCA, MODCA
00120         HIORegisterOutputType("cal",this);   // CALS raster (CAL)
00121         HIORegisterOutputType("pcx",this);   // PC Paintbrush (PCX)
00122         HIORegisterOutputType("wfx",this);   // Winfax (WFX), MAC, VDA
00123         HIORegisterOutputType("png",this);   // CompuServe PNG
00124         HIORegisterOutputType("tga",this);   // Targa (TGA)
00125         HIORegisterOutputType("ras",this);   // Sun Raster (RAS)
00126         HIORegisterOutputType("pct",this);   // Macintosh PICT (PCT), LEAD CMP
00127         HIORegisterOutputType("awd",this);   // Microsoft FAX (AWD)
00128         HIORegisterOutputType("wpg",this);   // WordPerfect (WPG)
00129         HIORegisterOutputType("msp",this);   // Microsoft Paint (MSP)
00130         HIORegisterOutputType("mac",this);   // Machintosh Paint (MAC)
00131         HIORegisterOutputType("cut",this);   // Dr. Halo
00132         //HIORegisterOutputType("DICOM",this);  // DICOM - What's the extension
00133         //HIORegisterOutputType("pdf",this);   // Adobe Portable Document Format(PDF) -  - required PDF plugin
00134     };
00135 
00137     HOutputHandlerStyle GetOutputStyle() {return HOutputHandlerStyleImage;};
00138 
00140     const char * GetOutputTypesString() 
00141     {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";};
00142 
00143 
00152     HFileOutputResult FileOutputFromImageKey(const char * filename, HC_KEY image_key, HOutputHandlerOptions * options);
00153 
00154 };
00155 
00156 
00157 
00158 #ifdef H_PACK_8
00159 #pragma pack(pop)
00160 #endif
00161 
00162 #endif
00163 
00164 
00165 
00166 
00167 
00168 
00169