VR-Forces 5.0.2 Developer's Guide
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Groups Pages
DtExampleModelManager.h
Go to the documentation of this file.
1 // /******************************************************************************
2 // ** Copyright (c) 2019 MAK Technologies, Inc.
3 // ** All rights reserved.
4 // ******************************************************************************/
5 
8 
9 #ifndef DtExampleModelManager_H_
10 #define DtExampleModelManager_H_
11 
12 #include <vrvCore/DtDe.h>
13 #include <vrvCore/DtUniqueID.h>
14 
15 namespace makVrv
16 {
17 
18  class DtExampleModelInstance;
19 
23  {
24 
25  public:
26 
29 
31  virtual ~DtExampleModelManager();
32 
34  virtual void createCube(double x, double y, double z, double halfLength, double heading);
35 
37  virtual void createRandomCube();
38 
42  virtual void changeSideSize(int side, double deltaChange);
43 
45  virtual void changeAnimateScale(double deltaChange);
46 
48  void tick();
49 
50  protected:
51 
53 
54  //Amount to scale the animation rate of the cubes.
56 
57  //list of all the example model instances created
58  std::list<DtExampleModelInstance *> myModelInstances;
59 
60  };
61 
62 }
63 
64 #endif
virtual void createRandomCube()
create a cube of random size at a random location with a random heading
virtual ~DtExampleModelManager()
DTOR.
virtual void changeAnimateScale(double deltaChange)
change the animation scale for the cube animation.
virtual void createCube(double x, double y, double z, double halfLength, double heading)
create a cube centered at x,y,z with a half width of each side of halfLength and a particular heading...
virtual void changeSideSize(int side, double deltaChange)
change the size of a side of each of the cubes (Not necessarily cubes anymore after this call) side 0...
std::list< DtExampleModelInstance * > myModelInstances
Definition: DtExampleModelManager.h:58
Contains makVrv::DtDe class.
DtExampleModelManager(DtDe &de)
The Constructor takes in the de for the application.
This is the implementation of the example model manager. It handles the creation and resizing of Exam...
Definition: DtExampleModelManager.h:22
double myAnimateScale
Definition: DtExampleModelManager.h:55
Contains makVrv::DtUniqueID type.
void tick()
callback for the de post tick signal. It is called once per frame.
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:70
DtDe & myDe
Definition: DtExampleModelManager.h:52

Document ID: Generated on Sun Dec 4 20:22:03 EST 2022 from SVN revision 249613
Copyright © 2005-2021 MAK Technologies. All Rights Reserved (www.mak.com)