VR-Forces Development_Version 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 <osg/Vec4>
17 
18 namespace makVrv
19 {
20 
21  class DtOsgSceneConnector;
22  class DtDecalModelInstance;
23 
27  {
28  public:
29 
31  DtOsgDecalModel( DtDe& de, DtUniqueID id );
32 
34  virtual ~DtOsgDecalModel();
35 
37  virtual void setModelDefinition( const std::string& str );
38 
40  virtual void setModelInstance( DtModelInstance* modelInstance );
41 
44  virtual std::string className() const;
45 
47  virtual void setOrientation( int vtx, const DtTaitBryan& ori );
48 
50  virtual void setPosition( int vtx, const DtVector& pos );
51 
54  virtual void addToScene( const DtUniqueID& id, int modelSet,
55  int visualizerType );
56 
58  virtual void removeFromScene();
59 
61  virtual void setOcclusionEnabled( bool enabled );
62 
63  virtual void setColor( float r, float g, float b, float a );
64 
65  virtual void initializeModelInstance();
66 
68  virtual void setVisible( bool isVisible );
69 
73  virtual void setIsSupportModel(bool isSupport);
74 
76  virtual void update();
77 
78  protected:
79 
83  bool myColorSet;
84  osg::Vec4 myColor;
85 
86  };
87 
88 }

Document ID: Generated on Tue Mar 8 22:13:38 EST 2016 from SVN revision 162938
Copyright © 2005-2015 VT MÄK. All Rights Reserved (www.mak.com)