VR-Forces Developer's Guide
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Groups Pages
DtOsgDecalModel.h
Go to the documentation of this file.
1 /*****************************************************************************
2  * Copyright (c) 2016 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 const std::string& className() const;
45 
48  virtual void setPositionOffset(const DtVector& positionOffset);
49 
51  virtual void setOrientation( int vtx, const DtTaitBryan& ori );
52 
54  virtual void setPosition( int vtx, const DtVector& pos );
55 
58  virtual void addToScene( const DtUniqueID& id, DtModelSetId modelSet,
59  int visualizerType );
60 
62  virtual void removeFromScene();
63 
65  virtual void setOcclusionEnabled( bool enabled );
66 
69  virtual void setNewParticleVisible( bool enabled );
70 
71  virtual void setColor( float r, float g, float b, float a );
72 
73  virtual void initializeModelInstance();
74 
76  virtual void setVisible( bool isVisible );
77 
81  virtual void setIsSupportModel(bool isSupport);
82 
84  virtual void update();
85 
86  protected:
87 
91  bool myColorSet;
92  osg::Vec4 myColor;
94  };
95 
96 }
The base class for all model instances.
Definition: DtModelInstance.h:41
#define DT_DLL_VRVOSG
Definition: vrvOsg.h:23
A model of a decal ribbon.
Definition: DtOsgDecalModel.h:26
bool myNewParticleVisible
Definition: DtOsgDecalModel.h:93
DtOsgSceneConnector is used by models to create an OSG position/orientation transform so that it can ...
Definition: DtOsgSceneConnector.h:77
osg::Vec4 myColor
Definition: DtOsgDecalModel.h:92
bool myOcclusionEnabled
Definition: DtOsgDecalModel.h:90
DtOsgSceneConnector * mySceneConnector
Definition: DtOsgDecalModel.h:88
unsigned long long DtUniqueID
Definition: DtUniqueID.h:19
DtDecalModelInstance * myDecalModelCast
Definition: DtOsgDecalModel.h:89
Contains DLL export macros.
A model of a decal ribbon effect.
Definition: DtDecalModel.h:21
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:76
bool myColorSet
Definition: DtOsgDecalModel.h:91
DtModelSetId
Definition: DtModelSetEnums.h:19
A model instance creates a decal ribbon model instance effect from a model definition.
Definition: DtDecalModelInstance.h:43
Contains the DtDecalModel class declaration.

Document ID: Generated on Thu Oct 23 22:29:17 EDT 2025 from SVN revision 280951
Copyright © 2005-2024 MAK Technologies. All Rights Reserved (www.mak.com)