VR-Forces 4.5 Class Documentation
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator 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 void 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;
54  };
55 
56  //
57  // Creator
58  //
59 
64  : public DtPostProcessorCreator
65  {
66  public:
68  friend class DtPostProcessManager;
69 
72 
74  virtual ~DtDepthOfFieldCreator();
75 
76  protected:
78  virtual DtPostProcessor* create(DtDe& de, const std::string& postProcessType);
79  };
80 
81 }

Document ID: Generated on Thu Mar 23 18:54:12 EDT 2017 from SVN revision 174804
Copyright © 2005-2017 VT MÄK. All Rights Reserved (www.mak.com)