Radium Engine  1.5.20
Loading...
Searching...
No Matches
PickingManager.cpp
1#include <Gui/Utils/PickingManager.hpp>
2
3#include <Core/Utils/Index.hpp>
4
5namespace Ra {
6namespace Gui {
7
8PickingManager::PickingManager() {
9 m_pickingResult.setMode( Engine::Rendering::Renderer::RO );
10 m_pickingResult.setRoIdx( Core::Utils::Index::Invalid() );
11}
12
13PickingManager::~PickingManager() {}
14
15void PickingManager::setCurrent( const Engine::Rendering::Renderer::PickingResult& pr ) {
16 m_pickingResult = pr;
17}
18
19const Engine::Rendering::Renderer::PickingResult& PickingManager::getCurrent() const {
20 return m_pickingResult;
21}
22
23void PickingManager::clear() {
24 m_pickingResult.clear();
25}
26
27} // namespace Gui
28} // namespace Ra
void clear()
Reset query to default.
Definition Renderer.hpp:525
hepler function to manage enum as underlying types in VariableSet
Definition Cage.cpp:3