MrSID Decode SDK for Raster Reference Manual  9.5.4.4709
lti_scene.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_SCENE_H
14 #define LTI_SCENE_H
15 
16 // lt_lib_mrsid_core
17 #include "lti_types.h"
18 #include "lti_geometry.h"
19 
21 
22 
23 
64 class LTIScene
65 {
66 public:
78  LTIScene(double ulX, double ulY,
79  double width, double height,
80  double magnification);
81 
85  LTIScene(const LTIScene& copy);
86 
93  LTIScene(void);
94 
95  LTIScene(const LTIGeomIntRect &rect, double magnification);
96  LTIGeomIntRect getRect(void) const;
97 
101  LTIScene& operator=(const LTIScene&);
102 
106  bool operator==(const LTIScene&) const;
107 
111  bool operator!=(const LTIScene&) const;
112 
113 
121  double getMag() const;
122 
123 
128 
136  double getUpperLeftX() const;
137 
145  double getUpperLeftY() const;
146 
154  double getLowerRightX() const;
155 
163  double getLowerRightY() const;
164 
172  double getUpperRightX() const;
173 
181  double getUpperRightY() const;
182 
190  double getLowerLeftX() const;
191 
199  double getLowerLeftY() const;
200 
208  double getCenterX() const;
209 
217  double getCenterY() const;
218 
230 
238  lt_int32 getUpperLeftCol() const;
239 
247  lt_int32 getUpperLeftRow() const;
248 
256  lt_int32 getLowerRightCol() const;
257 
265  lt_int32 getLowerRightRow() const;
266 
274  lt_int32 getUpperRightCol() const;
275 
283  lt_int32 getUpperRightRow() const;
284 
292  lt_int32 getLowerLeftCol() const;
293 
301  lt_int32 getLowerLeftRow() const;
302 
310  lt_int32 getCenterCol() const;
311 
319  lt_int32 getCenterRow() const;
320 
329 
337  double getWidth() const;
338 
346  double getHeight() const;
347 
355  lt_int32 getNumCols() const;
356 
364  lt_int32 getNumRows() const;
365 
374 
383  double getX() const;
384 
393  double getY() const;
394 
406  void getPoints(double& ulX, double& ulY,
407  double& lrX, double& lrY) const;
408 
426  void getPoints(double& ulX, double& ulY,
427  double& urX, double& urY,
428  double& llX, double& llY,
429  double& lrX, double& lrY,
430  double& cX, double& cY) const;
431 
443  void getPoints(lt_int32& ulX, lt_int32& ulY,
444  lt_int32& lrX, lt_int32& lrY) const;
445 
463  void getPoints(lt_int32& ulX, lt_int32& ulY,
464  lt_int32& urX, lt_int32& urY,
465  lt_int32& llX, lt_int32& llY,
466  lt_int32& lrX, lt_int32& lrY,
467  lt_int32& cX, lt_int32& cY) const;
476  LTIScene clip(double width, double height) const;
477 
478 
479 
480 
481 
482 protected:
483  double m_ulX, m_ulY;
484  double m_width, m_height;
486 
487 private:
488  lt_int32 getHalfWidth_i() const;
489  lt_int32 getHalfHeight_i() const;
490 };
491 
492 
494 
495 
496 #endif // LTI_SCENE_H
representation of a scene
Definition: lti_scene.h:64
#define LT_END_NAMESPACE(theNameSpace)
compiler does not support namespaces
Definition: lt_define.h:85
double m_width
Definition: lti_scene.h:484
signed int lt_int32
signed 32-bit integer
Definition: lt_types.h:52
double m_magnification
Definition: lti_scene.h:485
This file contains a number of enums, typedefs, etc, that are used throughout the MrSID SDK...
#define LT_BEGIN_NAMESPACE(theNameSpace)
compiler does not support namespaces
Definition: lt_define.h:84
double m_ulY
Definition: lti_scene.h:483

LizardTech