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 
14 LT_BEGIN_LIZARDTECH_NAMESPACE
15 
16 
19 
21 {
24 
27 
29 };
30 
31 
32 template<class BASE>
33 struct LTIOverrideMetadata : public BASE,
34  protected LTIOverrideMetadataData
35 {
37  {
38  return *m_metadata;
39  }
40 
42  {
44  }
45 };
46 
49 
51 {
53 
67 
70 };
71 
72 template<class BASE>
73 struct 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 
187 template<class BASE>
188 struct LTIOverridePixelProps : public BASE,
189  protected LTIOverridePixelPropsData
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 
227  const LTIPixel *getNoDataPixel() const
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 
287 template<class BASE>
288 struct LTIOverrideGeoCoord : public BASE,
289  protected LTIOverrideGeoCoordData
290 {
291  const LTIGeoCoord &getGeoCoord() const
292  {
293  return *m_geoCoord;
294  }
295 
296  bool isGeoCoordImplicit() const
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 
336 template<class BASE>
337 struct 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 
376 template<class BASE>
377 struct LTIOverrideIsSelective : public BASE,
379 {
380  bool isSelective() const
381  {
382  return m_isSelective;
383  }
384 };
385 
388 
390 {
392 
394 };
395 
396 template<class BASE>
397 struct 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 
423 template<class BASE>
424 struct LTIOverrideDelegates : public BASE,
425  protected LTIOverrideDelegatesData
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 
476 template<class BASE>
477 struct LTIOverridePixelLookupTables : public BASE,
479 {
481  {
482  return m_pixelLookupTable;
483  }
484 
486  {
487  return setPixelLookupTable(pixelLookupTable);
488  }
489 };
490 
491 
494 
497 
500 
501 LT_END_LIZARDTECH_NAMESPACE
502 
503 
504 #endif // LTI_IMAGE_STAGE_OVERRIDES_H
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
This file contains a number of enums, typedefs, etc, that are used throughout the MrSID SDK.
LTIColorSpace
colorspaces
Definition: lti_types.h:34
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
LT_STATUS createMetadata(const LTIMetadataDatabase *metadata)
LTIMetadataDatabase * m_metadata
LTIMetadataDatabase & getMetadata()
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)
const LTIPixel & getMinDynamicRange() const
LT_STATUS overrideNoDataPixel(const LTIPixel *nodataPixel)
LT_STATUS overridePixelBPS(lt_uint8 bps)
LT_STATUS overrideBackgroundPixel(const LTIPixel *backgroundPixel)
LT_STATUS overrideDynamicRange(const LTIPixel &drmin, const LTIPixel &drmax)
LT_STATUS overrideColorSpace(LTIColorSpace colorspace)
const LTIPixel & getMaxDynamicRange() const
const LTIPixel * getNoDataPixel() const
const LTIPixel * getBackgroundPixel() const
const LTIPixel & getPixelProps() 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
LT_STATUS overrideGeoCoord(const LTIGeoCoord &geoCoord)
const LTIGeoCoord & getGeoCoord() const
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)
LTIProgressDelegate * getProgressDelegate() const
void setProgressDelegate(LTIProgressDelegate *delegate)
LTIInterruptDelegate * getInterruptDelegate() 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