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
9namespace MR
10{
11
12// Interface for checking scene state, to determine availability, also can return string with requirements
14{
15public:
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
Definition MRISceneStateCheck.h:14
virtual ~ISceneStateCheck()=default
virtual std::string isAvailable(const std::vector< std::shared_ptr< const Object > > &) const
Definition MRISceneStateCheck.h:18
Definition MRCameraOrientationPlugin.h:8