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

#include <map_layer.h>

Inheritance diagram for CSG_Map_Layer:
CSG_Map_Grid CSG_Map_Grids CSG_Map_PointCloud CSG_Map_Shapes CSG_Map_TIN CSG_Map_Shapes_Line CSG_Map_Shapes_Point CSG_Map_Shapes_Polygon CSG_Map_Shapes_Points

Classes

class  CTransparency

Public Member Functions

 CSG_Map_Layer (void)
virtual ~CSG_Map_Layer (void)
const TSG_Data_Object_Type & Get_ObjectType (void) const
bool Set_Object (CSG_Data_Object *pObject)
CSG_Data_Object * Get_Object (void) const
CSG_Rect Get_Extent (void) const
virtual bool Add_Parameters (CSG_Parameters &Parameters)
CSG_Parameters & Get_Parameters (void)
bool Set_Parameters (const CSG_Parameters &Parameters)
virtual bool Parameter_Changed (CSG_Parameters &Parameters, CSG_Parameter &Parameter, int Flags)
virtual bool Parameters_Changed (void)
virtual bool DataObject_Changed (void)
bool Sync_Back (CSG_Parameters &Target) const
bool Sync_Forward (const CSG_Parameters &Source)
bool Draw (CSG_Map_DC &dc_Map, int Flags=0, CSG_Data_Object *pObject=NULL)
CSG_Table & Get_LUT (void)
CSG_Colors & Get_Colors (void)
const CSG_Colors & Get_Colors (void) const
bool Get_Colors (CSG_Colors &Colors) const
bool Set_Colors (const CSG_Colors &Colors)
wxString Get_Legend_Title (void) const
wxString Get_Legend_Subtitle (void) const
bool Get_Field_Value (sLong Index, int Field, int Normalize, double Scale, wxString &Value) const
bool Get_Field_Value (sLong Index, int Field, int Normalize, double Scale, double &Value) const
double Get_Stretch_Minimum (void) const
double Get_Stretch_Maximum (void) const
double Get_Stretch_Range (void) const
bool Set_Stretch_Range (double Minimum, double Maximum)
bool Set_Stretch_FullRange (void)
virtual bool Set_Stretch_Extent (const CSG_Rect &Extent)
bool Classify (const CSG_MetaData &Options)
class CSG_Map_Symbology * Get_Symbology (void)
class CSG_Map_Legend * Get_Legend (void)
virtual bool asImage (CSG_Grid *pImage)
const class wxBitmap * Get_Thumbnail (int dx, int dy)
bool Set_Thumbnail (void)

Static Public Member Functions

static CSG_Parameters & Get_Defaults (void)

Protected Member Functions

 CSG_Map_Layer (TSG_Data_Object_Type Type)
virtual void On_Draw (CSG_Map_DC &dc_Map, int Flags)
bool Set_Stretch (CSG_Parameters &Parameters, CSG_Data_Object *pObject=NULL, const CSG_String &Suffix="")
bool Set_Normalization (int Field_Value, int Field_Normalize, double Scale_Normalize, sLong maxSamples=0)
bool Set_Fields_Choice (CSG_Parameter &Choice, bool bNumeric, bool bAddNone, bool bSelectNone=false)

Static Protected Member Functions

static int Get_Fields_Choice (CSG_Parameter &Choice)

Protected Attributes

TSG_Data_Object_Type m_Type = SG_DATAOBJECT_TYPE_Undefined
CSG_Parameters m_Parameters
CSG_Data_Object * m_pObject = NULL
class CSG_Map_Symbology * m_pSymbology = NULL
class CSG_Map_Legend * m_pLegend = NULL
class wxBitmap * m_pThumbnail = NULL
CSG_Table m_Normalization

Detailed Description

Definition at line 86 of file map_layer.h.

Constructor & Destructor Documentation

◆ CSG_Map_Layer() [1/2]

◆ ~CSG_Map_Layer()

