1 #ifndef flatauxdataeditor_h 2 #define flatauxdataeditor_h 14 #include "generalmod.h" 30 #define mCtrlLeftButton ( (OD::ButtonState) (OD::LeftButton+OD::ControlButton) ) 42 Furrowing, FirstSowing, SequentSowing };
46 void reInitSettings();
48 void reverseSowingOrder(
bool yn=
true);
49 void alternateSowingOrder(
bool yn=
true);
50 void intersow(
bool yn=
true);
52 bool moreToSow()
const;
57 bool accept(
const MouseEvent&,
bool released=
false);
61 void setSequentSowMask(
bool yn=
true,
63 void setIfDragInvertMask(
bool yn=
true,
65 void setLaserMask(
bool yn=
true,
67 void setEraserMask(
bool yn=
true,
76 void setView(
const Rect& wv,
79 bool acceptMouse(
const MouseEvent&,
bool released);
80 bool acceptTablet(
const MouseEvent&,
bool released);
81 bool acceptLaser(
const MouseEvent&,
bool released);
82 bool acceptEraser(
const MouseEvent&,
bool released);
131 void removeAuxData(
int id);
132 void enableEdit(
int id,
bool allowadd,
bool allowmove,
134 void enablePolySel(
int id,
bool allowsel);
135 void setAddAuxData(
int id);
137 int getAddAuxData()
const;
142 void setView(
const Rect& wv,
148 Rect getWorldRect(
int dataid)
const;
149 void limitMovement(
const Rect*);
155 int getSelPtDataID()
const;
157 const Point& getSelPtPos()
const;
172 void setSelectionPolygonRectangle(
bool);
174 bool getSelectionPolygonRectangle()
const;
177 void setSelectionPolygonLineStyle(
189 void setSelActive(
bool yn );
194 void removePolygonSelected(
int dataid);
202 void setSelectionPolygonVisible(
bool);
211 bool removeSelectionPolygon();
213 void mousePressCB(CallBacker*);
214 void mouseReleaseCB(CallBacker*);
215 void mouseMoveCB(CallBacker*);
#define mExpClass(module)
Definition: commondefs.h:160
Class that represents non-bitmap data to be displayed in a flatviewer, such as markers, lines and more.
Definition: flatview.h:34
To be able to send and/or receive CallBacks, inherit from this class.
Definition: callback.h:272
Notifier< AuxDataEditor > releaseSelection
Definition: flatauxdataeditor.h:203
Definition: menuhandler.h:187
OD::ButtonState sequentsowmask_
Definition: flatauxdataeditor.h:100
Geom::Point2D< int > prevpt_
Definition: flatauxdataeditor.h:241
int addauxdataid_
Definition: flatauxdataeditor.h:235
SowingMode mode_
Definition: flatauxdataeditor.h:91
Notifier< Sower > sowingEnd
Definition: flatauxdataeditor.h:69
Point selptcoord_
Definition: flatauxdataeditor.h:251
Rect * movementlimit_
Definition: flatauxdataeditor.h:252
TypeSet< int > selptidx_
Definition: flatauxdataeditor.h:250
SowingMode
Definition: flatauxdataeditor.h:41
Viewer & viewer_
Definition: flatauxdataeditor.h:225
bool polygonselrect_
Definition: flatauxdataeditor.h:238
SowingMode mode()
Definition: flatauxdataeditor.h:44
TypeSet< int > bendpoints_
Definition: flatauxdataeditor.h:94
Sower * sower_
Definition: flatauxdataeditor.h:226
Geom::PixRectangle< int > mouserectangle_
Definition: flatauxdataeditor.h:90
CNotifier< AuxDataEditor, bool > removeSelected
Definition: flatauxdataeditor.h:168
ObjectSet< MouseEvent > eventlist_
Definition: flatauxdataeditor.h:92
Notifier< AuxDataEditor > movementStarted
Definition: flatauxdataeditor.h:159
bool isselactive_
Definition: flatauxdataeditor.h:239
int furrowstamp_
Definition: flatauxdataeditor.h:108
int curknotid_
Definition: flatauxdataeditor.h:106
bool reversesowingorder_
Definition: flatauxdataeditor.h:96
bool intersow_
Definition: flatauxdataeditor.h:98
Flat Viewer using FlatView::Data and FlatView::Appearance.
Definition: flatview.h:324
Definition: callback.h:254
Rect curview_
Definition: flatauxdataeditor.h:244
OD::ButtonState lasermask_
Definition: flatauxdataeditor.h:102
TypeSet< Coord > mousecoords_
Definition: flatauxdataeditor.h:93
ButtonState
Definition: keyenum.h:20
const Geom::PixRectangle< int > & getMouseArea() const
Definition: flatauxdataeditor.h:147
BoolTypeSet doedit_
Definition: flatauxdataeditor.h:233
OD::ButtonState ifdraginvertmask_
Definition: flatauxdataeditor.h:101
int seldatasetidx_
Definition: flatauxdataeditor.h:249
bool isDragging() const
Definition: flatauxdataeditor.h:153
MouseEventHandler & mouseeventhandler_
Definition: flatauxdataeditor.h:89
MouseEventHandler & mousehandler_
Definition: flatauxdataeditor.h:245
bool mousedown_
Definition: flatauxdataeditor.h:246
MenuHandler * menuhandler_
Definition: flatauxdataeditor.h:254
MouseEventHandler & mouseEventHandler()
Definition: flatauxdataeditor.h:199
BoolTypeSet allowmove_
Definition: flatauxdataeditor.h:230
AuxDataEditor & editor_
Definition: flatauxdataeditor.h:86
Definition: mouseevent.h:162
Notifier< AuxDataEditor > movementFinished
Definition: flatauxdataeditor.h:160
Editor for FlatView::AuxData. Allows the end-user to click-drag-release the points in data...
Definition: flatauxdataeditor.h:119
Notifier< Sower > sowing
Definition: flatauxdataeditor.h:70
Class to sow/select points with mouse.
Definition: flatauxdataeditor.h:36
BoolTypeSet allowpolysel_
Definition: flatauxdataeditor.h:232
Sower & sower()
Definition: flatauxdataeditor.h:187
AuxData * feedback_
Definition: flatauxdataeditor.h:240
AuxData * sowingline_
Definition: flatauxdataeditor.h:88
Pos::IdxPair2Coord transformation_
Definition: flatauxdataeditor.h:87
BoolTypeSet allowadd_
Definition: flatauxdataeditor.h:229
Notifier< AuxDataEditor > addAuxDataChange
Definition: flatauxdataeditor.h:140
Notifier with automatic capsule creation.
Definition: callback.h:395
bool hasmoved_
Definition: flatauxdataeditor.h:247
Color is an RGB color object, with a transparancy. The storage is in a 4-byte integer, similar to Qt.
Definition: color.h:26
OD::ButtonState erasermask_
Definition: flatauxdataeditor.h:103
Geom::PixRectangle< int > mousearea_
Definition: flatauxdataeditor.h:243
TypeSet< int > ids_
Definition: flatauxdataeditor.h:228
ObjectSet< AuxData > polygonsel_
Definition: flatauxdataeditor.h:236
ObjectSet< AuxData > auxdata_
Definition: flatauxdataeditor.h:227
bool singleseeded_
Definition: flatauxdataeditor.h:105
int curknotstamp_
Definition: flatauxdataeditor.h:107
Definition: bitmap2rgb.h:18
Viewer & viewer()
Definition: flatauxdataeditor.h:185
BoolTypeSet allowremove_
Definition: flatauxdataeditor.h:231
OD::LineStyle polygonsellst_
Definition: flatauxdataeditor.h:237
Definition: mouseevent.h:73
Encapsulates linear transform from (i,j) index to (x,y) coordinates.
Definition: posidxpair2coord.h:26
bool alternatesowingorder_
Definition: flatauxdataeditor.h:97
const Viewer & viewer() const
Definition: flatauxdataeditor.h:184
bool isSelActive() const
Definition: flatauxdataeditor.h:190
#define mCtrlLeftButton
Definition: flatauxdataeditor.h:30