SIILPICFileDriver.h

00001 //***************************************************************************************
00002 //
00003 // File supervisor: Softimage 3D Games & 3D Bridge team
00004 //
00005 // (c) Copyright 2001-2002 Avid Technology, Inc. . All rights reserved.
00006 //
00007 //***************************************************************************************
00008 
00009 /****************************************************************************************
00010 THIS CODE IS PUBLISHED AS A SAMPLE ONLY AND IS PROVIDED "AS IS".
00011 IN NO EVENT SHALL SOFTIMAGE, AVID TECHNOLOGY, INC. AND/OR THEIR RESPECTIVE
00012 SUPPLIERS BE LIABLE FOR ANY SPECIAL, INDIRECT OR CONSEQUENTIAL DAMAGES OR ANY
00013 DAMAGES WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN AN
00014 ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF OR IN
00015 CONNECTION WITH THE USE OR PERFORMANCE OF THIS CODE .
00016 
00017 COPYRIGHT NOTICE. Copyright © 1999-2002 Avid Technology Inc. . All rights reserved. 
00018 
00019 SOFTIMAGE is a registered trademark of Avid Technology Inc. or its subsidiaries 
00020 or divisions. Windows NT is a registered trademark of Microsoft Corp. All other
00021 trademarks contained herein are the property of their respective owners. 
00022 ****************************************************************************************/
00023 
00024 
00025 //***************************************************************************************
00026 // Defines
00027 //***************************************************************************************
00028 #ifndef __CSIILPICFileDriver_H__
00029 #define __CSIILPICFileDriver_H__
00030 
00031 //***************************************************************************************
00032 // Includes
00033 //***************************************************************************************
00034 #include <SIBCPixMap.h>
00035 
00036 //***************************************************************************************
00037 // Typedefs
00038 //***************************************************************************************
00039 
00041 class XSIEXPORT CSIILPICFileDriver : public CSIBCPixMapDriver
00042 {
00043 public:
00044 
00045 
00049     CSIILPICFileDriver();                                       
00050 
00053     virtual ~CSIILPICFileDriver();                                      
00054                                                                 
00061     virtual SI_Bool Supported( CSIBCString &in_Filename );                  
00062                                                             
00071     virtual SI_Error Load( CSIBCString &in_filename, CSIBCPixMap &in_PixMap );      
00072 
00082     virtual SI_Error LoadFromMemory( void *in_pMemoryBlock, SI_Int in_lCount, CSIBCPixMap &in_PixMap );
00083 
00087     static CSIILPICFileDriver *Driver();    
00088 protected:
00089     SI_Error LoadFromMemoryBlockOrFile( CSIBCString &i_Name, SI_Void *i_pMemoryBlock, SI_Int nMemoryBlockSize, CSIBCPixMap &o_Map);     // Load the specified image into the preallocated CSIBCPixMap.
00090 
00091 private:
00092 
00093 
00094 };
00095 
00096 
00097 
00098 
00099 #endif // CSIILPICFileDriver