VR-Forces 5.0.3 Developer's Guide
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Groups Pages
DtDepthOfField.h
Go to the documentation of this file.
1 /*****************************************************************************
2 * Copyright (c) 2020 MAK Technologies, Inc.
3 * All rights reserved.
4 *****************************************************************************/
5 
6 #pragma once
7 
11 
12 // Get proper local export symbol
14 
17 
18 namespace makVrv
19 {
20  class DtDepthOfFieldDrawable;
21  class DtWindow;
22 
27  {
28  public:
30  DtDepthOfField(DtDe& de, const std::string& postProcessType, bool handles2D);
31 
33  virtual ~DtDepthOfField();
34  private:
37 
40 
42  DtDepthOfField& operator=(const DtDepthOfField&);
43  public:
45  virtual void setFocalRange(float range);
46 
48  virtual void setFocalDepth(float depth);
49 
51  virtual void setAutofocus(bool useAutofocus);
52 
54  virtual bool update(DtChannel *channel);
55 
56  protected:
57  // Focal distance is set by sampling the depth buffer in the center
58  float myFocalRange;
59  float myFocalDepth;
61 
64 
66  };
67 
68  //
69  // Creator
70  //
71 
76  : public DtPostProcessorCreator
77  {
78  public:
80  friend class DtPostProcessManager;
81 
84 
86  virtual ~DtDepthOfFieldCreator();
87 
88  protected:
90  virtual DtPostProcessor* create(DtDe& de, const std::string& postProcessType);
91  };
92 
93 }
Definition: featureContext.h:37
DtPostProcessorCreator is the common base class for all post processor creators.
Definition: DtPostProcessor.h:232
float myFocalDepth
Definition: DtDepthOfField.h:59
This class provides an OSG-specific implementation of camera depth of field.
Definition: DtDepthOfField.h:26
int myViewportHeight
Definition: DtDepthOfField.h:63
The abstract Channel Class.
Definition: DtChannel.h:35
float myFocalRange
Definition: DtDepthOfField.h:58
This class provides the OSG-specific management of post-processing effects.
Definition: DtPostProcessManager.h:25
#define DT_DLL_VRVPOSTPROCESSOR
Definition: vrvPostProcessor.h:19
Contains DLL export macros.
Contains makVrv::DtDepthOfFieldDrawable class.
bool myUseAutofocus
Definition: DtDepthOfField.h:60
A DtDepthOfFieldCreator instance is registered with the post process element factory to create DtPost...
Definition: DtDepthOfField.h:75
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
int myViewportWidth
Definition: DtDepthOfField.h:62
This class provides the OSG-specific implementation of a post processor. A post processor has a type ...
Definition: DtPostProcessor.h:66
osg::ref_ptr< DtDepthOfFieldDrawable > myDofDrawable
Definition: DtDepthOfField.h:65

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)