CSG_Map_Layer::~CSG_Map_Layer ( void )
virtual

Definition at line 142 of file map_layer.cpp.

References m_pLegend, m_pSymbology, and m_pThumbnail.

◆ CSG_Map_Layer() [2/2]

CSG_Map_Layer::CSG_Map_Layer ( TSG_Data_Object_Type Type)
protected

Member Function Documentation

◆ Add_Parameters()

◆ asImage()

virtual bool CSG_Map_Layer::asImage ( CSG_Grid * pImage)
inlinevirtual

Reimplemented in CSG_Map_Grid, CSG_Map_Grids, CSG_Map_PointCloud, and CSG_Map_TIN.

Definition at line 139 of file map_layer.h.

◆ Classify()

◆ DataObject_Changed()

◆ Draw()

bool CSG_Map_Layer::Draw ( CSG_Map_DC & dc_Map,
int Flags = 0,
CSG_Data_Object * pObject = NULL )

◆ Get_Colors() [1/3]

bool CSG_Map_Layer::Get_Colors ( CSG_Colors & Colors) const

Definition at line 994 of file map_layer.cpp.

References CSG_Colors::Create(), and m_pSymbology.

◆ Get_Colors() [2/3]

CSG_Colors & CSG_Map_Layer::Get_Colors ( void )

Definition at line 982 of file map_layer.cpp.

References m_Parameters.

◆ Get_Colors() [3/3]

const CSG_Colors & CSG_Map_Layer::Get_Colors ( void ) const

Definition at line 988 of file map_layer.cpp.

References m_Parameters.

◆ Get_Defaults()

◆ Get_Extent()

◆ Get_Field_Value() [1/2]

bool CSG_Map_Layer::Get_Field_Value ( sLong Index,
int Field,
int Normalize,
double Scale,
double & Value ) const

Definition at line 1194 of file map_layer.cpp.

References CSG_Table::Get_Value(), and m_pObject.

◆ Get_Field_Value() [2/2]

bool CSG_Map_Layer::Get_Field_Value ( sLong Index,
int Field,
int Normalize,
double Scale,
wxString & Value ) const

◆ Get_Fields_Choice()

◆ Get_Legend()

class CSG_Map_Legend * CSG_Map_Layer::Get_Legend ( void )
inline

Definition at line 137 of file map_layer.h.

References m_pLegend.

Referenced by CSG_Map_Grid::Get_Bitmap_Legend(), and CSG_Map_Grids::Get_Bitmap_Legend().

◆ Get_Legend_Subtitle()

wxString CSG_Map_Layer::Get_Legend_Subtitle ( void ) const

Definition at line 1075 of file map_layer.cpp.

References CSG_Table::Get_Field_Name(), Get_Fields_Choice(), m_Parameters, and m_pObject.

Referenced by Parameters_Changed().

◆ Get_Legend_Title()

wxString CSG_Map_Layer::Get_Legend_Title ( void ) const

Definition at line 1064 of file map_layer.cpp.

References m_Parameters, m_pObject, and SG_T.

Referenced by Parameters_Changed().

◆ Get_LUT()

CSG_Table & CSG_Map_Layer::Get_LUT ( void )

Definition at line 976 of file map_layer.cpp.

References m_Parameters.

◆ Get_Object()

CSG_Data_Object * CSG_Map_Layer::Get_Object ( void ) const
inline

Definition at line 96 of file map_layer.h.

References m_pObject.

Referenced by CSG_Map_Legend::_Draw_Grid(), and CSG_Map_Legend::_Draw_Grids().

◆ Get_ObjectType()

const TSG_Data_Object_Type & CSG_Map_Layer::Get_ObjectType ( void ) const
inline

Definition at line 93 of file map_layer.h.

References m_Type.

Referenced by Classify(), Draw(), Get_Extent(), and Parameter_Changed().

◆ Get_Parameters()

CSG_Parameters & CSG_Map_Layer::Get_Parameters ( void )
inline

