OpendTect-6_4  6.4
Public Types | Public Member Functions | Public Attributes | Protected Member Functions | Protected Attributes | Friends | List of all members
FlatView::Sower Class Reference

Class to sow/select points with mouse. More...

Inheritance diagram for FlatView::Sower:
[legend]

Public Types

enum  SowingMode {
  Lasering =-2, Erasing =-1, Idle =0, Furrowing,
  FirstSowing, SequentSowing
}
 

Public Member Functions

SowingMode mode ()
 
void reInitSettings ()
 
void reverseSowingOrder (bool yn=true)
 
void alternateSowingOrder (bool yn=true)
 
void intersow (bool yn=true)
 
bool moreToSow () const
 
void stopSowing ()
 
Geom::Point2D< int > pivotPos () const
 
bool accept (const MouseEvent &, bool released=false)
 
bool activate (const Color &, const MouseEvent &)
 
bool activate (const OD::LineStyle &, const MouseEvent &)
 
void setSequentSowMask (bool yn=true, OD::ButtonState mask=OD::LeftButton)
 
void setIfDragInvertMask (bool yn=true, OD::ButtonState mask=OD::ShiftButton)
 
void setLaserMask (bool yn=true, OD::ButtonState mask=OD::LeftButton)
 
void setEraserMask (bool yn=true, OD::ButtonState mask=((OD::ButtonState)(OD::LeftButton+OD::ControlButton)))
 
- Public Member Functions inherited from CallBacker
 CallBacker ()
 
 CallBacker (const CallBacker &)
 
virtual ~CallBacker ()
 
bool attachCB (NotifierAccess &, const CallBack &, bool onlyifnew=false)
 
bool attachCB (NotifierAccess *notif, const CallBack &cb, bool onlyifnew=false)
 
void detachCB (NotifierAccess &, const CallBack &)
 
void detachCB (NotifierAccess *notif, const CallBack &cb)
 
bool isNotifierAttached (NotifierAccess *) const
 Only for debugging purposes, don't use. More...
 

Public Attributes

Notifier< SowersowingEnd
 
Notifier< Sowersowing
 

Protected Member Functions

 Sower (AuxDataEditor &, MouseEventHandler &)
 
 ~Sower ()
 
void setView (const Rect &wv, const Geom::Rectangle< int > &mouserect)
 
bool acceptMouse (const MouseEvent &, bool released)
 
bool acceptTablet (const MouseEvent &, bool released)
 
bool acceptLaser (const MouseEvent &, bool released)
 
bool acceptEraser (const MouseEvent &, bool released)
 
void reset ()
 
- Protected Member Functions inherited from CallBacker
void detachAllNotifiers ()
 Call from the destructor of your inherited object. More...
 

Protected Attributes

AuxDataEditoreditor_
 
Pos::IdxPair2Coord transformation_
 
AuxDatasowingline_
 
MouseEventHandlermouseeventhandler_
 
Geom::PixRectangle< int > mouserectangle_
 
SowingMode mode_
 
ObjectSet< MouseEventeventlist_
 
TypeSet< Coordmousecoords_
 
TypeSet< int > bendpoints_
 
bool reversesowingorder_
 
bool alternatesowingorder_
 
bool intersow_
 
OD::ButtonState sequentsowmask_
 
OD::ButtonState ifdraginvertmask_
 
OD::ButtonState lasermask_
 
OD::ButtonState erasermask_
 
bool singleseeded_
 
int curknotid_
 
int curknotstamp_
 
int furrowstamp_
 

Friends

class AuxDataEditor
 

Detailed Description

Class to sow/select points with mouse.

Member Enumeration Documentation

Enumerator
Lasering 
Erasing 
Idle 
Furrowing 
FirstSowing 
SequentSowing 

Constructor & Destructor Documentation

FlatView::Sower::Sower ( AuxDataEditor ,
MouseEventHandler  
)
protected
FlatView::Sower::~Sower ( )
protected

Member Function Documentation

bool FlatView::Sower::accept ( const MouseEvent ,
bool  released = false 
)
bool FlatView::Sower::acceptEraser ( const MouseEvent ,
bool  released 
)
protected
bool FlatView::Sower::acceptLaser ( const MouseEvent ,
bool  released 
)
protected
bool FlatView::Sower::acceptMouse ( const MouseEvent ,
bool  released 
)
protected
bool FlatView::Sower::acceptTablet ( const MouseEvent ,
bool  released 
)
protected
bool FlatView::Sower::activate ( const Color ,
const MouseEvent  
)
bool FlatView::Sower::activate ( const OD::LineStyle ,
const MouseEvent  
)
void FlatView::Sower::alternateSowingOrder ( bool  yn = true)
void FlatView::Sower::intersow ( bool  yn = true)
SowingMode FlatView::Sower::mode ( )
inline
bool FlatView::Sower::moreToSow ( ) const
Geom::Point2D<int> FlatView::Sower::pivotPos ( ) const
void FlatView::Sower::reInitSettings ( )
void FlatView::Sower::reset ( )
protected
void FlatView::Sower::reverseSowingOrder ( bool  yn = true)
void FlatView::Sower::setEraserMask ( bool  yn = true,
OD::ButtonState  mask = ((OD::ButtonState)(OD::LeftButton+OD::ControlButton)) 
)
void FlatView::Sower::setIfDragInvertMask ( bool  yn = true,
OD::ButtonState  mask = OD::ShiftButton 
)
void FlatView::Sower::setLaserMask ( bool  yn = true,
OD::ButtonState  mask = OD::LeftButton 
)
void FlatView::Sower::setSequentSowMask ( bool  yn = true,
OD::ButtonState  mask = OD::LeftButton 
)
void FlatView::Sower::setView ( const Rect wv,
const Geom::Rectangle< int > &  mouserect 
)
protected
void FlatView::Sower::stopSowing ( )

Friends And Related Function Documentation

friend class AuxDataEditor
friend

Member Data Documentation

bool FlatView::Sower::alternatesowingorder_
protected
TypeSet<int> FlatView::Sower::bendpoints_
protected
int FlatView::Sower::curknotid_
protected
int FlatView::Sower::curknotstamp_
protected
AuxDataEditor& FlatView::Sower::editor_
protected
OD::ButtonState FlatView::Sower::erasermask_
protected
ObjectSet<MouseEvent> FlatView::Sower::eventlist_
protected
int FlatView::Sower::furrowstamp_
protected
OD::ButtonState FlatView::Sower::ifdraginvertmask_
protected
bool FlatView::Sower::intersow_
protected
OD::ButtonState FlatView::Sower::lasermask_
protected
SowingMode FlatView::Sower::mode_
protected
TypeSet<Coord> FlatView::Sower::mousecoords_
protected
MouseEventHandler& FlatView::Sower::mouseeventhandler_
protected
Geom::PixRectangle<int> FlatView::Sower::mouserectangle_
protected
bool FlatView::Sower::reversesowingorder_
protected
OD::ButtonState FlatView::Sower::sequentsowmask_
protected
bool FlatView::Sower::singleseeded_
protected
Notifier<Sower> FlatView::Sower::sowing
Notifier<Sower> FlatView::Sower::sowingEnd
AuxData* FlatView::Sower::sowingline_
protected
Pos::IdxPair2Coord FlatView::Sower::transformation_
protected

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