VR-Forces 5.0.3 Developer's Guide
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Groups Pages
DtHbaoPostProcessor.h
Go to the documentation of this file.
1 /*****************************************************************************
2 * Copyright (c) 2021 MAK Technologies, Inc.
3 * All rights reserved.
4 *****************************************************************************/
5 
6 #pragma once
7 
11 
12 // Get proper local export symbol
14 
17 
19 
20 namespace makVrv
21 {
22  class DtHbaoDrawable;
23  class DtWindow;
24 
25 
26 
31  {
32  public:
34  DtHbaoPostProcessor(DtDe& de, const std::string& postProcessType, bool handles2D);
35 
37  virtual ~DtHbaoPostProcessor();
38 
40  DtHbaoPostProcessor() = delete;
41 
44 
46  DtHbaoPostProcessor& operator=(const DtHbaoPostProcessor&) = delete;
47 
48  public:
49 
50  //Reload shaders when the shared state reload shaders signal is called
51  virtual void slot_reloadShaders();
52 
54  virtual bool update(DtChannel *channel) override;
55 
60  virtual void setInputTexture(const DtChannel* channel, osg::Texture* texture) override;
61 
62  //Hbao needs an occlusion texture for handling hbao and transparency like particle systems.
63  virtual bool needsOcclusionTexture() const override;
64 
65  const static std::string theEffectName;
66 
67  protected:
70  };
71 
72  //
73  // Creator
74  //
75 
80  : public DtPostProcessorCreator
81  {
82  public:
84  friend class DtPostProcessManager;
85 
88 
90  virtual ~DtHbaoPostProcessorCreator();
91 
92  protected:
94  virtual DtPostProcessor* create(DtDe& de, const std::string& postProcessType);
95  };
96 
97 }
Contains makVrv::DtHbaoDrawable class.
Definition: featureContext.h:37
DtPostProcessorCreator is the common base class for all post processor creators.
Definition: DtPostProcessor.h:232
A DtHbaoPostProcessorCreator instance is registered with the post process element factory to create D...
Definition: DtHbaoPostProcessor.h:79
This class provides an OSG-specific implementation of camera Horizontal Based Ambient Occlusion...
Definition: DtHbaoPostProcessor.h:30
osg::ref_ptr< DtHbaoDrawable > myHbaoDrawable
Definition: DtHbaoPostProcessor.h:68
The abstract Channel Class.
Definition: DtChannel.h:35
static const std::string theEffectName
Definition: DtHbaoPostProcessor.h:65
This class provides the OSG-specific management of post-processing effects.
Definition: DtPostProcessManager.h:25
Class to manage disconnection of boost connections on deletion.
Definition: DtSignalConnectionManager.h:20
#define DT_DLL_VRVPOSTPROCESSOR
Definition: vrvPostProcessor.h:19
Contains DLL export macros.
The DtDe is the core component of any VR-Vantage application. It owns a DtRenderer, DtDeCommunicator, as well as a DtDisplay and other things.
Definition: DtDe.h:70
This class provides the OSG-specific implementation of a post processor. A post processor has a type ...
Definition: DtPostProcessor.h:66
DtSignalConnectionManager myConnections
Definition: DtHbaoPostProcessor.h:69

Document ID: Generated on Thu Jun 1 17:58:13 EDT 2023 from SVN revision 255404
Copyright © 2005-2021 MAK Technologies. All Rights Reserved (www.mak.com)