VR-Forces 4.10 Class Documentation
 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;
62 
65 
67  };
68 
69  //
70  // Creator
71  //
72 
77  : public DtPostProcessorCreator
78  {
79  public:
81  friend class DtPostProcessManager;
82 
85 
87  virtual ~DtDepthOfFieldCreator();
88 
89  protected:
91  virtual DtPostProcessor* create(DtDe& de, const std::string& postProcessType);
92  };
93 
94 }
Definition: featureContext.h:37
DtPostProcessorCreator is the common base class for all post processor creators.
Definition: DtPostProcessor.h:226
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:64
The abstract Channel Class.
Definition: DtChannel.h:30
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 myUseReverseZBuffer
Definition: DtDepthOfField.h:61
bool myUseAutofocus
Definition: DtDepthOfField.h:60
A DtDepthOfFieldCreator instance is registered with the post process element factory to create DtPost...
Definition: DtDepthOfField.h:76
The DtDe is the core component of any VR-Vantage application.
Definition: DtDe.h:69
int myViewportWidth
Definition: DtDepthOfField.h:63
This class provides the OSG-specific implementation of a post processor.
Definition: DtPostProcessor.h:66
osg::ref_ptr< DtDepthOfFieldDrawable > myDofDrawable
Definition: DtDepthOfField.h:66

Document ID: Generated on Tue Sep 21 17:42:52 EDT 2021 from SVN revision 234861
Copyright © 2005-2021 MAK Technologies. All Rights Reserved (www.mak.com)