Definition at line 102 of file map_layer.h.

References m_Parameters.

◆ Get_Stretch_Maximum()

double CSG_Map_Layer::Get_Stretch_Maximum ( void ) const

Definition at line 841 of file map_layer.cpp.

References asDouble, and m_Parameters.

Referenced by Get_Stretch_Range().

◆ Get_Stretch_Minimum()

double CSG_Map_Layer::Get_Stretch_Minimum ( void ) const

Definition at line 835 of file map_layer.cpp.

References asDouble, and m_Parameters.

Referenced by Get_Stretch_Range().

◆ Get_Stretch_Range()

double CSG_Map_Layer::Get_Stretch_Range ( void ) const

Definition at line 847 of file map_layer.cpp.

References Get_Stretch_Maximum(), and Get_Stretch_Minimum().

Referenced by Set_Object(), and Set_Stretch().

◆ Get_Symbology()

class CSG_Map_Symbology * CSG_Map_Layer::Get_Symbology ( void )
inline

Definition at line 136 of file map_layer.h.

References m_pSymbology.

Referenced by CSG_Map_Legend::CSG_Map_Legend().

◆ Get_Thumbnail()

const wxBitmap * CSG_Map_Layer::Get_Thumbnail ( int dx,
int dy )

Definition at line 907 of file map_layer.cpp.

References m_pThumbnail, and Set_Thumbnail().

Referenced by CSG_Map_Legend::_Draw_Layer_Image().

◆ On_Draw()

virtual void CSG_Map_Layer::On_Draw ( CSG_Map_DC & dc_Map,
int Flags )
inlineprotectedvirtual

Reimplemented in CSG_Map_Grid, CSG_Map_Grids, CSG_Map_PointCloud, CSG_Map_Shapes, and CSG_Map_TIN.

Definition at line 164 of file map_layer.h.

Referenced by Draw().

◆ Parameter_Changed()

◆ Parameters_Changed()

◆ Set_Colors()

bool CSG_Map_Layer::Set_Colors ( const CSG_Colors & Colors)

Definition at line 1000 of file map_layer.cpp.

References m_Parameters.

◆ Set_Fields_Choice()

◆ Set_Normalization()

bool CSG_Map_Layer::Set_Normalization ( int Field_Value,
int Field_Normalize,
double Scale_Normalize,
sLong maxSamples = 0 )
protected

◆ Set_Object()

◆ Set_Parameters()

bool CSG_Map_Layer::Set_Parameters ( const CSG_Parameters & Parameters)

Definition at line 467 of file map_layer.cpp.

References m_Parameters, and Parameters_Changed().

◆ Set_Stretch()

◆ Set_Stretch_Extent()

virtual bool CSG_Map_Layer::Set_Stretch_Extent ( const CSG_Rect & Extent)
inlinevirtual

Reimplemented in CSG_Map_Grid, and CSG_Map_Grids.

Definition at line 132 of file map_layer.h.

References Extent.

◆ Set_Stretch_FullRange()

◆ Set_Stretch_Range()

bool CSG_Map_Layer::Set_Stretch_Range ( double Minimum,
double Maximum )

◆ Set_Thumbnail()

◆ Sync_Back()

bool CSG_Map_Layer::Sync_Back ( CSG_Parameters & Target) const

Definition at line 685 of file map_layer.cpp.

References CSG_Parameter::Assign(), CSG_Parameter::Get_Type(), and m_Parameters.

◆ Sync_Forward()

bool CSG_Map_Layer::Sync_Forward ( const CSG_Parameters & Source)

Definition at line 703 of file map_layer.cpp.

References CSG_Parameter::Get_Type(), and m_Parameters.

Member Data Documentation

◆ m_Normalization

CSG_Table CSG_Map_Layer::m_Normalization
protected

Definition at line 159 of file map_layer.h.

Referenced by DataObject_Changed(), Parameter_Changed(), and Set_Normalization().

◆ m_Parameters

