MrSID Decode SDK for Raster Reference Manual
9.0.0.3864
|
00001 /* $Id$ */ 00002 /* ////////////////////////////////////////////////////////////////////////// 00003 // // 00004 // This code is Copyright (c) 2004 LizardTech, Inc, 1008 Western Avenue, // 00005 // Suite 200, Seattle, WA 98104. Unauthorized use or distribution // 00006 // prohibited. Access to and use of this code is permitted only under // 00007 // license from LizardTech, Inc. Portions of the code are protected by // 00008 // US and foreign patents and other filings. All Rights Reserved. // 00009 // // 00011 /* PUBLIC */ 00012 00013 #ifndef LTI_GEOFILEIMAGEWRITER_H 00014 #define LTI_GEOFILEIMAGEWRITER_H 00015 00016 // lt_lib_mrsid_core 00017 #include "lti_imageWriter.h" 00018 #include "lti_scene.h" 00019 00020 LT_BEGIN_NAMESPACE(LizardTech) 00021 00022 00023 00030 class LTIGeoFileImageWriter : public LTIImageWriter 00031 { 00032 LT_DISALLOW_COPY_CONSTRUCTOR(LTIGeoFileImageWriter); 00033 public: 00034 virtual ~LTIGeoFileImageWriter(); 00035 00036 virtual LT_STATUS writeBegin(const LTIScene& scene); 00037 virtual LT_STATUS writeStrip(LTISceneBuffer& stripBuffer, 00038 const LTIScene& stripScene) = 0; 00039 virtual LT_STATUS writeEnd(void); 00040 00041 virtual LT_STATUS deleteOutput(void); 00042 00052 virtual LT_STATUS setOutputFileSpec(const LTFileSpec& fileSpec); 00053 00063 virtual LT_STATUS setOutputFileSpec(const char* fileSpec); 00064 00077 virtual LT_STATUS setOutputStream(LTIOStreamInf* stream); 00078 00089 virtual void setWriteWorldFile(bool enabled); 00090 00091 protected: 00101 LTIGeoFileImageWriter(bool supportsStreams); 00102 00113 LTIOStreamInf* getStream() const; 00114 00125 LTFileSpec* getFileSpec() const; 00126 00127 private: 00128 const bool m_supportsStreams; 00129 LTFileSpec* m_fileSpec; 00130 LTIOStreamInf* m_stream; 00131 bool m_ownStream; 00132 00133 bool m_worldFileEnabled; 00134 00135 LTIScene m_fullScene; 00136 00137 }; 00138 00139 00140 LT_END_NAMESPACE(LizardTech) 00141 00142 #endif // LTI_GEOFILEIMAGEWRITER_H