ToolMap
Loading...
Searching...
No Matches
tmsymbolvectorpolygon.h
1/***************************************************************************
2 tmsymbolvectorpolygon.h
3 Deals with GIS polygon vector symbology and associed dialog
4 -------------------
5 copyright : (C) 2007 CREALP Lucien Schreiber
6 ***************************************************************************/
7
8/***************************************************************************
9 * *
10 * This program is free software; you can redistribute it and/or modify *
11 * it under the terms of the GNU General Public License as published by *
12 * the Free Software Foundation; either version 2 of the License, or *
13 * (at your option) any later version. *
14 * *
15 ***************************************************************************/
16
17// comment doxygen
18
19#ifndef _TM_SYMBOLVECTORPOLYGON_H_
20#define _TM_SYMBOLVECTORPOLYGON_H_
21
22// For compilers that support precompilation, includes "wx/wx.h".
23#include <wx/wxprec.h>
24
25// Include wxWidgets' headers
26#ifndef WX_PRECOMP
27#include <wx/wx.h>
28#endif
29
30#include "tmsymboldlgpolygon.h"
31#include "tmsymbolvector.h" // tmSymbol class definition
32
34 private:
35 tmSymbolDataPolygonUnique m_plgUniqueSymbol;
36
37 virtual tmSymbolDLG* GetSymbolDialog(wxWindow* parent, const wxPoint& dlgpos);
38
39 virtual bool GetDialogData(tmSymbolDLG* dlg);
40
41 protected:
42 public:
44
46
48
49 wxColour GetBorderColour();
50
51 wxColour GetFillColour();
52
53 int GetBorderWidth() {
54 return m_plgUniqueSymbol.m_bWidth;
55 }
56
57 wxBrushStyle GetFillStyle() {
58 return tmSYMBOLFILLSTYLES[m_plgUniqueSymbol.m_fStyle];
59 }
60
61 virtual int GetTransparency() {
62 return m_plgUniqueSymbol.m_GlobalTransparency;
63 }
64
65 virtual void SetColour(const wxColour& colour) {
66 m_plgUniqueSymbol.m_fColour = colour;
67 }
68
69 virtual bool Serialize(tmSerialize& s);
70
71 tmSymbolDataPolygonUnique* GetSymbolData() {
72 return &m_plgUniqueSymbol;
73 }
74};
75
76#endif
Definition tmserialize.h:36
Definition tmsymboldlg.h:55
Definition tmsymboldlgpolygon.h:70
Definition tmsymbolvectorpolygon.h:33
Definition tmsymbolvector.h:29