ToolMap
Loading...
Searching...
No Matches
tmSymbol Class Reference
Inheritance diagram for tmSymbol:
tmSymbolRaster tmSymbolVector tmSymbolVectorLine tmSymbolVectorPoint tmSymbolVectorPolygon tmSymbolVectorLineMultiple tmSymbolVectorPointMultiple

Public Member Functions

int ShowSymbologyDialog (wxWindow *parent, const wxPoint &dlgpos=wxDefaultPosition)
 Display the symbology dialog.
 
virtual int ShowLabelDialog (wxWindow *parent, tmLayerProperties *properties, const wxPoint &pos=wxDefaultPosition)
 
virtual bool Serialize (tmSerialize &s)
 
virtual int GetTransparency ()
 
void SetDatabase (DataBaseTM *database)
 
void SetTocName (TOC_GENERIC_NAME tocname)
 

Static Public Member Functions

static tmSymbolCreateSymbolBasedOnType (TM_GIS_SPATIAL_TYPES spattype, TOC_GENERIC_NAME tocname)
 
static tmSymbolCreateCopySymbolBasedOnType (TM_GIS_SPATIAL_TYPES spattype, TOC_GENERIC_NAME tocname, tmSymbol *origin)
 

Protected Member Functions

char ConvertTransparency (int itransparency)
 Convert transparency.
 
DataBaseTMGetDatabase ()
 
TOC_GENERIC_NAME GetTocName ()
 

Protected Attributes

int m_LayerTransparency
 

Member Function Documentation

◆ ConvertTransparency()

char tmSymbol::ConvertTransparency ( int  itransparency)
protected

Convert transparency.

Convert transparency from a percent basis (%) to a 0-255 colour basis. See documentation of wxColour for more informations

Parameters
itransparencythe transparency to convert from. Based on a 0-100 percent scale
Returns
The new transparency : on a 0 (transparent) -255 (opaque) scale.
Author
Lucien Schreiber (c) CREALP 2008
Date
11 September 2008

◆ ShowSymbologyDialog()

int tmSymbol::ShowSymbologyDialog ( wxWindow *  parent,
const wxPoint &  dlgpos = wxDefaultPosition 
)

Display the symbology dialog.

A personalized symbology dialog is displayed

Parameters
parentAdress of the parent (for the dialog)
metadataString containing html formatted metadata for displaying in the first dialog tab.
dlgposDesired position for the dialog
Returns
wxID_OK if user select 'ok' in the symbology dialog, wxID_CANCEL otherwise
Author
Lucien Schreiber (c) CREALP 2008
Date
15 October 2008

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