SAGA API Version 9.14
Loading...
Searching...
No Matches
CMap Class Reference

#include <mapping.h>

Public Member Functions

 CMap (void)
virtual ~CMap (void)
 CMap (const CSG_Rect &rWorld, int Width, int Height, double Scale=1., int Background=-1, bool bAlpha=false)
bool Create (const CSG_Rect &rWorld, int Width, int Height, double Scale=1., int Background=-1, bool bAlpha=false)
bool Clear (void)
const CSG_Rect & Get_Extent (void) const
int Get_Width (void) const
int Get_Height (void) const
bool Draw (CMap_Canvas &Canvas, int x, int y, int Frame=0)
bool Draw (class CMap_Base_Layer &Layer)
bool Save (const char *File)
bool Save (const wchar_t *File)
bool Save (const CSG_String &File)

Friends

class CMap_Base_Layer

Detailed Description

Definition at line 108 of file mapping.h.

Constructor & Destructor Documentation

◆ CMap() [1/2]

CMap::CMap ( void )

Definition at line 178 of file mapping.cpp.

◆ ~CMap()

CMap::~CMap ( void )
virtual

Definition at line 192 of file mapping.cpp.

◆ CMap() [2/2]

CMap::CMap ( const CSG_Rect & rWorld,
int Width,
int Height,
double Scale = 1.,
int Background = -1,
bool bAlpha = false )

Definition at line 184 of file mapping.cpp.

References Create().

Member Function Documentation

◆ Clear()

bool CMap::Clear ( void )

Definition at line 204 of file mapping.cpp.

◆ Create()

bool CMap::Create ( const CSG_Rect & rWorld,
int Width,
int Height,
double Scale = 1.,
int Background = -1,
bool bAlpha = false )

Definition at line 198 of file mapping.cpp.

Referenced by CMap().

◆ Draw() [1/2]

bool CMap::Draw ( class CMap_Base_Layer & Layer)

Definition at line 273 of file mapping.cpp.

References CMap_Base_Layer, and CMap_Base_Layer::Draw().

◆ Draw() [2/2]

◆ Get_Extent()

const CSG_Rect & CMap::Get_Extent ( void ) const

Definition at line 210 of file mapping.cpp.

Referenced by CMap_Canvas::Draw_ScaleBar().

◆ Get_Height()

int CMap::Get_Height ( void ) const

Definition at line 214 of file mapping.cpp.

◆ Get_Width()

int CMap::Get_Width ( void ) const

Definition at line 213 of file mapping.cpp.

Referenced by CMap_Canvas::Draw_ScaleBar().

◆ Save() [1/3]

bool CMap::Save ( const char * File)

Definition at line 279 of file mapping.cpp.

References Save().

Referenced by Save(), and Save().

◆ Save() [2/3]

bool CMap::Save ( const CSG_String & File)

Definition at line 281 of file mapping.cpp.

References SG_File_Cmp_Extension(), and CSG_String::wx_str().

◆ Save() [3/3]

bool CMap::Save ( const wchar_t * File)

Definition at line 280 of file mapping.cpp.

References Save().

◆ CMap_Base_Layer

friend class CMap_Base_Layer
friend

Definition at line 136 of file mapping.h.

References CMap_Base_Layer.

Referenced by CMap_Base_Layer, and Draw().


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