Alphabetical Class Index  Class Hierarchy   File Members   Compound Members   File List  

HIOUtilityTiff.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 // $Id: 75553799d34d84fcafb82ce3045b140654d15e56 $
00013 //
00014 
00015 #ifndef _HIOUTILITYTIFF_H
00016 #define _HIOUTILITYTIFF_H
00017 
00018 #ifdef H_PACK_8
00019 #pragma pack(push)
00020 #pragma pack(8)
00021 #endif
00022 
00023 #include "HTools.h"
00024 #include "HIOManager.h"
00025 
00029 class MVO_API HIOUtilityTiff: public HOutputHandler
00030 {
00031 
00032 public:
00033 
00035     HIOUtilityTiff(){ 
00036         SetOutputOps(HOutputOpFileOutputFromImageKey);
00037     };
00038     virtual ~HIOUtilityTiff() {;};
00039 
00042     const char * GetOutputName() { return "HIOUtilityTiff"; }   
00043 
00045     void RegisterOutputHandlerTypes() {
00046         HIORegisterOutputType("tiff",this);
00047         HIORegisterOutputType("tif",this);
00048     };
00049 
00051     const char * GetOutputTypesString() {return "tif;tiff";};
00052 
00054     HOutputHandlerStyle GetOutputStyle() {return HOutputHandlerStyleImage;};
00055 
00065     HFileOutputResult FileOutputFromImageKey(const __wchar_t * filename, HC_KEY image_key, HOutputHandlerOptions * options);
00066 
00067     HFileOutputResult FileOutputFromImageKey(const unsigned short * filename, HC_KEY image_key, HOutputHandlerOptions * options){
00068         H_UTF16 utf16;
00069         utf16.encodedText((utf16_char const*) filename);
00070         return FileOutputFromImageKey(H_WCS(utf16).encodedText(), image_key, options);
00071     }
00072 
00073     HFileOutputResult FileOutputFromImageKey(const char * filename, HC_KEY image_key, HOutputHandlerOptions * options){
00074         return FileOutputFromImageKey(H_WCS(filename).encodedText(), image_key, options);
00075     }
00076 };
00077 
00078 
00079 #ifdef H_PACK_8
00080 #pragma pack(pop)
00081 #endif
00082 
00083 #endif