MrSID Decode SDK for Raster Reference Manual 9.5.5.5244
lti_geoFileImageWriter.h
Go to the documentation of this file.
1//
2// This code is property of Celartem, Inc dba Extensis.
3// Copyright (c) 1995-2023. All rights reserved.
4// Use permitted only under license from Extensis.
5//
6/* PUBLIC */
7
8#ifndef LTI_GEOFILEIMAGEWRITER_H
9#define LTI_GEOFILEIMAGEWRITER_H
10
11// lt_lib_mrsid_core
12#include "lti_imageWriter.h"
13#include "lti_scene.h"
14
15LT_BEGIN_LIZARDTECH_NAMESPACE
16
17
26{
27 LT_DISALLOW_COPY_CONSTRUCTOR(LTIGeoFileImageWriter);
28public:
30
31 virtual LT_STATUS writeBegin(const LTIScene& scene);
32 virtual LT_STATUS writeStrip(LTISceneBuffer& stripBuffer,
33 const LTIScene& stripScene) = 0;
34 virtual LT_STATUS writeEnd(void);
35
36 virtual LT_STATUS deleteOutput(void);
37
47 virtual LT_STATUS setOutputFileSpec(const LTFileSpec& fileSpec);
48
58 virtual LT_STATUS setOutputFileSpec(const char* fileSpec);
59
73
84 virtual void setWriteWorldFile(bool enabled);
85
86protected:
96 LTIGeoFileImageWriter(bool supportsStreams);
97
109
121
122private:
123 const bool m_supportsStreams;
124 LTFileSpec* m_fileSpec;
125 LTIOStreamInf* m_stream;
126 bool m_ownStream;
127
128 bool m_worldFileEnabled;
129
130 LTIScene m_fullScene;
131
132};
133
134
135LT_END_LIZARDTECH_NAMESPACE
136
137#endif // LTI_GEOFILEIMAGEWRITER_H
lt_uint32 LT_STATUS
An integral status code.
Definition: lt_status.h:30
Represents a file or directory path.
Definition: lt_fileSpec.h:35
Abstract definition of a stream.
class for writing geographic images to files or streams
LTIOStreamInf * getStream() const
get underlying stream
virtual LT_STATUS writeBegin(const LTIScene &scene)
begin an encode (write) operation
LTFileSpec * getFileSpec() const
get target filename
virtual LT_STATUS writeStrip(LTISceneBuffer &stripBuffer, const LTIScene &stripScene)=0
encode one strip of the scene
virtual LT_STATUS writeEnd(void)
complete an encode (write) operation
LTIGeoFileImageWriter(bool supportsStreams)
constructor
virtual void setWriteWorldFile(bool enabled)
enable writing of world file
virtual LT_STATUS deleteOutput(void)
clean up a failed encode (write) operation
virtual LT_STATUS setOutputFileSpec(const char *fileSpec)
set output file name
virtual LT_STATUS setOutputStream(LTIOStreamInf *stream)
set output file stream
virtual ~LTIGeoFileImageWriter()
virtual LT_STATUS setOutputFileSpec(const LTFileSpec &fileSpec)
set output file name
abstract class for implementing an image writer
representation of a scene
Definition: lti_scene.h:60
class to hold data passed between image stages

Extensis