VR-Forces 4.3.1 Class Documentation
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
DtOsgDecalModel.h
Go to the documentation of this file.
1 /*****************************************************************************
2  * Copyright (c) 2012 MAK Technologies, Inc.
3  * All rights reserved.
4  *****************************************************************************/
5 
9 
10 #pragma once
11 
12 #include <vrvOsg/vrvOsg.h>
13 
14 #include <vrvCore/DtDecalModel.h>
15 
16 #include <matrix/vlVector.h>
17 #include <osg/Vec4>
18 
19 namespace makVrv
20 {
21 
22  class DtOsgSceneConnector;
23  class DtDecalModelInstance;
24 
28  {
29  public:
30 
32  DtOsgDecalModel( DtDe& de, DtUniqueID id );
33 
35  virtual ~DtOsgDecalModel();
36 
38  virtual void setModelDefinition( const std::string& str );
39 
41  virtual void setModelInstance( DtModelInstance* modelInstance );
42 
45  virtual std::string className() const;
46 
48  virtual void setOrientation( int vtx, const DtTaitBryan& ori );
49 
51  virtual void setPosition( int vtx, const DtVector& pos );
52 
55  virtual void addToScene( const DtUniqueID& id, int modelSet,
56  int visualizerType );
57 
59  virtual void removeFromScene();
60 
62  virtual void setOcclusionEnabled( bool enabled );
63 
64  virtual void setColor( float r, float g, float b, float a );
65 
66  virtual void initializeModelInstance();
67 
69  virtual void setVisible( bool isVisible );
70 
74  virtual void setIsSupportModel(bool isSupport);
75 
77  virtual void update();
78 
79  protected:
80 
84  bool myColorSet;
85  osg::Vec4 myColor;
86 
87  };
88 
89 }

Document ID: Generated on Wed Jul 29 00:55:00 EDT 2015 from SVN revision 155257
Copyright © 2005-2015 VT MÄK. All Rights Reserved (www.mak.com)