MeshLib Documentation
Loading...
Searching...
No Matches
MR::SetViewportConfigPresetMenuItem Class Reference

#include <MRSceneControlMenuItems.h>

+ Inheritance diagram for MR::SetViewportConfigPresetMenuItem:

Public Types

enum class  Type {
  Single , Horizontal , Vertical , Quad ,
  Hex , Count
}
 
- Public Types inherited from MR::RibbonMenuItem
using DropItemsList = std::vector<std::shared_ptr<RibbonMenuItem>>
 

Public Member Functions

 SetViewportConfigPresetMenuItem (Type type)
 
virtual void setCustomUpdateViewports (const std::function< void(const ViewportMask)> &callback)
 
virtual bool action () override
 
- Public Member Functions inherited from MR::RibbonMenuItem
 MR_DELETE_MOVE (RibbonMenuItem)
 
MRVIEWER_API RibbonMenuItem (std::string name)
 
virtual ~RibbonMenuItem ()=default
 
virtual bool isActive () const
 
virtual bool blocking () const
 
const std::string & name () const
 
virtual const std::string & uiName () const
 
void setRibbonItemType (RibbonItemType type)
 
virtual RibbonItemType type () const
 
MRVIEWER_API void setDropItemsFromItemList (const MenuItemsList &itemsList)
 
virtual const DropItemsListdropItems () const
 
virtual std::string getDynamicTooltip () const
 
- Public Member Functions inherited from MR::ISceneStateCheck
virtual ~ISceneStateCheck ()=default
 
virtual std::string isAvailable (const std::vector< std::shared_ptr< const Object > > &) const
 

Additional Inherited Members

- Protected Attributes inherited from MR::RibbonMenuItem
RibbonItemType type_ { RibbonItemType::Button }
 
DropItemsList dropList_
 

Member Enumeration Documentation

◆ Type

Enumerator
Single 
Horizontal 
Vertical 
Quad 
Hex 
Count 

Constructor & Destructor Documentation

◆ SetViewportConfigPresetMenuItem()

MR::SetViewportConfigPresetMenuItem::SetViewportConfigPresetMenuItem ( Type type)

Member Function Documentation

◆ action()

virtual bool MR::SetViewportConfigPresetMenuItem::action ( )
overridevirtual

Implements MR::RibbonMenuItem.

◆ setCustomUpdateViewports()

virtual void MR::SetViewportConfigPresetMenuItem::setCustomUpdateViewports ( const std::function< void(const ViewportMask)> & callback)
inlinevirtual

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