9 #include "imstkEventObject.h" 10 #include "imstkMath.h" 11 #include "imstkColor.h" 13 #include <unordered_map> 19 bool m_enableSSAO =
false;
20 bool m_SSAOBlur =
false;
21 double m_SSAORadius = 0.1;
22 double m_SSAOBias = 0.001;
23 unsigned int m_KernelSize = 128;
29 Color m_BGColor1 =
Color(0.3285, 0.3285, 0.6525);
30 Color m_BGColor2 =
Color(0.13836, 0.13836, 0.2748);
54 Renderer() : m_config(std::make_shared<RendererConfig>()) { }
57 virtual void initialize() = 0;
59 bool getIsInitialized()
const {
return m_isInitialized; }
66 m_VrEnabled = enableVR;
73 virtual void setTimeTable(
const std::unordered_map<std::string, double>&) { }
79 virtual bool getTimeTableVisibility()
const {
return false; }
90 virtual void updateBackground(
const Vec3d color1,
const Vec3d color2 = Vec3d::Zero(),
const bool gradientBackground =
false) = 0;
100 virtual void setConfig(std::shared_ptr<RendererConfig> config) = 0;
103 bool m_VrEnabled =
false;
104 bool m_isInitialized =
false;
107 std::shared_ptr<RendererConfig> m_config;
Rendering window manager and contains user API to configure the rendering with various backends...
virtual void setMode(const Renderer::Mode mode, const bool enableVR)
Set rendering mode.
virtual void setTimeTable(const std::unordered_map< std::string, double > &)
Sets the benchmarking table using unordered_map.
EventObject is the base class for all objects in iMSTK that can receive and emit events. It supports direct and queued observer functions. Direct observers receive events immediately on the same thread This can either be posted on an object or be a function pointer Queued observers receive events within their queue which they can process whenever they like. These can be connected with the connect/queuedConnect/disconnect functions Lambda recievers cannot be disconnected unless all receivers to a signal are removed.
virtual void setTimeTableVisibility(const bool)
Get/Set the visibility of the benchmark graph.
virtual const Renderer::Mode & getMode() const
Get rendering mode.
Mode
Enumerations for the render mode.
std::shared_ptr< RendererConfig > getRenderConfig() const
Get the render config.