16LT_BEGIN_LIZARDTECH_NAMESPACE
264 double width,
double height,
265 double magnification);
281 double lowerRightX,
double lowerRightY,
282 double magnification);
298 double width,
double height,
299 double magnification);
323 double width,
double height,
324 double magnification);
341 double lowerRightX,
double lowerRightY,
342 double magnification);
359 double width,
double height,
360 double magnification);
368LT_END_LIZARDTECH_NAMESPACE
lt_uint32 LT_STATUS
An integral status code.
represents a geographic coordinate
abstract class representing an image
provides LTIScene movement control
LT_STATUS bestFit(double maxWidth, double maxHeight, LTIScene &newScene)
return scene large enough to fit window
LTINavigator(const LTIImage &image, const LTIScene &scene)
constructor
LT_STATUS moveBy(double xDelta, double yDelta, Style style)
move by specified amount
LTINavigator(const LTIImage &image)
default constructor
const LTIImage & getImage() const
Returns the image the navigator is attached to.
LT_STATUS setSceneAsGeoCWH(double centerX, double centerY, double width, double height, double magnification)
set scene to given position
LT_STATUS setSceneAsULLR(double upperLeftX, double upperLeftY, double lowerRightX, double lowerRightY, double magnification)
set scene to given position
void roundScene()
round scene to integral values
LT_STATUS zoomBy(double delta, Style style)
zoom by specified amount
LTIGeoCoord getGeoCoord() const
returns the geographic coordinates of scene
LT_STATUS setSceneAsGeoULWH(double upperLeftX, double upperLeftY, double width, double height, double magnification)
set scene to given position
~LTINavigator()
destructor
LT_STATUS setSceneToFull()
set scene to full image
LT_STATUS setSceneAsGeoULLR(double upperLeftX, double upperLeftY, double lowerRightX, double lowerRightY, double magnification)
set scene to given position
LT_STATUS setSceneToIcon()
set scene to "icon"
bool isSceneValid() const
is current scene is legal for the image
bool clipToImage()
clip scene to fit image
LT_STATUS setSceneAsCWH(double centerX, double centerY, double width, double height, double magnification)
sets scene to the given position
bool clipToScene(const LTIScene &scene)
clip scene to fit given scene
LT_STATUS setScene(const LTIScene &scene, Style style)
reset scene
Style
Styles for scene-setting operations.
@ STYLE_CLIP
if invalid scene, clip scene to image and return success
@ STYLE_STRICT
if invalid scene, return an error code
@ STYLE_LAX
if invalid scene, return success anyway
const LTIScene & getScene() const
get current scene
LT_STATUS setSceneAsULWH(double upperLeftX, double upperLeftY, double width, double height, double magnification)
set scene to given position
const LTIImage & m_image
set scene to given position
LT_STATUS moveTo(double x, double y, Style style)
move to specified amount
LT_STATUS zoomTo(double mag, Style style)
zoom to specified scale
representation of a scene