VR-Forces 4.10 Class Documentation
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Groups Pages
DtAnimationManager.h
Go to the documentation of this file.
1 /******************************************************************************
2 ** Copyright (c) 2019 MAK Technologies, Inc.
3 ** All rights reserved.
4 ******************************************************************************/
5 
9 
10 #pragma once
11 
12 #include <vrvOsg/vrvOsg.h>
15 #include <osgAnimation/Animation>
16 
17 namespace osgAnimation
18 {
19  class Animation;
20  class BasicAnimationManager;
21 }
22 
23 namespace osg
24 {
25  class Node;
26 }
27 
28 namespace makVrv
29 {
30  class DtDe;
31 
35  {
36 
37  public:
38 
40  static DtAnimationManager& instance(DtDe& de);
41 
43  virtual bool isEnabled();
44 
47  virtual void setEnabled(bool enable);
48 
50  virtual void playAnimation(osgAnimation::Animation* pAnimation, int priority = 0, float weight = 1.0);
51 
53  virtual void registerAnimation(osgAnimation::Animation* animation);
54 
56  virtual void buildTargetReference();
57 
59  virtual void setUpdateCallback(osg::Node* rootNode);
60 
62  const osgAnimation::AnimationList& getAnimationList() const;
63 
64  protected:
65 
68 
70  virtual ~DtAnimationManager();
71 
72  static void registerInstance(DtDe& de, DtAnimationManager *manager);
73 
75  static const std::string& theClassName();
76 
79  void connectSignals();
80 
82  virtual void shutdown();
83 
84 
85  protected:
90  };
91 
92 }
93 
Virtual base class.
Definition: DtVirtualBaseClass.h:19
#define DT_DLL_VRVOSG
Definition: vrvOsg.h:23
osg::ref_ptr< osgAnimation::BasicAnimationManager > myBasicAnimationManager
Definition: DtAnimationManager.h:86
Contains makVrv::DtVirtualBaseClass class.
DtSignalConnectionManager myConnections
Definition: DtAnimationManager.h:88
Class to manage disconnection of boost connections on deletion.
Definition: DtSignalConnectionManager.h:20
DtDe & myDe
Definition: DtAnimationManager.h:87
Base class to provide boost signal/slot management.
DtAnimationManager manages the key frame animation in vantage.
Definition: DtAnimationManager.h:34
Contains DLL export macros.
The DtDe is the core component of any VR-Vantage application.
Definition: DtDe.h:69
bool myIsEnabled
Definition: DtAnimationManager.h:89

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)