VR-Forces 4.6 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) 2016 MAK Technologies, Inc.
3 * All rights reserved.
4 *****************************************************************************/
5 
6 #pragma once
7 
11 
13 
15 
16 namespace makVrv
17 {
18 
19  class DtWindow;
20 
25  {
26  public:
28  DtDepthOfField(DtDe& de, const std::string& postProcessType, bool handles2D);
29 
31  virtual ~DtDepthOfField();
32 
34  virtual void setFocalRange(float range);
35 
37  virtual void setFocalDepth(float depth);
38 
40  virtual void setAutofocus(bool useAutofocus);
41 
43  virtual bool update(DtChannel *channel);
44 
45  protected:
46  virtual void slot_windowRemoved(DtWindow* window);
47 
49 
50  // Focal distance is set by sampling the depth buffer in the center
51  float myFocalRange;
52  float myFocalDepth;
55  };
56 
57  //
58  // Creator
59  //
60 
65  : public DtPostProcessorCreator
66  {
67  public:
69  friend class DtPostProcessManager;
70 
73 
75  virtual ~DtDepthOfFieldCreator();
76 
77  protected:
79  virtual DtPostProcessor* create(DtDe& de, const std::string& postProcessType);
80  };
81 
82 }

Document ID: Generated on Thu Apr 12 03:15:37 EDT 2018 from SVN revision 187986
Copyright © 2005-2018 VT MÄK. All Rights Reserved (www.mak.com)