Umasoft
 All Classes Files Functions Variables Typedefs Enumerations Enumerator Groups Pages
Public Member Functions | Public Attributes | List of all members
AttribMap Class Reference

#include <AttribMap.h>

Inheritance diagram for AttribMap:
vtDIB vtBitmapBase

Public Member Functions

bool Load (const char *fname_att, const char *fname_bmp)
 
int GetAttribute (float utm_x, float utm_y)
 
- Public Member Functions inherited from vtDIB
 vtDIB ()
 
 vtDIB (void *pDIB)
 
bool Create (int width, int height, int bitdepth, bool create_palette=false)
 
bool Create24From8bit (const vtDIB &from)
 
bool Read (const char *fname, bool progress_callback(int)=NULL)
 
bool ReadBMP (const char *fname, bool progress_callback(int)=NULL)
 
bool ReadJPEG (const char *fname, bool progress_callback(int)=NULL)
 
bool ReadPNG (const char *fname, bool progress_callback(int)=NULL)
 
bool WriteBMP (const char *fname)
 
bool WriteJPEG (const char *fname, int quality, bool progress_callback(int)=NULL)
 
bool WritePNG (const char *fname)
 
bool WriteTIF (const char *fname, const DRECT *area=NULL, const vtProjection *proj=NULL, bool progress_callback(int)=NULL)
 
uint GetPixel24 (int x, int y) const
 
void GetPixel24 (int x, int y, RGBi &rgb) const
 
void GetPixel24From8bit (int x, int y, RGBi &rgb) const
 
void SetPixel24 (int x, int y, dword color)
 
void SetPixel24 (int x, int y, const RGBi &rgb)
 
void GetPixel32 (int x, int y, RGBAi &rgba) const
 
void SetPixel32 (int x, int y, const RGBAi &rgba)
 
uchar GetPixel8 (int x, int y) const
 
void SetPixel8 (int x, int y, uchar color)
 
bool GetPixel1 (int x, int y) const
 
void SetPixel1 (int x, int y, bool color)
 
void SetColor (const RGBi &rgb)
 
void Invert ()
 
void Blit (vtDIB &target, int x, int y)
 
uint GetWidth () const
 
uint GetHeight () const
 
uint GetDepth () const
 
void * GetHandle () const
 
BITMAPINFOHEADERGetDIBHeader () const
 
void * GetDIBData () const
 
void LeaveInternalDIB (bool bLeaveIt)
 
- 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)
 

Public Attributes

int m_iNumAttribs
 
int m_xmin
 
int m_xmax
 
int m_ymin
 
int m_ymax
 
AttribTableEntrym_AttribTable
 
- Public Attributes inherited from vtDIB
bool m_bLoadedSuccessfully
 

Detailed Description

This class implements a bitmap which has its colors mapped onto specific integer attributes. For example, Red pixels can mean attribute value 1, Orange can mean 2, and so forth.


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