MrSID Decode SDK for Raster Reference Manual 9.5.5.5244
lti_scene.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_SCENE_H
9#define LTI_SCENE_H
10
11// lt_lib_mrsid_core
12#include "lti_types.h"
13#include "lti_geometry.h"
14
15LT_BEGIN_LIZARDTECH_NAMESPACE
16
17
60{
61public:
73 LTIScene(double ulX, double ulY,
74 double width, double height,
75 double magnification);
76
80 LTIScene(const LTIScene& copy);
81
88 LTIScene(void);
89
90 LTIScene(const LTIGeomIntRect &rect, double magnification);
92
97
101 bool operator==(const LTIScene&) const;
102
106 bool operator!=(const LTIScene&) const;
107
108
116 double getMag() const;
117
118
123
131 double getUpperLeftX() const;
132
140 double getUpperLeftY() const;
141
149 double getLowerRightX() const;
150
158 double getLowerRightY() const;
159
167 double getUpperRightX() const;
168
176 double getUpperRightY() const;
177
185 double getLowerLeftX() const;
186
194 double getLowerLeftY() const;
195
203 double getCenterX() const;
204
212 double getCenterY() const;
213
225
234
243
252
261
270
279
288
297
306
315
324
332 double getWidth() const;
333
341 double getHeight() const;
342
351
360
369
378 double getX() const;
379
388 double getY() const;
389
401 void getPoints(double& ulX, double& ulY,
402 double& lrX, double& lrY) const;
403
421 void getPoints(double& ulX, double& ulY,
422 double& urX, double& urY,
423 double& llX, double& llY,
424 double& lrX, double& lrY,
425 double& cX, double& cY) const;
426
438 void getPoints(lt_int32& ulX, lt_int32& ulY,
439 lt_int32& lrX, lt_int32& lrY) const;
440
458 void getPoints(lt_int32& ulX, lt_int32& ulY,
459 lt_int32& urX, lt_int32& urY,
460 lt_int32& llX, lt_int32& llY,
461 lt_int32& lrX, lt_int32& lrY,
462 lt_int32& cX, lt_int32& cY) const;
471 LTIScene clip(double width, double height) const;
472
473
474
475
476
477protected:
478 double m_ulX, m_ulY;
481
482private:
483 lt_int32 getHalfWidth_i() const;
484 lt_int32 getHalfHeight_i() const;
485};
486
487
488LT_END_LIZARDTECH_NAMESPACE
489
490
491#endif // LTI_SCENE_H
This file contains a number of enums, typedefs, etc, that are used throughout the MrSID SDK.
signed int lt_int32
signed 32-bit integer
Definition: lt_types.h:42
representation of a scene
Definition: lti_scene.h:60
double getLowerRightY() const
returns the y-position of the lower-right point
void getPoints(lt_int32 &ulX, lt_int32 &ulY, lt_int32 &lrX, lt_int32 &lrY) const
returns the (x,y) positions of the upper-left and lower-right points
bool operator!=(const LTIScene &) const
equality operator
lt_int32 getLowerRightRow() const
returns the y-position of the lower-right point
bool operator==(const LTIScene &) const
equality operator
double getUpperRightY() const
returns the y-position of the upper-left point
LTIScene(const LTIGeomIntRect &rect, double magnification)
double m_ulY
returns the x-position of the upper-left point
Definition: lti_scene.h:478
LTIGeomIntRect getRect(void) const
double getMag() const
returns the magnification of the scene
double m_height
returns the x-position of the upper-left point
Definition: lti_scene.h:479
LTIScene(double ulX, double ulY, double width, double height, double magnification)
constructor
LTIScene clip(double width, double height) const
return a clip scene to fit an image with size (width, height)
double getCenterX() const
returns the x-position of the center point
lt_int32 getNumRows() const
returns the height of the scene
double getCenterY() const
returns the x-position of the center point
double getLowerLeftY() const
returns the y-position of the lower-left point
double getUpperLeftX() const
returns the x-position of the upper-left point
lt_int32 getNumCols() const
returns the width of the scene
LTIScene(void)
default constructor
void getPoints(lt_int32 &ulX, lt_int32 &ulY, lt_int32 &urX, lt_int32 &urY, lt_int32 &llX, lt_int32 &llY, lt_int32 &lrX, lt_int32 &lrY, lt_int32 &cX, lt_int32 &cY) const
returns the (x,y) positions of the center and corner points
double m_width
returns the x-position of the upper-left point
Definition: lti_scene.h:479
double getUpperRightX() const
returns the x-position of the upper-right point
lt_int32 getUpperRightCol() const
returns the x-position of the upper-right point
double getX() const
returns the x-position of the upper-left point
double m_magnification
returns the x-position of the upper-left point
Definition: lti_scene.h:480
lt_int32 getCenterRow() const
returns the y-position of the center point
double getHeight() const
returns the height of the scene
double getWidth() const
returns the width of the scene
lt_int32 getLowerLeftRow() const
returns the y-position of the lower-left point
double m_ulX
returns the x-position of the upper-left point
Definition: lti_scene.h:478
lt_int32 getUpperLeftRow() const
returns the y-position of the upper-left point
LTIScene & operator=(const LTIScene &)
assignment operator
void getPoints(double &ulX, double &ulY, double &urX, double &urY, double &llX, double &llY, double &lrX, double &lrY, double &cX, double &cY) const
returns the (x,y) positions of the center and corner points
double getUpperLeftY() const
returns the y-position of the upper-left point
double getLowerRightX() const
returns the x-position of the lower-right point
lt_int32 getCenterCol() const
returns the x-position of the center point
lt_int32 getLowerLeftCol() const
returns the x-position of the lower-left point
lt_int32 getUpperLeftCol() const
returns the x-position of the upper-left point
LTIScene(const LTIScene &copy)
copy constructor
void getPoints(double &ulX, double &ulY, double &lrX, double &lrY) const
returns the (x,y) positions of the upper-left and lower-right points
double getY() const
returns the y-position of the upper-left point
lt_int32 getUpperRightRow() const
returns the y-position of the upper-right point
lt_int32 getLowerRightCol() const
returns the x-position of the lower-right point
double getLowerLeftX() const
returns the x-position of the lower-left point

Extensis