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

#include <mapping.h>

Public Member Functions

 CMap_Canvas (void)
virtual ~CMap_Canvas (void)
 CMap_Canvas (int Width, int Height, int Background=-1)
bool Create (int Width, int Height, int Background=-1)
bool Clear (void)
bool Save (const char *File)
bool Save (const wchar_t *File)
bool Save (const CSG_String &File)
bool Draw_Map (class CMap &Map, int x=0, int y=0, int Frame=0)
bool Draw_ScaleBar (class CMap &Map, int x=0, int y=0, int Width=400, int Height=30, int Style=0x18)
bool Draw_Legend (class CMap_Layer &Layer, int x=0, int y=0, double Zoom=1.)

Friends

class CMap
class CMap_Layer

Detailed Description

Definition at line 71 of file mapping.h.

Constructor & Destructor Documentation

◆ CMap_Canvas() [1/2]

CMap_Canvas::CMap_Canvas ( void )

Definition at line 67 of file mapping.cpp.

◆ ~CMap_Canvas()

CMap_Canvas::~CMap_Canvas ( void )
virtual

Definition at line 81 of file mapping.cpp.

◆ CMap_Canvas() [2/2]

CMap_Canvas::CMap_Canvas ( int Width,
int Height,
int Background = -1 )

Definition at line 73 of file mapping.cpp.

References Create().

Member Function Documentation

◆ Clear()

bool CMap_Canvas::Clear ( void )

Definition at line 109 of file mapping.cpp.

◆ Create()

bool CMap_Canvas::Create ( int Width,
int Height,
int Background = -1 )

Definition at line 92 of file mapping.cpp.

References SG_GET_B, SG_GET_G, and SG_GET_R.

Referenced by CMap_Canvas().

◆ Draw_Legend()

bool CMap_Canvas::Draw_Legend ( class CMap_Layer & Layer,
int x = 0,
int y = 0,
double Zoom = 1. )

Definition at line 165 of file mapping.cpp.

References CMap_Layer, and CMap_Layer::Draw_Legend().

◆ Draw_Map()

bool CMap_Canvas::Draw_Map ( class CMap & Map,
int x = 0,
int y = 0,
int Frame = 0 )

Definition at line 149 of file mapping.cpp.

References CMap, and CMap::Draw().

◆ Draw_ScaleBar()

bool CMap_Canvas::Draw_ScaleBar ( class CMap & Map,
int x = 0,
int y = 0,
int Width = 400,
int Height = 30,
int Style = 0x18 )

◆ Save() [1/3]

bool CMap_Canvas::Save ( const char * File)

Definition at line 122 of file mapping.cpp.

References Save().

Referenced by Save(), and Save().

◆ Save() [2/3]

bool CMap_Canvas::Save ( const CSG_String & File)

Definition at line 124 of file mapping.cpp.

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

◆ Save() [3/3]

bool CMap_Canvas::Save ( const wchar_t * File)

Definition at line 123 of file mapping.cpp.

References Save().

◆ CMap

friend class CMap
friend

Definition at line 94 of file mapping.h.

References CMap, and CMap_Layer.

Referenced by CMap, Draw_Map(), and Draw_ScaleBar().

◆ CMap_Layer

friend class CMap_Layer
friend

Definition at line 94 of file mapping.h.

Referenced by CMap, and Draw_Legend().


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