MrSID Decode SDK for Raster Reference Manual  9.5.4.4709
lti_geoFileImageWriter.h
Go to the documentation of this file.
1 /* $Id$ */
2 /* //////////////////////////////////////////////////////////////////////////
3 // //
4 // This code is Copyright (c) 2004 LizardTech, Inc, 1008 Western Avenue, //
5 // Suite 200, Seattle, WA 98104. Unauthorized use or distribution //
6 // prohibited. Access to and use of this code is permitted only under //
7 // license from LizardTech, Inc. Portions of the code are protected by //
8 // US and foreign patents and other filings. All Rights Reserved. //
9 // //
11 /* PUBLIC */
12 
13 #ifndef LTI_GEOFILEIMAGEWRITER_H
14 #define LTI_GEOFILEIMAGEWRITER_H
15 
16 // lt_lib_mrsid_core
17 #include "lti_imageWriter.h"
18 #include "lti_scene.h"
19 
21 
22 
23 
31 {
32  LT_DISALLOW_COPY_CONSTRUCTOR(LTIGeoFileImageWriter);
33 public:
34  virtual ~LTIGeoFileImageWriter();
35 
36  virtual LT_STATUS writeBegin(const LTIScene& scene);
37  virtual LT_STATUS writeStrip(LTISceneBuffer& stripBuffer,
38  const LTIScene& stripScene) = 0;
39  virtual LT_STATUS writeEnd(void);
40 
41  virtual LT_STATUS deleteOutput(void);
42 
52  virtual LT_STATUS setOutputFileSpec(const LTFileSpec& fileSpec);
53 
63  virtual LT_STATUS setOutputFileSpec(const char* fileSpec);
64 
77  virtual LT_STATUS setOutputStream(LTIOStreamInf* stream);
78 
89  virtual void setWriteWorldFile(bool enabled);
90 
91 protected:
101  LTIGeoFileImageWriter(bool supportsStreams);
102 
113  LTIOStreamInf* getStream() const;
114 
125  LTFileSpec* getFileSpec() const;
126 
127 private:
128  const bool m_supportsStreams;
129  LTFileSpec* m_fileSpec;
130  LTIOStreamInf* m_stream;
131  bool m_ownStream;
132 
133  bool m_worldFileEnabled;
134 
135  LTIScene m_fullScene;
136 
137 };
138 
139 
141 
142 #endif // LTI_GEOFILEIMAGEWRITER_H
representation of a scene
Definition: lti_scene.h:64
class for writing geographic images to files or streams
#define LT_END_NAMESPACE(theNameSpace)
compiler does not support namespaces
Definition: lt_define.h:85
abstract class for implementing an image writer
lt_uint32 LT_STATUS
An integral status code.
Definition: lt_status.h:39
Abstract definition of a stream.
Represents a file or directory path.
Definition: lt_fileSpec.h:39
class to hold data passed between image stages
#define LT_BEGIN_NAMESPACE(theNameSpace)
compiler does not support namespaces
Definition: lt_define.h:84

LizardTech