com.partnersoft.maps.model
Class RasterImage

java.lang.Object
  extended by com.partnersoft.maps.model.RasterImage

public class RasterImage
extends java.lang.Object

A single raster image, as provided by a RasterSet.

Copyright 2005-2009 Partner Software, Inc.

Version:
$Id: RasterImage.java 2328 2010-01-06 15:38:22Z paul $
Author:
Paul Reavis

Field Summary
 VfsFile file
           
 double originX
           
 double originY
           
 int pixelHeight
           
 int pixelWidth
           
 double scale
           
 
Constructor Summary
RasterImage(VfsFile file, double originX, double originY, double scale, int pixelWidth, int pixelHeight)
           
 
Method Summary
 OpenglTextureHandle addTexture(OpenglControl control)
          Adds the textureHandle to the given control and returns the ID.
 XyBounds getBounds()
           
 int getByteCount()
          Returns an approximate size in bytes of this image and/or textureHandle.
 XyPoint getCenter()
           
 java.awt.Image getImage()
           
 boolean isMarkedForRemoval()
           
 void removeTexture()
          Removes the textureHandle from GLTextureManager.
 void setMarkedForRemoval(boolean tizit)
          Marks this image for removal after it is rendered.
 java.lang.String toString()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

file

public VfsFile file

originX

public double originX

originY

public double originY

scale

public double scale

pixelWidth

public int pixelWidth

pixelHeight

public int pixelHeight
Constructor Detail

RasterImage

public RasterImage(VfsFile file,
                   double originX,
                   double originY,
                   double scale,
                   int pixelWidth,
                   int pixelHeight)
Method Detail

getImage

public java.awt.Image getImage()

addTexture

public OpenglTextureHandle addTexture(OpenglControl control)
Adds the textureHandle to the given control and returns the ID.

Returns:

isMarkedForRemoval

public boolean isMarkedForRemoval()

setMarkedForRemoval

public void setMarkedForRemoval(boolean tizit)
Marks this image for removal after it is rendered.


removeTexture

public void removeTexture()
Removes the textureHandle from GLTextureManager.


getCenter

public XyPoint getCenter()

getBounds

public XyBounds getBounds()

getByteCount

public int getByteCount()
Returns an approximate size in bytes of this image and/or textureHandle.


toString

public java.lang.String toString()
Overrides:
toString in class java.lang.Object