LibrePCB Developers Documentation
BES_DrawPlane Class Referencefinal

The BES_DrawPlane class. More...

#include <bes_drawplane.h>

+ Inheritance diagram for BES_DrawPlane:
+ Collaboration diagram for BES_DrawPlane:

Public Member Functions

 BES_DrawPlane (BoardEditor &editor, Ui::BoardEditor &editorUi, GraphicsView &editorGraphicsView, UndoStack &undoStack)
 
 ~BES_DrawPlane ()
 
ProcRetVal process (BEE_Base *event) noexcept override
 
bool entry (BEE_Base *event) noexcept override
 
bool exit (BEE_Base *event) noexcept override
 
- Public Member Functions inherited from BES_Base
 BES_Base (BoardEditor &editor, Ui::BoardEditor &editorUi, GraphicsView &editorGraphicsView, UndoStack &undoStack)
 
virtual ~BES_Base ()
 

Private Types

enum  SubState
 Internal FSM States (substates) More...
 

Private Member Functions

ProcRetVal processSubStateIdle (BEE_Base *event) noexcept
 
ProcRetVal processSubStatePositioning (BEE_Base *event) noexcept
 
ProcRetVal processIdleSceneEvent (BEE_Base *event) noexcept
 
ProcRetVal processPositioningSceneEvent (BEE_Base *event) noexcept
 
bool start (Board &board, const Point &pos) noexcept
 
bool addSegment (Board &board, const Point &pos) noexcept
 
bool abort (bool showErrMsgBox) noexcept
 
void updateVertexPosition (const Point &cursorPos) noexcept
 
void layerComboBoxLayerChanged (const GraphicsLayerName &layerName) noexcept
 
void makeSelectedLayerVisible () noexcept
 
void setNetSignal (NetSignal *netsignal) noexcept
 

Private Attributes

SubState mSubState
 
NetSignalmCurrentNetSignal
 
GraphicsLayerName mCurrentLayerName
 
BI_PlanemCurrentPlane
 
CmdBoardPlaneEditmCmdEditCurrentPlane
 
Point mLastVertexPos
 
QList< QAction * > mActionSeparators
 
QLabel * mNetSignalLabel
 
QComboBox * mNetSignalComboBox
 
QLabel * mLayerLabel
 
GraphicsLayerComboBoxmLayerComboBox
 

Additional Inherited Members

- Public Types inherited from BES_Base
enum  ProcRetVal
 process() return values More...
 
- Protected Attributes inherited from BES_Base
workspace::WorkspacemWorkspace
 
ProjectmProject
 
CircuitmCircuit
 
BoardEditormEditor
 
Ui::BoardEditor & mEditorUi
 allows access to BoardEditor UI More...
 
GraphicsViewmEditorGraphicsView
 allows access to the board editor graphics view More...
 
UndoStackmUndoStack
 

Detailed Description

The BES_DrawPlane class.

Member Enumeration Documentation

◆ SubState

enum SubState
strongprivate

Internal FSM States (substates)

Enumerator
Idle 
Positioning 

Constructor & Destructor Documentation

◆ BES_DrawPlane()

BES_DrawPlane ( BoardEditor editor,
Ui::BoardEditor &  editorUi,
GraphicsView editorGraphicsView,
UndoStack undoStack 
)
explicit

◆ ~BES_DrawPlane()

Member Function Documentation

◆ process()

BES_Base::ProcRetVal process ( BEE_Base event)
overridevirtualnoexcept

Implements BES_Base.

+ Here is the call graph for this function:

◆ entry()

bool entry ( BEE_Base event)
overridevirtualnoexcept

Reimplemented from BES_Base.

+ Here is the call graph for this function:

◆ exit()

bool exit ( BEE_Base event)
overridevirtualnoexcept

Reimplemented from BES_Base.

+ Here is the call graph for this function:

◆ processSubStateIdle()

BES_Base::ProcRetVal processSubStateIdle ( BEE_Base event)
privatenoexcept
+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ processSubStatePositioning()

BES_Base::ProcRetVal processSubStatePositioning ( BEE_Base event)
privatenoexcept
+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ processIdleSceneEvent()

BES_Base::ProcRetVal processIdleSceneEvent ( BEE_Base event)
privatenoexcept
+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ processPositioningSceneEvent()

BES_Base::ProcRetVal processPositioningSceneEvent ( BEE_Base event)
privatenoexcept
+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ start()

bool start ( Board board,
const Point pos 
)
privatenoexcept
+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ addSegment()

bool addSegment ( Board board,
const Point pos 
)
privatenoexcept
+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ abort()

bool abort ( bool  showErrMsgBox)
privatenoexcept
+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ updateVertexPosition()

void updateVertexPosition ( const Point cursorPos)
privatenoexcept
+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ layerComboBoxLayerChanged()

void layerComboBoxLayerChanged ( const GraphicsLayerName layerName)
privatenoexcept
+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ makeSelectedLayerVisible()

void makeSelectedLayerVisible ( )
privatenoexcept
+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ setNetSignal()

void setNetSignal ( NetSignal netsignal)
privatenoexcept
+ Here is the call graph for this function:
+ Here is the caller graph for this function:

Member Data Documentation

◆ mSubState

SubState mSubState
private

◆ mCurrentNetSignal

NetSignal* mCurrentNetSignal
private

◆ mCurrentLayerName

GraphicsLayerName mCurrentLayerName
private

◆ mCurrentPlane

BI_Plane* mCurrentPlane
private

◆ mCmdEditCurrentPlane

CmdBoardPlaneEdit* mCmdEditCurrentPlane
private

◆ mLastVertexPos

Point mLastVertexPos
private

◆ mActionSeparators

QList<QAction*> mActionSeparators
private

◆ mNetSignalLabel

QLabel* mNetSignalLabel
private

◆ mNetSignalComboBox

QComboBox* mNetSignalComboBox
private

◆ mLayerLabel

QLabel* mLayerLabel
private

◆ mLayerComboBox

GraphicsLayerComboBox* mLayerComboBox
private

The documentation for this class was generated from the following files: