ToolMap
Loading...
Searching...
No Matches
vrrubberband.h
1
/***************************************************************************
2
vrrubberband.h
3
-------------------
4
copyright : (C) 2010 CREALP Lucien Schreiber
5
***************************************************************************/
6
7
/***************************************************************************
8
* *
9
* This program is free software; you can redistribute it and/or modify *
10
* it under the terms of the GNU General Public License as published by *
11
* the Free Software Foundation; either version 2 of the License, or *
12
* (at your option) any later version. *
13
* *
14
***************************************************************************/
15
#ifndef _VRRUBBERBAND_H
16
#define _VRRUBBERBAND_H
17
18
#include <wx/wxprec.h>
19
20
#ifndef WX_PRECOMP
21
#include <wx/wx.h>
22
#endif
23
24
#include <wx/overlay.h>
25
26
class
vrRubberBand
{
27
private
:
28
wxWindow* m_Window;
29
wxPoint m_PointStart;
30
wxPoint m_PointEnd;
31
wxOverlay m_Overlay;
32
33
wxRect _CreateRect();
34
35
public
:
36
vrRubberBand
(wxWindow* window);
37
38
virtual
~vrRubberBand
();
39
40
void
SetPointFirst(
const
wxPoint& pt);
41
42
void
SetPointLast(
const
wxPoint& pt);
43
44
wxRect GetRect();
45
46
bool
IsValid();
47
48
bool
IsPositive();
49
50
void
Update();
51
};
52
53
#endif
vrRubberBand
Definition
vrrubberband.h:26
src
core
vrrubberband.h
Generated by
1.9.8