Umasoft
 All Classes Files Functions Variables Typedefs Enumerations Enumerator Groups Pages
Public Member Functions | Protected Attributes | List of all members
vtImageGeo Class Reference
Inheritance diagram for vtImageGeo:
vtImage vtBitmapBase

Public Member Functions

 vtImageGeo (const vtImageGeo *copyfrom)
 
bool ReadTIF (const char *filename, bool progress_callback(int)=NULL)
 
void ReadExtents (const char *filename)
 
vtProjectionGetProjection ()
 
DRECTGetExtents ()
 
- Public Member Functions inherited from vtImage
 vtImage (const DRECT &area, int xsize, int ysize, const vtProjection &proj)
 
bool GetExtent (DRECT &rect) const
 
void SetExtent (const DRECT &rect)
 
void DrawToView (wxDC *pDC, vtScaledView *pView)
 
bool ConvertProjection (vtImage *input, vtProjection &proj_new, int iSampleN, bool progress_callback(int)=NULL)
 
DPoint2 GetSpacing (int bitmap=0) const
 
vtBitmapGetBitmap ()
 
void GetProjection (vtProjection &proj) const
 
vtProjectionGetAtProjection ()
 
void SetProjection (const vtProjection &proj)
 
bool ReprojectExtents (const vtProjection &proj_new)
 
void GetDimensions (int &xsize, int &ysize) const
 
IPoint2 GetDimensions () const
 
bool GetColorSolid (const DPoint2 &p, RGBi &rgb, double dRes=0.0)
 
bool GetMultiSample (const DPoint2 &p, const DLine2 &offsets, RGBi &rgb, double dRes=0.0)
 
void GetRGB (int x, int y, RGBi &rgb, double dRes=0.0)
 
void SetRGB (int x, int y, uchar r, uchar g, uchar b)
 
void SetRGB (int x, int y, const RGBi &rgb)
 
void ReplaceColor (const RGBi &rgb1, const RGBi &rgb2)
 
void SetupBitmapInfo (int iXSize, int iYSize)
 
bool ReadPPM (const char *fname, bool progress_callback(int)=NULL)
 
bool WritePPM (const char *fname) const
 
bool SaveToFile (const char *fname) const
 
bool ReadPNGFromMemory (uchar *buf, int len)
 
bool LoadFromGDAL (const char *fname)
 
bool CreateOverviews ()
 
bool ReadFeaturesFromTerraserver (const DRECT &area, int iTheme, int iMetersPerPixel, int iUTMZone, const char *filename)
 
bool WriteGridOfTilePyramids (TilingOptions &opts, BuilderView *pView)
 
bool WriteTile (const TilingOptions &opts, BuilderView *pView, vtString &dirname, DRECT &tile_area, DPoint2 &tile_dim, int col, int row, int lod)
 
size_t NumBitmaps () const
 
BitmapInfoGetBitmapInfo (size_t i)
 
int NumBitmapsInMemory ()
 
int NumBitmapsOnDisk ()
 
void AllocMipMaps ()
 
void DrawMipMaps ()
 
void FreeMipMaps ()
 
 vtImage (class vtDIB *pDIB)
 
 vtImage (vtImage *copyfrom)
 
bool Create (int width, int height, int bitdepth, bool create_palette=false)
 
bool WritePNG (const char *fname, bool progress_callback(int)=NULL)
 
bool WriteJPEG (const char *fname, int quality=99, bool progress_callback(int)=NULL)
 
bool HasData ()
 
void Scale (int w, int h)
 
std::string GetFilename () const
 Return the name of the file, if any, from which the image was loaded.
 
uchar GetPixel8 (int x, int y) const
 
void GetPixel24 (int x, int y, RGBi &rgb) const
 
void GetPixel32 (int x, int y, RGBAi &rgba) const
 
void SetPixel8 (int x, int y, uchar color)
 
void SetPixel24 (int x, int y, const RGBi &rgb)
 
void SetPixel32 (int x, int y, const RGBAi &rgba)
 
uint GetWidth () const
 
uint GetHeight () const
 
uint GetDepth () const
 
uchar * GetData ()
 
uchar * GetRowData (int row)
 
- Public Member Functions inherited from vtBitmapBase
void ScalePixel8 (int x, int y, float fScale)
 
void ScalePixel24 (int x, int y, float fScale)
 
void ScalePixel32 (int x, int y, float fScale)
 
void BlitTo (vtBitmapBase &target, int x, int y)
 

Protected Attributes

vtProjection m_proj
 
DRECT m_extents
 
- Protected Attributes inherited from vtImage
vtProjection m_proj
 
DRECT m_Extents
 
std::vector< BitmapInfom_Bitmaps
 
int m_iTotal
 
int m_iCompleted
 
ImageGLCanvas * m_pCanvas
 

Additional Inherited Members

- Public Attributes inherited from vtImage
GDALDataset * m_pDataset
 
LineBufferGDAL m_linebuf
 
- Static Public Attributes inherited from vtImage
static bool bTreatBlackAsTransparent = false
 
- Protected Member Functions inherited from vtImage
void SetDefaults ()
 
void CleanupGDALUsage ()
 
void _BasicInit ()
 
void _CreateFromDIB (vtDIB *pDIB, bool b16bit=false)
 
bool _ReadPNG (const char *filename)
 

The documentation for this class was generated from the following files: