MrSID Decode SDK for Raster Reference Manual 9.5.5.5244
lti_imageStageOverrides.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_IMAGE_STAGE_OVERRIDES_H
9#define LTI_IMAGE_STAGE_OVERRIDES_H
10
11// lt_lib_mrsid_core
12#include "lti_types.h"
13
14LT_BEGIN_LIZARDTECH_NAMESPACE
15
16
19
21{
24
27
29};
30
31
32template<class BASE>
33struct LTIOverrideMetadata : public BASE,
35{
37 {
38 return *m_metadata;
39 }
40
42 {
44 }
45};
46
49
51{
53
67
70};
71
72template<class BASE>
73struct LTIOverrideDimensions : public BASE,
75
76{
78 {
79 return m_width;
80 }
81
83 {
84 return m_height;
85 }
86};
87
90
92{
95
109 LT_STATUS setPixelProps(const LTIPixel& pixelProps);
112
132 const LTIPixel& drmax);
133
149
163 LT_STATUS setBackgroundPixel(const LTIPixel* backgroundPixel);
164
178 LT_STATUS setNoDataPixel(const LTIPixel* nodataPixel);
179
185};
186
187template<class BASE>
188struct LTIOverridePixelProps : public BASE,
190{
191 const LTIPixel &getPixelProps() const
192 {
193 return *m_pixelProps;
194 }
195
197 {
198 return *m_drminPixel;
199 }
200
202 {
203 return *m_drmaxPixel;
204 }
205
207 {
208 return setPixelBPS(bps);
209 }
210
212 {
213 return setColorSpace(colorspace);
214 }
215
217 const LTIPixel& drmax)
218 {
219 return setDynamicRange(drmin, drmax);
220 }
221
223 {
224 return m_backgroundPixel;
225 }
226
228 {
229 return m_nodataPixel;
230 }
231
233 {
234 return setBackgroundPixel(backgroundPixel);
235 }
236
238 {
239 return setNoDataPixel(nodataPixel);
240 }
241};
242
245
247{
250
264
282
285};
286
287template<class BASE>
288struct LTIOverrideGeoCoord : public BASE,
290{
292 {
293 return *m_geoCoord;
294 }
295
297 {
298 return m_geoCoordImplicit;
299 }
300
302 {
303 return setGeoCoord(geoCoord);
304 }
305};
306
309
311{
313
330 double maxMag);
331
332 double m_minMag;
333 double m_maxMag;
334};
335
336template<class BASE>
337struct LTIOverrideMagnification : public BASE,
339{
340 double getMinMagnification() const
341 {
342 return m_minMag;
343 }
344
345 double getMaxMagnification() const
346 {
347 return m_maxMag;
348 }
349};
350
353
355{
357
371 void setIsSelective(bool enable);
372
374};
375
376template<class BASE>
377struct LTIOverrideIsSelective : public BASE,
379{
380 bool isSelective() const
381 {
382 return m_isSelective;
383 }
384};
385
388
390{
392
394};
395
396template<class BASE>
397struct LTIOverrideStripHeight : public BASE,
399{
401 {
402 return m_stripHeight;
403 }
404
406 {
407 m_stripHeight = stripHeight;
408 return LT_STS_Success;
409 }
410};
411
414
416{
418
421};
422
423template<class BASE>
424struct LTIOverrideDelegates : public BASE,
426{
428 {
429 m_progressDelegate = delegate;
430 }
431
433 {
434 return m_progressDelegate;
435 }
436
438 {
439 m_interruptDelegate = delegate;
440 }
441
443 {
444 return m_interruptDelegate;
445 }
446};
447
450
452{
455
472
474};
475
476template<class BASE>
477struct LTIOverridePixelLookupTables : public BASE,
479{
481 {
482 return m_pixelLookupTable;
483 }
484
486 {
487 return setPixelLookupTable(pixelLookupTable);
488 }
489};
490
491
494
497
500
501LT_END_LIZARDTECH_NAMESPACE
502
503
504#endif // LTI_IMAGE_STAGE_OVERRIDES_H
This file contains a number of enums, typedefs, etc, that are used throughout the MrSID SDK.
LTIColorSpace
colorspaces
Definition: lti_types.h:34
lt_uint32 LT_STATUS
An integral status code.
Definition: lt_status.h:30
#define LT_STS_Success
status code indicating success
Definition: lt_status.h:43
unsigned char lt_uint8
unsigned 8-bit integer
Definition: lt_types.h:36
unsigned int lt_uint32
unsigned 32-bit integer
Definition: lt_types.h:44
interrupt delegate (callback) base class
Definition: lti_delegates.h:35
progress delegate (callback) base class
Definition: lti_delegates.h:68
represents a geographic coordinate
Definition: lti_geoCoord.h:28
abstract class representing an image
Definition: lti_image.h:28
LTIMetadataDatabase & getMetadata()
LT_STATUS createMetadata(const LTIMetadataDatabase *metadata)
LTIMetadataDatabase * m_metadata
const LTIMetadataDatabase & getMetadata() const
LT_STATUS overrideMetadata(const LTIMetadataDatabase &metadata)
LT_STATUS setDimensions(lt_uint32 width, lt_uint32 height)
set width and height of the image
LT_STATUS setColorSpace(LTIColorSpace colorspace)
LT_STATUS setDynamicRange(const LTIPixel &drmin, const LTIPixel &drmax)
set the dynamic range of the image
LT_STATUS setNoDataPixel(const LTIPixel *nodataPixel)
set the "no data" (transparency) color of the image
LT_STATUS setPixelProps(const LTIPixel &pixelProps)
set pixel properties of the image
LT_STATUS setBackgroundPixel(const LTIPixel *backgroundPixel)
set the background color of the image
LT_STATUS setDefaultDynamicRange(void)
set the dynamic range of the image
LT_STATUS setPixelBPS(lt_uint8 bps)
LT_STATUS overrideNoDataPixel(const LTIPixel *nodataPixel)
LT_STATUS overridePixelBPS(lt_uint8 bps)
LT_STATUS overrideBackgroundPixel(const LTIPixel *backgroundPixel)
const LTIPixel & getMinDynamicRange() const
LT_STATUS overrideDynamicRange(const LTIPixel &drmin, const LTIPixel &drmax)
const LTIPixel & getMaxDynamicRange() const
const LTIPixel * getBackgroundPixel() const
LT_STATUS overrideColorSpace(LTIColorSpace colorspace)
const LTIPixel & getPixelProps() const
const LTIPixel * getNoDataPixel() const
LT_STATUS setDefaultGeoCoord(const LTIImage &image)
set the geographic coordinates of the image
LT_STATUS setGeoCoord(const LTIGeoCoord &geoCoord)
set the geographic coordinates of the image
const LTIGeoCoord & getGeoCoord() const
LT_STATUS overrideGeoCoord(const LTIGeoCoord &geoCoord)
LT_STATUS setMagnification(double minMag, double maxMag)
set the minimum and maximum magnifications of the image properties
void setIsSelective(bool enable)
set image to support "random access"
LT_STATUS setStripHeight(lt_uint32 stripHeight)
LTIProgressDelegate * m_progressDelegate
LTIInterruptDelegate * m_interruptDelegate
void setInterruptDelegate(LTIInterruptDelegate *delegate)
void setProgressDelegate(LTIProgressDelegate *delegate)
LTIInterruptDelegate * getInterruptDelegate() const
LTIProgressDelegate * getProgressDelegate() const
LT_STATUS setPixelLookupTable(const LTIPixelLookupTable *pixelLookupTable)
set the color lookup table
const LTIPixelLookupTable * getPixelLookupTable() const
LT_STATUS overridePixelLookupTable(const LTIPixelLookupTable *pixelLookupTable)
class for storing metadata associated with an image
basic properties of a pixel
Definition: lti_pixel.h:32
color lookup table

Extensis