OpendTect-6_4  6.4
annotbuffill.h
Go to the documentation of this file.
1 #ifndef annotbuffill_h
2 #define annotbuffill_h
3 
4 /*+
5 ________________________________________________________________________
6 
7  (C) dGB Beheer B.V.; (LICENSE) http://opendtect.org/OpendTect_license.txt
8  Author: H. Huck
9  Date: 04/09/2006
10  RCS: $Id$
11 ________________________________________________________________________
12 
13 -*/
14 
15 #include "uitoolsmod.h"
16 #include "uigeom.h"
17 #include "draw.h"
18 
19 class uiWorld2Ui;
20 class uiRGBArray;
21 
29 
31 {
32 
33 public:
34 
36  {
37  public:
38 
41  };
42  //TODO add later on sth for the polygones
43 
44 
45  AnnotBufferFiller(const uiWorld2Ui* w=0);
46  ~AnnotBufferFiller();
47 
48  void addLineInfo(const OD::LineStyle&,
49  TypeSet<dPoint>,bool,bool);
50  void setW2UI( const uiWorld2Ui* w ) { w2u_ = w; }
51  void fillBuffer(const uiWorldRect&,uiRGBArray&) const;
52  void fillInterWithBufArea(const uiWorldRect&,const LineInfo*,
53  uiRGBArray&) const;
54 
55  void eraseGridLines(bool);
59 
60 
61 
62 protected:
63 
64  const uiWorld2Ui* w2u_;
68 
69  void setPoint(const iPoint&,int,uiRGBArray&) const;
70  void setLine(const iPoint&,const iPoint&,
71  const LineInfo*,uiRGBArray&) const;
72  bool isLineOutside(const LineInfo*,const uiWorldRect&) const;
73  dPoint computeIntersect(const dPoint&,const dPoint&,
74  const uiWorldRect&)const;
75  void dummytest();
76 };
77 
78 
79 #endif
Class to provide coordinate conversion between a cartesian coordinate system (or any other transforme...
Definition: uiworld2ui.h:55
TypeSet< dPoint > pts_
Definition: annotbuffill.h:40
#define mExpClass(module)
Definition: commondefs.h:160
Geom::Point2D< int > iPoint
Definition: annotbuffill.h:28
ObjectSet< LineInfo > annotlines_
Definition: annotbuffill.h:65
Definition: annotbuffill.h:30
Definition: draw.h:118
OD::LineStyle linestyle_
Definition: annotbuffill.h:39
Geom::Point2D< double > dPoint
: Fills an uiRGBArray ( image buffer ) used to draw annotations on 2D images
Definition: annotbuffill.h:20
void setLine(uiLineItem &, const LineParameters< float > &, const uiAxisHandler &xah, const uiAxisHandler &yah, const Interval< float > *xvalrg=0)
draws line not outside box defined by X and Y value ranges
void setW2UI(const uiWorld2Ui *w)
Definition: annotbuffill.h:50
Set of pointers to objects.
Definition: commontypes.h:32
Set of (small) copyable elements.
Definition: commontypes.h:30
ObjectSet< LineInfo > vertgdlines_
Definition: annotbuffill.h:67
bool dispannotlines_
Definition: annotbuffill.h:56
Definition: annotbuffill.h:35
bool disphorgdlines_
Definition: annotbuffill.h:57
bool dispvertgdlines_
Definition: annotbuffill.h:58
const uiWorld2Ui * w2u_
Definition: annotbuffill.h:64
ObjectSet< LineInfo > horgdlines_
Definition: annotbuffill.h:66

Generated at for the OpendTect seismic interpretation project. Copyright (C): dGB Beheer B. V. 2019