ToolMap
Loading...
Searching...
No Matches
tmsymbolvectorline.h
1/***************************************************************************
2 tmsymbolvectorline.h
3 Deals with GIS line 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#ifndef _TM_SYMBOLVECTORLINE_H_
18#define _TM_SYMBOLVECTORLINE_H_
19
20// For compilers that support precompilation, includes "wx/wx.h".
21#include <wx/wxprec.h>
22
23// Include wxWidgets' headers
24#ifndef WX_PRECOMP
25#include <wx/wx.h>
26#endif
27
28#include "tmsymboldlgline.h"
29#include "tmsymbolvector.h" // tmSymbol class definition
30
32 private:
33 tmSymbolDataLineUnique m_lSymUnique;
34
35 virtual tmSymbolDLG* GetSymbolDialog(wxWindow* parent, const wxPoint& dlgpos);
36
37 virtual bool GetDialogData(tmSymbolDLG* dlg);
38
39 public:
41
43
45
46 virtual bool Serialize(tmSerialize& s);
47
48 virtual wxColour GetColour();
49
50 virtual int GetWidth() {
51 return m_lSymUnique.m_Width;
52 }
53
54 virtual int GetShape() {
55 return tmSYMBOLPENSYLES[m_lSymUnique.m_Shape];
56 }
57
58 virtual int GetTransparency() {
59 return m_lSymUnique.m_GlobalTransparency;
60 }
61
62 virtual void SetColour(const wxColour& colour) {
63 m_lSymUnique.m_Colour = colour;
64 }
65
66 tmSymbolDataLineUnique* GetSymbolData() {
67 return &m_lSymUnique;
68 }
69};
70
71#endif
Definition tmserialize.h:36
Definition tmsymboldlg.h:55
Definition tmsymboldlgline.h:66
Definition tmsymbolvectorline.h:31
Definition tmsymbolvector.h:29