30 using namespace std::placeholders;
63 return aAdapter->
GetFlag( aFlag );
SELECTION_CONDITION MaterialMode(MATERIAL_MODE aMaterial)
Creates a functor that tests if a specific material mode is active.
GRID3D_TYPE GetGridType() const noexcept
Get the current grid.
bool GetFlag(DISPLAY3D_FLG aFlag) const
Get a configuration status of a flag.
SELECTION_CONDITION GridSize(GRID3D_TYPE aGridSize)
Creates a functor that tests the current grid size.
SELECTION_CONDITION Flag(DISPLAY3D_FLG aFlag)
Creates a functor that tests if the board adapter has a flag set currently.
static bool flagFunction(const SELECTION &aSelection, BOARD_ADAPTER *aAdapter, DISPLAY3D_FLG aFlag)
Helper function used by GridDize()
static bool materialModeFunction(const SELECTION &aSelection, BOARD_ADAPTER *aAdapter, MATERIAL_MODE aMaterial)
< Helper function used by MaterialMode()
MATERIAL_MODE GetMaterialMode() const noexcept
std::function< bool(const SELECTION &)> SELECTION_CONDITION
< Functor type that checks a specific condition for selected items.
MATERIAL_MODE
Render 3d model shape materials mode.
static bool gridSizeFunction(const SELECTION &aSelection, BOARD_ADAPTER *aAdapter, GRID3D_TYPE aGridSize)
The board adapter to read the 3D viewer state from.
DISPLAY3D_FLG
Flags used in rendering options.
Helper class to handle information needed to display 3D board.