VR-Forces 5.0.1 Developer's Guide
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Groups Pages
DtExampleModelInstance.h
Go to the documentation of this file.
1 /******************************************************************************
2 ** Copyright (c) 2019 MAK Technologies, Inc.
3 ** All rights reserved.
4 ******************************************************************************/
5 #pragma once
6 
9 
11 
12 namespace makVrv
13 {
14  //derive from the OsgModelInstance so we can use the OsgSceneConnector in the example model object
16  {
17  public:
18 
20  DtExampleModelInstance(DtDe& de, double halfLength, double animateRate);
21 
23 
25  virtual void setVisible(bool isVisible);
26 
27  //adjust the current size based on the side and deltaChange passed in.
28  virtual void changeSideSize(int side, double deltaChange);
29 
30  //update the verticies of the geometry to match the current size of the cube.
31  virtual void updateSize(double animationScale);
32 
33  protected:
34 
35  //create the cube geode and geometry
36  void createCubeGeode();
37 
38  protected:
39 
40  osg::Vec3 myMinSize;
41  osg::Vec3 myMaxSize;
42  osg::Vec3 myCurrentSize;
43 
44  osg::Vec3 myAnimateRate;
45 
46  };
47 }
osg::Vec3 myMinSize
Definition: DtExampleModelInstance.h:40
osg::Vec3 myCurrentSize
Definition: DtExampleModelInstance.h:42
virtual ~DtExampleModelInstance()
Definition: DtExampleModelInstance.h:22
osg::Vec3 myMaxSize
Definition: DtExampleModelInstance.h:41
Contains makVrv::DtOsgModelInstance class.
virtual void setVisible(bool isVisible)
Set whether the model is visible or not.
The base class for simple OSG based model instances. This call can't be instantiated itself...
Definition: DtOsgModelInstance.h:77
virtual void updateSize(double animationScale)
virtual void changeSideSize(int side, double deltaChange)
Definition: DtExampleModelInstance.h:15
DtExampleModelInstance(DtDe &de, double halfLength, double animateRate)
CTOR.
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
osg::Vec3 myAnimateRate
Definition: DtExampleModelInstance.h:44

Document ID: Generated on Mon Jun 20 00:38:30 EDT 2022 from SVN revision 244029
Copyright © 2005-2021 MAK Technologies. All Rights Reserved (www.mak.com)