VR-Forces 4.5 Class Documentation
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
DtExampleModelInstance.h
Go to the documentation of this file.
1 // /******************************************************************************
2 // ** Copyright (c) 2015 MAK Technologies, Inc.
3 // ** All rights reserved.
4 // ******************************************************************************/
5 // /******************************************************************************
6 // ** $RCSfile: DtOsgModelInstance.h,v $ $Revision: 1.1 $ $State: Exp $
7 // ******************************************************************************/
8 
11 
13 
14 namespace makVrv
15 {
16  //derive from the OsgModelInstance so we can use the OsgSceneConnector in the example model object
18  {
19  public:
20 
22  DtExampleModelInstance(DtDe& de, double halfLength, double animateRate);
23 
25 
27  virtual void setVisible(bool isVisible);
28 
29  //adjust the current size based on the side and deltaChange passed in.
30  virtual void changeSideSize(int side, double deltaChange);
31 
32  //update the verticies of the geometry to match the current size of the cube.
33  virtual void updateSize(double animationScale);
34 
35  protected:
36 
37  //create the cube geode and geometry
38  void createCubeGeode();
39 
40  protected:
41 
42  osg::Vec3 myMinSize;
43  osg::Vec3 myMaxSize;
44  osg::Vec3 myCurrentSize;
45 
46  osg::Vec3 myAnimateRate;
47 
48  };
49 }

Document ID: Generated on Thu Mar 23 18:54:12 EDT 2017 from SVN revision 174804
Copyright © 2005-2017 VT MÄK. All Rights Reserved (www.mak.com)