MeshLib Documentation
Loading...
Searching...
No Matches
MRISceneStateCheck.h
Go to the documentation of this file.
1
#pragma once
2
3
#include "
MRViewerFwd.h
"
4
#include "
MRMesh/MRMeshFwd.h
"
5
#include <memory>
6
#include <vector>
7
#include <string>
8
9
namespace
MR
10
{
11
12
// Interface for checking scene state, to determine availability, also can return string with requirements
13
class
ISceneStateCheck
14
{
15
public
:
16
virtual
~ISceneStateCheck
() =
default
;
17
// return empty string if all requirements are satisfied, otherwise return first unsatisfied requirement
18
virtual
std::string
isAvailable
(
const
std::vector<std::shared_ptr<const Object>>& )
const
{
return
{}; }
19
};
20
21
}
//namespace MR
MRMeshFwd.h
MRViewerFwd.h
MR::ISceneStateCheck
Definition
MRISceneStateCheck.h:14
MR::ISceneStateCheck::~ISceneStateCheck
virtual ~ISceneStateCheck()=default
MR::ISceneStateCheck::isAvailable
virtual std::string isAvailable(const std::vector< std::shared_ptr< const Object > > &) const
Definition
MRISceneStateCheck.h:18
MR
Definition
MRCameraOrientationPlugin.h:8
MeshLib
source
MRViewer
MRISceneStateCheck.h
Generated by
1.11.0