00001 //*************************************************************************************** 00002 // 00003 // File supervisor: Crosswalk team 00004 // 00005 // Copyright 2008 Autodesk, Inc. All rights reserved. 00006 // Use of this software is subject to the terms of the Autodesk license agreement 00007 // provided at the time of installation or download, or which otherwise accompanies 00008 // this software in either electronic or hard copy form. 00009 // 00010 //*************************************************************************************** 00011 00012 //*************************************************************************************** 00013 // Defines 00014 //*************************************************************************************** 00015 #ifndef __CSIILPICFileDriver_H__ 00016 #define __CSIILPICFileDriver_H__ 00017 00018 //*************************************************************************************** 00019 // Includes 00020 //*************************************************************************************** 00021 #include <SIBCPixMap.h> 00022 00023 //*************************************************************************************** 00024 // Typedefs 00025 //*************************************************************************************** 00026 00028 class XSIEXPORT CSIILPICFileDriver : public CSIBCPixMapDriver 00029 { 00030 public: 00031 00032 00036 CSIILPICFileDriver(); 00037 00040 virtual ~CSIILPICFileDriver(); 00041 00048 virtual SI_Bool Supported( CSIBCString &in_Filename ); 00049 00058 virtual SI_Error Load( CSIBCString &in_filename, CSIBCPixMap &in_PixMap ); 00059 00069 virtual SI_Error LoadFromMemory( void *in_pMemoryBlock, SI_Int in_lCount, CSIBCPixMap &in_PixMap ); 00070 00074 static CSIILPICFileDriver *Driver(); 00075 protected: 00076 SI_Error LoadFromMemoryBlockOrFile( CSIBCString &i_Name, SI_Void *i_pMemoryBlock, SI_Int nMemoryBlockSize, CSIBCPixMap &o_Map); // Load the specified image into the preallocated CSIBCPixMap. 00077 00078 private: 00079 00080 00081 }; 00082 00083 00084 00085 00086 #endif // CSIILPICFileDriver