VR-Forces 4.10 Class Documentation
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Groups Pages
DtCameraShakeFactory.h
Go to the documentation of this file.
1 /*****************************************************************************
2  * Copyright (c) 2015 MAK Technologies, Inc.
3  * All rights reserved.
4  *****************************************************************************/
5 
9 
10 #pragma once
11 
12 #include <vrvCore/vrvCore.h>
14 #include <boost/unordered_map.hpp>
15 
16 #include <list>
17 #include <string>
18 
19 namespace makVrv
20 {
21  class DtCameraShakeCreator;
22  class DtCameraShake;
23  class DtObserver;
24 
29  {
30  public:
31 
33  static DtCameraShakeFactory& instance(DtDe& de);
34 
36  virtual ~DtCameraShakeFactory();
37 
39  virtual void addCreator( const std::string& cameraShakeType,
40  DtCameraShakeCreator* creator);
41 
44  virtual void cameraShakeTypesSupported(
45  std::list<std::string>& cameraShakeTypes) const;
46 
48  virtual DtCameraShake* createCameraShake( DtObserver& obs,
49  const std::string& cameraShakeType) const;
50 
52  bool canCreateCameraShake(const std::string& cameraShakeType);
53 
54  protected:
58 
59  protected:
60  typedef boost::unordered_map<std::string, DtCameraShakeCreator*>
62 
64 
66  };
67 }
Virtual base class.
Definition: DtVirtualBaseClass.h:19
DtDe & myDe
Definition: DtCameraShakeFactory.h:65
boost::unordered_map< std::string, DtCameraShakeCreator * > CameraShakeCreators
Definition: DtCameraShakeFactory.h:61
CameraShakeCreators myCameraShakeCreators
Definition: DtCameraShakeFactory.h:63
Factory to create the specific DtCameraShakes created when vrvCore starts up.
Definition: DtCameraShakeFactory.h:28
A facade for a DtObserverObject.
Definition: DtObserver.h:37
Contains makVrv::DtVirtualBaseClass class.
#define DT_DLL_VRVCORE
Definition: vrvCore.h:20
The DtDe is the core component of any VR-Vantage application.
Definition: DtDe.h:69
Provides an algorithm for shaking the camera.
Definition: DtCameraShake.h:23
DtCameraShakeCreator is the common base class for all camera shake creators.
Definition: DtCameraShake.h:76
Contains DLL export macros.

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)