VR-Forces Developer's Guide
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Groups Pages
DtOsgAnimationModel.h
Go to the documentation of this file.
1 /******************************************************************************
2 ** Copyright (c) 2019 MAK Technologies, Inc.
3 ** All rights reserved.
4 ******************************************************************************/
5 
6 
10 
11 #pragma once
12 
13 #include <vrvOsg/vrvOsg.h>
15 
16 #include <osg/Group>
17 
18 #include <matrix/vlVector.h>
19 
20 namespace makVrv
21 {
22  class DtOsgSceneConnector;
23  class DtAnimationModelInstance;
24 
28  {
29  public:
30 
33 
35  virtual ~DtOsgAnimationModel();
36 
39  virtual const std::string& className() const;
40 
41  virtual void setModelDefinition(const std::string& str);
42  virtual const std::string& modelDefinition() { return myModelDefinitionName; }
43 
45  virtual void setDuration(double seconds);
46 
48  virtual void setOrientation(int vtx, const DtTaitBryan& ori);
49 
51  virtual void setPosition(int vtx, const DtVector& pos);
52 
54  virtual void stop();
55 
57  virtual void start();
58 
60  virtual void pause();
61 
63  virtual void resume();
64 
66  virtual void setLoopMode(bool loopOn);
67 
69  virtual void setReverseAnimation(bool reverse);
70 
72  virtual void setVisible(bool isVisible);
73 
77  virtual void setIsSupportModel(bool isSupport);
78 
80  virtual void backgroundLoad();
81  virtual void foregroundLoad();
82 
83  protected:
84 
87  virtual void addToScene(const DtUniqueID& id, DtModelSetId modelSet,
88  int visualizerType);
89 
91  virtual void removeFromScene();
92 
94  osg::Node* loadNode(const std::string& filenameParam,
95  const std::string& resourcePathList);
96 
97  protected:
99  double myDuration;
100  };
101 }
102 
#define DT_DLL_VRVOSG
Definition: vrvOsg.h:23
A model of an animation (osg::Sequence in this case)
Definition: DtAnimationModel.h:26
Contains makVrv::DtAnimationModel class.
double myDuration
Definition: DtOsgAnimationModel.h:99
DtOsgSceneConnector is used by models to create an OSG position/orientation transform so that it can ...
Definition: DtOsgSceneConnector.h:77
DtOsgSceneConnector * mySceneConnector
Definition: DtOsgAnimationModel.h:98
virtual const std::string & modelDefinition()
Definition: DtOsgAnimationModel.h:42
unsigned long long DtUniqueID
Definition: DtUniqueID.h:19
Contains DLL export macros.
The DtDe is the core component of any VR-Vantage application. It owns a DtRenderer, DtDeCommunicator, as well as a DtDisplay and other things.
Definition: DtDe.h:76
A model of an animation (osg::Sequence in this case)
Definition: DtOsgAnimationModel.h:27
DtModelSetId
Definition: DtModelSetEnums.h:19

Document ID: Generated on Thu Oct 23 22:29:17 EDT 2025 from SVN revision 280951
Copyright © 2005-2024 MAK Technologies. All Rights Reserved (www.mak.com)