VR-Forces Development_Version Class Documentation
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
DtExampleModel.h
Go to the documentation of this file.
1 // /******************************************************************************
2 // ** Copyright (c) 2015 MAK Technologies, Inc.
3 // ** All rights reserved.
4 // ******************************************************************************/
5 // /******************************************************************************
6 // ** $RCSfile: DtExampleModel.h,v $ $Revision: 1.1 $ $State: Exp $
7 // ******************************************************************************/
8 
11 
12 #include <vrvCore/DtModel.h>
13 
15 
16 namespace makVrv
17 {
18  class DtExampleModel : public DtModel
19  {
20  public:
21  // create an example model and example model instance object with the specified id, halfLength, and animateRate
22  DtExampleModel(DtDe& de, DtUniqueID id, double halfLength, double animateRate);
23 
24  virtual ~DtExampleModel();
25 
26  //required function for DtModel derrived classes
27  virtual void setSolid(bool isSolid);
28 
29  //set the is support model flag for the model
30  virtual void setIsSupportModel( bool isSupport );
31 
32  //set the position of the model
33  virtual void setPosition( int vtx, const DtVector& position );
34 
35  //set the orientation of the model
36  virtual void setOrientation( int vtx, const DtTaitBryan& orientation );
37 
38  //set whether the model is visible or not
39  virtual void setVisible(bool isVisible);
40 
41  //set whether to scale the model or not
42  virtual void setModelScalingEnabled( bool b );
43 
44  //set whether to locally scale the model or not
45  virtual void setLocalModelScalingEnabled( bool enabled );
46 
47  //set how much to locally scale the model
48  virtual void setLocalModelScalingAmount( float localScl );
49 
50  protected:
51 
52  // called by DtSceneObject to add the model to the scene
53  virtual void addToScene( const DtUniqueID& sceneObjectId,
54  int modelSet, int visualizerType );
55 
56  // called by DtSceneObject to remove the model from the scene
57  virtual void removeFromScene();
58 
59  protected:
60 
61  //used to connect model instances to the scene
63 
65  };
66 }

Document ID: Generated on Mon Jul 4 01:00:18 EDT 2016 from SVN revision 166489
Copyright © 2005-2015 VT MÄK. All Rights Reserved (www.mak.com)