OpendTect  7.0
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

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

Public Attributes

Notifier< Sowersowing
 
Notifier< SowersowingEnd
 

Protected Member Functions

 Sower (AuxDataEditor &, MouseEventHandler &)
 
 ~Sower ()
 
bool acceptEraser (const MouseEvent &, bool released)
 
bool acceptLaser (const MouseEvent &, bool released)
 
bool acceptMouse (const MouseEvent &, bool released)
 
bool acceptTablet (const MouseEvent &, bool released)
 
void reset ()
 
void setView (const Rect &wv, const Geom::Rectangle< int > &mouserect)
 

Protected Attributes

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

Friends

class AuxDataEditor
 

Additional Inherited Members

- Static Public Member Functions inherited from CallBacker
static void createReceiverForCurrentThread ()
 
static void removeReceiverForCurrentThread ()
 

Detailed Description

Class to sow/select points with mouse.

<>

Member Enumeration Documentation

◆ SowingMode

Enumerator
Lasering 
Erasing 
Idle 
Furrowing 
FirstSowing 
SequentSowing 

Constructor & Destructor Documentation

◆ Sower()

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

◆ ~Sower()

FlatView::Sower::~Sower ( )
protected

Member Function Documentation

◆ accept()

bool FlatView::Sower::accept ( const MouseEvent ,
bool  released = false 
)

◆ acceptEraser()

bool FlatView::Sower::acceptEraser ( const MouseEvent ,
bool  released 
)
protected

◆ acceptLaser()

bool FlatView::Sower::acceptLaser ( const MouseEvent ,
bool  released 
)
protected

◆ acceptMouse()

bool FlatView::Sower::acceptMouse ( const MouseEvent ,
bool  released 
)
protected

◆ acceptTablet()

bool FlatView::Sower::acceptTablet ( const MouseEvent ,
bool  released 
)
protected

◆ activate() [1/2]

bool FlatView::Sower::activate ( const OD::Color ,
const MouseEvent  
)

◆ activate() [2/2]

bool FlatView::Sower::activate ( const OD::LineStyle ,
const MouseEvent  
)

◆ alternateSowingOrder()

void FlatView::Sower::alternateSowingOrder ( bool  yn = true)

◆ intersow()

void FlatView::Sower::intersow ( bool  yn = true)

◆ mode()

SowingMode FlatView::Sower::mode ( )
inline

◆ moreToSow()

bool FlatView::Sower::moreToSow ( ) const

◆ pivotPos()

Geom::Point2D<int> FlatView::Sower::pivotPos ( ) const

◆ reInitSettings()

void FlatView::Sower::reInitSettings ( )

◆ reset()

void FlatView::Sower::reset ( )
protected

◆ reverseSowingOrder()

void FlatView::Sower::reverseSowingOrder ( bool  yn = true)

◆ setEraserMask()

void FlatView::Sower::setEraserMask ( bool  yn = true,
OD::ButtonState  mask = ((OD::ButtonState)(OD::LeftButton+OD::ControlButton)) 
)

◆ setIfDragInvertMask()

void FlatView::Sower::setIfDragInvertMask ( bool  yn = true,
OD::ButtonState  mask = OD::ShiftButton 
)

◆ setLaserMask()

void FlatView::Sower::setLaserMask ( bool  yn = true,
OD::ButtonState  mask = OD::LeftButton 
)

◆ setSequentSowMask()

void FlatView::Sower::setSequentSowMask ( bool  yn = true,
OD::ButtonState  mask = OD::LeftButton 
)

◆ setView()

void FlatView::Sower::setView ( const Rect wv,
const Geom::Rectangle< int > &  mouserect 
)
protected

◆ stopSowing()

void FlatView::Sower::stopSowing ( )

Friends And Related Function Documentation

◆ AuxDataEditor

friend class AuxDataEditor
friend

Member Data Documentation

◆ alternatesowingorder_

bool FlatView::Sower::alternatesowingorder_
protected

◆ bendpoints_

TypeSet<int> FlatView::Sower::bendpoints_
protected

◆ curknotid_

int FlatView::Sower::curknotid_
protected

◆ curknotstamp_

int FlatView::Sower::curknotstamp_
protected

◆ editor_

AuxDataEditor& FlatView::Sower::editor_
protected

◆ erasermask_

OD::ButtonState FlatView::Sower::erasermask_
protected

◆ eventlist_

ObjectSet<MouseEvent> FlatView::Sower::eventlist_
protected

◆ furrowstamp_

int FlatView::Sower::furrowstamp_
protected

◆ ifdraginvertmask_

OD::ButtonState FlatView::Sower::ifdraginvertmask_
protected

◆ intersow_

bool FlatView::Sower::intersow_
protected

◆ lasermask_

OD::ButtonState FlatView::Sower::lasermask_
protected

◆ mode_

SowingMode FlatView::Sower::mode_
protected

◆ mousecoords_

TypeSet<Coord> FlatView::Sower::mousecoords_
protected

◆ mouseeventhandler_

MouseEventHandler& FlatView::Sower::mouseeventhandler_
protected

◆ mouserectangle_

Geom::PixRectangle<int> FlatView::Sower::mouserectangle_
protected

◆ reversesowingorder_

bool FlatView::Sower::reversesowingorder_
protected

◆ sequentsowmask_

OD::ButtonState FlatView::Sower::sequentsowmask_
protected

◆ singleseeded_

bool FlatView::Sower::singleseeded_
protected

◆ sowing

Notifier<Sower> FlatView::Sower::sowing

◆ sowingEnd

Notifier<Sower> FlatView::Sower::sowingEnd

◆ sowingline_

AuxData* FlatView::Sower::sowingline_
protected

◆ transformation_

Pos::IdxPair2Coord FlatView::Sower::transformation_
protected

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