Public Member Functions |
| | DtMultiResPaperMap () |
| | default constructor.
|
| virtual | ~DtMultiResPaperMap () |
| | destructor
|
| virtual bool | init (const DtFilename &path, DtPaperMapRecord *paperMapRec, const Coordinate_System *coordSys) |
| | Load the papermap. coordSys is the coordinate system of the terrain database.
|
| virtual bool | loadImage (const DtFilename &imageFile, const Coordinate_System *coordSys) |
| virtual const DtString | mapType () const |
| const DtFilename & | mtlFilename () const |
| void | setCacheImages (bool) |
| bool | cacheImages () const |
| virtual void | setMapFolder (const DtFilename &folder) |
| virtual const DtFilename & | mapFolder () const |
| virtual bool | hasAlpha () const |
| virtual bool | canLoadImage () const |
| | Returns true if image can be loaded into memory.
|
| | DtPixmapPaperMap () |
| | default constructor.
|
| virtual | ~DtPixmapPaperMap () |
| | destructor
|
| virtual const DtPoint & | dbSwCorner () const |
| | Returns the southwest point of the bitmap in database coordinates.
|
| virtual void | setDbSwCorner (const DtPoint &) |
| virtual const DtPoint & | dbNeCorner () const |
| | Returns the northeast point of the bitmap in database coordinates.
|
| virtual void | setDbNeCorner (const DtPoint &) |
| virtual const DtFilename & | imageName () const |
| | Returns the image name this record was loaded with.
|
| virtual double | xSize () const |
| | Returns the width of the bitmap.
|
| virtual double | ySize () const |
| | Returns the height of the bitmap.
|
| virtual void | load () |
| virtual bool | getScaledImage (const Coordinate_System *coordSys, const DtExtent &viewportExtent, const DtDisplaySize &screenSize, DtPoint &bitmapLocation, QImage &image, bool useMask, QColor *backgroundColor=NULL, int *scaledBitmapX=NULL, int *scaledBitmapY=NULL) |
| | Returns a pointer to the scaled bitmap as a QImage.
|
| virtual bool | getBoundingBox (const DtExtent &viewportExtent, DtExtent &paperMapExtent, DtExtent &visibleExtent, DtDisplayPoint &wll, DtDisplayPoint &wur) |
| | Returns extent information.
|
| virtual bool | setCoordinates (const DtPoint &swCorner, const DtPoint &neCorner, const Coordinate_System *coordSys) |
| | Sets nw and se db coordinates.
|
| virtual void | setImageName (const DtFilename &) |
| QImage * | image () |
| virtual QSize | imageSize () const |
| virtual QSize | setImageSize (const QSize &) |
| | Sets the size of the base image by scaling it (if necessary) and returns the image size that is resultant.
|
| virtual void | setImageLoadingEnabled (bool) |
| | Sets whether or not an image is loaded when it needs to be (true).
|
| bool | imageLoadingEnabled () const |
| | DtPaperMap () |
| virtual | ~DtPaperMap () |
| virtual const DtString & | name (void) const |
| virtual void | setName (const DtString &name) |
| virtual void | setShow (bool b) |
| virtual bool | show (void) |
| virtual DtPaperMap::AlphaMode | alphaMode () const |
| virtual void | setAlphaMode (DtPaperMap::AlphaMode alphaMode) |
| virtual void | setTransparencyLevel (int d) |
| virtual int | transparencyLevel () const |
| virtual const Coordinate_System * | coordSys () const |
| virtual bool | setCoordSys (DtPaperMap::DtCoordinateSystem sys, const Coordinate_System *terrainSys) |
| DtPaperMap::DtCoordinateSystem | coordinateSystemType () const |
Protected Member Functions |
| virtual bool | getImageSlice (const Coordinate_System *coordSys, const DtExtent &viewportExtent, const DtDisplaySize &screenSize, DtPoint &bitmapLocation, int &scaledBitmapSizeX, int &scaledBitmapSizeY, QImage &image, bool useMask, QColor *backgroundColor) |
| | Returns a pointer to the slice of the image we need to display.
|
| virtual bool | getImageSlice (const Coordinate_System *coordSys, const DtExtent &viewportExtent, const DtDisplaySize &screenSize, DtPoint &bitmapLocation, int &scaledBitmapSizeX, int &scaledBitmapSizeY, bool useMask, QColor *backgroundColor, QImage *retImage) |
| | Called from either of the two above methods, returns the resultant image in the image supplied.
|
| virtual bool | drawAsImage () const |
| | Currently does not support alpha channel in image, so this will always return false.
|
| virtual void | emptyActiveMapList () |
| virtual void | emptyCachedMapList () |
| virtual bool | addMapToActiveList (DtRasterMap *map) |
| virtual bool | recheckMaps (const DtExtent &dbExtent, double resolution, QSize &imageSizeFull, QSize &imageSizeSet, const Coordinate_System *coordSys, DtExtent &globalExtent) |
| virtual void | paintMap (const Coordinate_System *coordSys, DtMultiResActiveMapRecord &imageData, QRect &redraw, QImage *destImage, int pixWidth, int pixHeight, const DtExtent &dbExtent) |
| virtual void | calcWindowRect (DtMultiResActiveMapRecord &imageData, int pixWidth, int pixHeight, const DtExtent &dbExtent, QPoint &topLeft, QPoint &bottomRight) |
| virtual bool | getExtentIntersection (const DtExtent &rect1, const DtExtent &rect2, DtExtent &intersectionRect) |
| virtual bool | loadRasterSet (const DtFilename &filename, const Coordinate_System *coordSys) |
| virtual void | unloadRasterSet () |
| virtual void | getXandYIncrements (const Coordinate_System *coordSys, double &xIncrement, double &yIncrement) |
| virtual void | initCacheInformation (const Coordinate_System *coordSys) |
| virtual double | resolutionFor (const Coordinate_System *coordSys, const DtExtent &extent) |
| virtual void | imageShift (const Coordinate_System *coordSys, const DtExtent &dbExtent) |
| | Will shift the current image to account for new sub images being placed in.
|
| virtual bool | screenLocation (const Coordinate_System *coordSys, DtMultiResActiveMapRecord &imageData, int pixWidth, int pixHeight, const DtExtent &dbExtent, DtDisplayPoint &wll, DtDisplayPoint &wur) |
| | DtPixmapPaperMap (const DtPixmapPaperMap &orig) |
| | copy constructor
|
| DtPixmapPaperMap & | operator= (const DtPixmapPaperMap &rhs) |
| | assignment operator
|
| DtPoint | getDbPoint (const DtPoint &point, const Coordinate_System *coordFrom, const Coordinate_System *coordTo) |
| | converts metafile coordinates to database coordinates
|
| virtual bool | isSupportedTif (const QFileInfo &info) const |
| | Returns true if the myImage variable is non-null (which will be true if the loaded image had an alpha channel)
|
| | DtPaperMap (const DtPaperMap &orig) |
| DtPaperMap & | operator= (const DtPaperMap &rhs) |
class DtMultiResPaperMap:
Instances of this class are individual papermaps, loaded from a file in in some raster format.