VR-Forces 4.7 Class Documentation
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Groups Pages
DtScreenCapture.h
Go to the documentation of this file.
1 /******************************************************************************
2 ** Copyright (c) 2017 MAK Technologies, Inc.
3 ** All rights reserved.
4 ******************************************************************************/
8 
9 #pragma once
10 
11 #include <vrvCore/vrvCore.h>
12 #include <string>
14 #include <vrvUtil/DtUnicode.h>
15 #include <vrvCore/DtChannel.h>
16 #include <vrvCore/DtObserver.h>
17 
18 namespace makVrv
19 {
22 
23  class DtObserver;
25  {
26  friend class DtScreenCaptureCreator;
27 
30 
31  public:
32 
34  static DtScreenCapture& instance(DtDe& de);
35 
37  virtual ~DtScreenCapture();
38 
40  virtual const DtUnicode& screenCaptureFileName() ;
41 
43  virtual void setScreenCaptureFileName(DtUnicode& val, bool makeUnique = true);
44 
46  virtual const DtUnicode& screenCaptureFileExtension() ;
47 
50  virtual void setScreenCaptureFileExtension(DtUnicode& val);
51 
53  virtual void takeScreenCapture() ;
54 
56  virtual void takeScreenCapture(const DtChannel* channel) = 0 ;
57 
59  virtual void takeScreenCapture(const DtObserver& observer) ;
60 
62  virtual DtUnicode fileNameUniqueIdentifier() ;
63 
64  virtual DtUnicode generateFileName() ;
65 
66  protected:
67 
69  DtScreenCapture( DtDe& de);
70 
77  };
78 
82  {
83 
84  public:
85 
88  static DtScreenCaptureCreator& instance(DtDe& de);
89 
91  static void registerInstance(DtDe& de, DtScreenCaptureCreator* instance);
92 
94  virtual DtScreenCapture* create(DtDe& de) = 0;
95 
96  };
97 }
98 
99 

Document ID: Generated on Fri Apr 26 21:53:14 EDT 2019 from SVN revision 197883
Copyright © 2005-2019 VT MAK. All Rights Reserved (www.mak.com)