CSG_Parameters CSG_Map_Layer::m_Parameters
protected

Definition at line 149 of file map_layer.h.

Referenced by CSG_Map_PointCloud::Add_Parameters(), CSG_Map_Shapes::BrushList_Get_Style(), Classify(), CSG_Map_Grid::CSG_Map_Grid(), CSG_Map_Grids::CSG_Map_Grids(), CSG_Map_Layer(), CSG_Map_PointCloud::CSG_Map_PointCloud(), CSG_Map_Shapes_Line::CSG_Map_Shapes_Line(), CSG_Map_Shapes_Point::CSG_Map_Shapes_Point(), CSG_Map_Shapes_Points::CSG_Map_Shapes_Points(), CSG_Map_Shapes_Polygon::CSG_Map_Shapes_Polygon(), CSG_Map_TIN::CSG_Map_TIN(), CSG_Map_Grids::DataObject_Changed(), DataObject_Changed(), CSG_Map_PointCloud::DataObject_Changed(), CSG_Map_Shapes::DataObject_Changed(), CSG_Map_Shapes_Line::DataObject_Changed(), CSG_Map_Shapes_Point::DataObject_Changed(), CSG_Map_TIN::DataObject_Changed(), CSG_Map_Shapes_Line::Draw_Initialize(), CSG_Map_Shapes_Point::Draw_Initialize(), CSG_Map_Shapes_Point::Draw_Initialize(), CSG_Map_Shapes_Polygon::Draw_Initialize(), Get_Colors(), Get_Colors(), CSG_Map_Grid::Get_Composite_Band(), CSG_Map_Grids::Get_Grid(), CSG_Map_Grids::Get_Grid(), CSG_Map_Grids::Get_Grid_Name(), Get_Legend_Subtitle(), Get_Legend_Title(), Get_LUT(), Get_Parameters(), Get_Stretch_Maximum(), Get_Stretch_Minimum(), CSG_Map_Grid::On_Draw(), CSG_Map_Grids::On_Draw(), CSG_Map_PointCloud::On_Draw(), CSG_Map_Shapes::On_Draw(), CSG_Map_TIN::On_Draw(), CSG_Map_Grids::Parameters_Changed(), Parameters_Changed(), CSG_Map_PointCloud::Parameters_Changed(), CSG_Map_Shapes::Parameters_Changed(), CSG_Map_Shapes_Line::Parameters_Changed(), CSG_Map_Shapes_Point::Parameters_Changed(), CSG_Map_Shapes_Polygon::Parameters_Changed(), CSG_Map_TIN::Parameters_Changed(), CSG_Map_Shapes::PenList_Get_Style(), Set_Colors(), Set_Object(), Set_Parameters(), CSG_Map_Grid::Set_Stretch_Extent(), CSG_Map_Grids::Set_Stretch_Extent(), Set_Stretch_FullRange(), Set_Stretch_Range(), Sync_Back(), Sync_Forward(), and CSG_Map_Grid::Update().

◆ m_pLegend

class CSG_Map_Legend* CSG_Map_Layer::m_pLegend = NULL
protected

Definition at line 155 of file map_layer.h.

Referenced by CSG_Map_Layer(), Get_Legend(), Parameters_Changed(), and ~CSG_Map_Layer().

◆ m_pObject

◆ m_pSymbology

◆ m_pThumbnail

class wxBitmap* CSG_Map_Layer::m_pThumbnail = NULL
protected

Definition at line 157 of file map_layer.h.

Referenced by CSG_Map_Layer(), Get_Thumbnail(), Set_Thumbnail(), and ~CSG_Map_Layer().

◆ m_Type

TSG_Data_Object_Type CSG_Map_Layer::m_Type = SG_DATAOBJECT_TYPE_Undefined
protected

Definition at line 147 of file map_layer.h.

Referenced by Add_Parameters(), CSG_Map_Layer(), Get_ObjectType(), and Set_Object().


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