|
VisuTwin Canvas
C++ 3D Engine — Metal Backend
|
#include <framework/components/camera/cameraComponent.h>
Public Member Functions | |
| Camera * | camera () |
| const Camera * | camera () const |
| CameraComponent (IComponentSystem *system, Entity *entity) | |
| std::shared_ptr< RenderPassCameraFrame > | cameraFrame () const |
| DofSettings & | dof () |
| const DofSettings & | dof () const |
| std::shared_ptr< RenderTarget > | dofSceneRenderTarget () const |
| std::shared_ptr< RenderPassTAA > | ensureTaaPass (const std::shared_ptr< GraphicsDevice > &device, Texture *sourceTexture) |
| void | initializeComponentData () override |
| const std::vector< int > & | layers () const |
| void * | onPostprocessing () const |
| const Matrix4 & | projectionMatrix () const |
| RenderingSettings & | rendering () |
| const RenderingSettings & | rendering () const |
| const std::vector< std::shared_ptr< RenderPass > > & | renderPasses () const |
| bool | renderSceneColorMap () const |
| bool | renderSceneDepthMap () const |
| bool | rendersLayer (const int layerId) const |
| void | requestSceneColorMap (bool enabled) |
| void | requestSceneDepthMap (bool enabled) |
| void | setCameraFrame (const std::shared_ptr< RenderPassCameraFrame > &frame) |
| void | setDof (const DofSettings &value) |
| void | setDofEnabled (bool enabled) |
| void | setLayers (const std::vector< int > &layers) |
| void | setRendering (const RenderingSettings &value) |
| void | setSsao (const SsaoSettings &value) |
| void | setSsaoEnabled (bool enabled) |
| void | setTaa (const TaaSettings &value) |
| void | setTaaEnabled (bool enabled) |
| SsaoSettings & | ssao () |
| const SsaoSettings & | ssao () const |
| TaaSettings & | taa () |
| const TaaSettings & | taa () const |
| ~CameraComponent () | |
| Public Member Functions inherited from visutwin::canvas::Component | |
| virtual void | cloneFrom (const Component *source) |
| Component (IComponentSystem *system, Entity *entity) | |
| virtual bool | enabled () const |
| Entity * | entity () const |
| virtual void | onDisable () |
| virtual void | onEnable () |
| virtual void | onPostStateChange () |
| virtual void | setEnabled (bool value) |
| IComponentSystem * | system () const |
| virtual | ~Component ()=default |
| Public Member Functions inherited from visutwin::canvas::EventHandler | |
| template<typename... Args> | |
| EventHandler * | fire (const std::string &name, Args &&... args) |
| bool | hasEvent (const std::string &name) const |
| void | initEventHandler () |
| template<typename Callback> requires (!std::is_same_v<std::decay_t<Callback>, HandleEventCallback>) | |
| EventHandler * | off (const std::string &name, Callback &&callback, void *scope=nullptr) |
| EventHandler * | off (const std::string &name="", const HandleEventCallback &callback=HandleEventCallback(), void *scope=nullptr) |
| EventHandler * | offByHandle (EventHandle *handle) |
| template<typename Callback> requires (!std::is_same_v<std::decay_t<Callback>, HandleEventCallback>) | |
| EventHandle * | on (const std::string &name, Callback &&callback, void *scope=nullptr) |
| EventHandle * | on (const std::string &name, HandleEventCallback callback, void *scope=nullptr) |
| template<typename Callback> requires (!std::is_same_v<std::decay_t<Callback>, HandleEventCallback>) | |
| EventHandle * | once (const std::string &name, Callback &&callback, void *scope=nullptr) |
| EventHandle * | once (const std::string &name, HandleEventCallback callback, void *scope=nullptr) |
| virtual | ~EventHandler ()=default |
Static Public Member Functions | |
| static const std::vector< CameraComponent * > & | instances () |
Additional Inherited Members | |
| Protected Member Functions inherited from visutwin::canvas::Component | |
| virtual void | onSetEnabled (bool oldValue, bool newValue) |
| Protected Member Functions inherited from visutwin::canvas::EventHandler | |
| EventHandle * | addCallback (const std::string &name, HandleEventCallback callback, void *scope=nullptr, bool once=false) |
| Protected Attributes inherited from visutwin::canvas::Component | |
| bool | _enabled = true |
| Entity * | _entity |
Definition at line 85 of file cameraComponent.h.
| visutwin::canvas::CameraComponent::CameraComponent | ( | IComponentSystem * | system, |
| Entity * | entity ) |
Definition at line 22 of file cameraComponent.cpp.
References visutwin::canvas::Component::Component(), visutwin::canvas::Component::entity(), and visutwin::canvas::Component::system().
Referenced by onPostprocessing().
| visutwin::canvas::CameraComponent::~CameraComponent | ( | ) |
Definition at line 27 of file cameraComponent.cpp.
|
inline |
Definition at line 107 of file cameraComponent.h.
Referenced by visutwin::canvas::RenderAction::setupClears().
|
inline |
Definition at line 109 of file cameraComponent.h.
|
inline |
Definition at line 157 of file cameraComponent.h.
|
inline |
Definition at line 121 of file cameraComponent.h.
|
inline |
Definition at line 120 of file cameraComponent.h.
|
inline |
Definition at line 128 of file cameraComponent.h.
| std::shared_ptr< RenderPassTAA > visutwin::canvas::CameraComponent::ensureTaaPass | ( | const std::shared_ptr< GraphicsDevice > & | device, |
| Texture * | sourceTexture ) |
Definition at line 210 of file cameraComponent.cpp.
|
overridevirtual |
Implements visutwin::canvas::Component.
Definition at line 45 of file cameraComponent.cpp.
References visutwin::canvas::Component::_entity.
|
inlinestatic |
Definition at line 91 of file cameraComponent.h.
Referenced by visutwin::canvas::LayerComposition::renderActions(), and visutwin::canvas::Renderer::renderForwardLayer().
|
inline |
Definition at line 117 of file cameraComponent.h.
Referenced by setLayers().
|
inline |
Definition at line 111 of file cameraComponent.h.
References CameraComponent().
|
inline |
Definition at line 93 of file cameraComponent.h.
|
inline |
Definition at line 153 of file cameraComponent.h.
|
inline |
Definition at line 152 of file cameraComponent.h.
|
inline |
Definition at line 98 of file cameraComponent.h.
|
inline |
Definition at line 100 of file cameraComponent.h.
Referenced by requestSceneColorMap().
|
inline |
Definition at line 102 of file cameraComponent.h.
Referenced by requestSceneDepthMap().
|
inline |
Definition at line 160 of file cameraComponent.h.
| void visutwin::canvas::CameraComponent::requestSceneColorMap | ( | bool | enabled | ) |
Definition at line 53 of file cameraComponent.cpp.
References visutwin::canvas::Component::enabled(), renderSceneColorMap(), and visutwin::canvas::Component::system().
| void visutwin::canvas::CameraComponent::requestSceneDepthMap | ( | bool | enabled | ) |
Definition at line 68 of file cameraComponent.cpp.
References visutwin::canvas::Component::enabled(), renderSceneDepthMap(), and visutwin::canvas::Component::system().
|
inline |
Definition at line 158 of file cameraComponent.h.
|
inline |
Definition at line 123 of file cameraComponent.h.
References visutwin::canvas::DofSettings::enabled, and setDofEnabled().
| void visutwin::canvas::CameraComponent::setDofEnabled | ( | bool | enabled | ) |
Definition at line 83 of file cameraComponent.cpp.
References visutwin::canvas::Component::enabled().
Referenced by setDof().
|
inline |
Definition at line 118 of file cameraComponent.h.
References layers().
|
inline |
Definition at line 154 of file cameraComponent.h.
|
inline |
Definition at line 146 of file cameraComponent.h.
References visutwin::canvas::SsaoSettings::enabled, and setSsaoEnabled().
| void visutwin::canvas::CameraComponent::setSsaoEnabled | ( | bool | enabled | ) |
Definition at line 128 of file cameraComponent.cpp.
References visutwin::canvas::Component::enabled().
Referenced by setSsao().
|
inline |
Definition at line 133 of file cameraComponent.h.
References visutwin::canvas::TaaSettings::enabled, and setTaaEnabled().
| void visutwin::canvas::CameraComponent::setTaaEnabled | ( | bool | enabled | ) |
Definition at line 101 of file cameraComponent.cpp.
References visutwin::canvas::Component::enabled().
Referenced by setTaa().
|
inline |
Definition at line 144 of file cameraComponent.h.
|
inline |
Definition at line 143 of file cameraComponent.h.
|
inline |
Definition at line 131 of file cameraComponent.h.
|
inline |
Definition at line 130 of file cameraComponent.h.