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

#include <TerrainLayers.h>

Inheritance diagram for vtImageLayer:
vtLayer vtLayer

Public Member Functions

 vtImageLayer (const DRECT &area, int xsize, int ysize, const vtProjection &proj)
 
bool GetExtent (DRECT &rect)
 Get the extents.
 
void DrawLayer (wxDC *pDC, vtScaledView *pView)
 
bool TransformCoords (vtProjection &proj)
 Transform the coordinates into another CRS.
 
bool OnSave (bool progress_callback(int)=NULL)
 
bool OnLoad ()
 
bool AppendDataFrom (vtLayer *pL)
 Merge the contents of another layer (of the same type)
 
void GetProjection (vtProjection &proj)
 Get the CRS.
 
void SetProjection (const vtProjection &proj)
 Set the CRS, which does not reproject.
 
void Offset (const DPoint2 &delta)
 Shift all the coordinates by a horizontal offset.
 
bool SetExtent (const DRECT &rect)
 
void GetPropertyText (wxString &str)
 
vtImageGetImage ()
 
DPoint2 GetSpacing () const
 
bool ImportFromFile (const wxString &strFileName, bool progress_callback(int)=NULL)
 
bool ImportFromDB (const char *szFileName, bool progress_callback(int)=NULL)
 
void ReplaceColor (const RGBi &rgb1, const RGBi &rgb2)
 
void SetLayerName (const vtString &fname)
 
vtString GetLayerName ()
 
void SetVisible (bool vis)
 
bool GetVisible ()
 
- Public Member Functions inherited from vtLayer
 vtLayer (LayerType type)
 
LayerType GetType ()
 
bool SetVisible (bool bVisible)
 
bool GetVisible ()
 
void SetModified (bool bModified)
 
bool GetModified ()
 
void SetSticky (bool bSticky)
 
bool GetSticky ()
 
bool IsNative ()
 
wxString GetImportedFrom ()
 
void SetImportedFrom (const wxString &fname)
 
bool Save (bool progress_callback(int)=NULL)
 
bool SaveAs (const wxString &filename=_T(""), bool progress_callback(int)=NULL)
 
bool Load (const wxString &filename=_T(""))
 
virtual wxString GetFileExtension ()
 
virtual bool CanBeSaved ()
 
virtual wxString GetLayerFilename ()
 
virtual void SetLayerFilename (const wxString &fname)
 
virtual bool AskForSaveFilename ()
 
vtString GetExportFilename (const wxString &format_filter)
 
bool GetAreaExtent (DRECT &rect)
 
virtual void OnLeftDown (BuilderView *pView, UIContext &ui)
 
virtual void OnLeftUp (BuilderView *pView, UIContext &ui)
 
virtual void OnRightDown (BuilderView *pView, UIContext &ui)
 
virtual void OnRightUp (BuilderView *pView, UIContext &ui)
 
virtual void OnLeftDoubleClick (BuilderView *pView, UIContext &ui)
 
virtual void OnMouseMove (BuilderView *pView, UIContext &ui)
 

Public Attributes

vtImageGeoPtr m_pImage
 
vtMultiTexturem_pMultiTexture
 

Protected Attributes

vtImagem_pImage
 
- Protected Attributes inherited from vtLayer
wxString m_wsFilename
 
wxString m_wsImportedFrom
 
LayerType m_type
 
bool m_bVisible
 
bool m_bModified
 
bool m_bNative
 
bool m_bSticky
 

Additional Inherited Members

- Static Public Member Functions inherited from vtLayer
static vtLayerCreateNewLayer (LayerType ltype)
 
- Static Public Attributes inherited from vtLayer
static wxArrayString LayerTypeNames
 
static const wxChar * LayerFileExtension []
 
- Protected Member Functions inherited from vtLayer
wxString GetSaveFileDialogFilter ()
 
void SetMessageText (const wxString &msg)
 

Detailed Description

A vtlib image layer is a bitmap draped on the terrain surface.

Member Function Documentation

bool vtImageLayer::ImportFromDB ( const char *  szFileName,
bool   progress_callbackint = NULL 
)

Loads from a "DB" file, which is the format of libMini tilesets tiles.

Returns
true if the file was successfully opened and read.

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