VR-Forces Developer's Guide
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Groups Pages
DtSquawkIndicator.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 <vrvCore/vrvCore.h>
13 
15 
17 
18 #include <vrvCore/DtUniqueID.h>
19 
20 #include <matrix/vlVector.h>
21 
22 namespace makVrv
23 {
24 
25  class DtWidgetAgent;
26  class DtSceneObjectAgent;
27  class DtAttachableUpdaterAgent;
28  class DtProjectedWidgetModelAgent;
29  enum class DtModelSetId;
30 
34  {
35  public:
36 
38  virtual ~DtSquawkIndicator();
39 
42 
45  virtual void setColor( float red, float green, float blue, float alpha = 1.0f );
46 
51  virtual void setAnimationRate( float rate );
52 
54  virtual void animate( double t );
55 
57 
59  void setOffset( const DtVector& offset );
60 
61  protected:
62 
64 
66  DtSquawkIndicator( DtDe& de, DtModelSetId modelSet, int visualType,
67  AttachablePoint transmitLoc );
68 
72  virtual void initialize();
73 
74  protected:
75 
76  DtWidgetAgent* myWidgetAgent;
77  DtAttachableUpdaterAgent* myUpdater;
78  DtProjectedWidgetModelAgent* myProjectedWidgetModelAgent;
79  DtSceneObjectAgent* mySceneObject;
80 
82 
85 
87 
89 
90  };
91 
92 
98  {
99  public:
100 
104  static DtSquawkIndicatorCreator& instance( DtDe& de );
105 
108  DtSquawkIndicator* create( DtModelSetId modelSet, int visualizerType,
109  const DtSquawkIndicator::AttachablePoint& transmitLoc );
110 
111  protected:
112 
115 
116  protected:
117 
119 
120  };
121 
122 }
DtProjectedWidgetModelAgent * myProjectedWidgetModelAgent
Definition: DtSquawkIndicator.h:78
Implements sqawk indicators radiating from an entity.
Definition: DtSquawkIndicator.h:33
AttachablePoint myAttachPoint
Definition: DtSquawkIndicator.h:81
Instantiates new squawk indicators. This creator can be overriden by registering the overridden DtSqu...
Definition: DtSquawkIndicator.h:97
Virtual base class. Allows for RTTI and proper virtual destruction. Used by Creators, Factories, Providers, Assemblers and User Interfaces.
Definition: DtVirtualBaseClass.h:19
Contains the DtBaseRadioVisualization interface.
Common interface for communication lines and squawk indicators.
Definition: DtBaseRadioVisualization.h:23
Defines an attachable point for a squawk indicator or comm line endpoint. May be an entity or a fixed...
Definition: DtBaseRadioVisualization.h:30
float myAnimationRate
Definition: DtSquawkIndicator.h:86
int myVisualType
Definition: DtSquawkIndicator.h:83
DtAttachableUpdaterAgent * myUpdater
Definition: DtSquawkIndicator.h:77
Contains makVrv::DtVirtualBaseClass class.
DtSceneObjectAgent * mySceneObject
Definition: DtSquawkIndicator.h:79
DtDe & myDe
Definition: DtSquawkIndicator.h:118
#define DT_DLL_VRVCORE
Definition: vrvCore.h:20
DtWidgetAgent * myWidgetAgent
Definition: DtSquawkIndicator.h:76
DtModelSetId myModelSet
Definition: DtSquawkIndicator.h:84
Contains makVrv::DtUniqueID type.
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:72
DtModelSetId
Definition: DtModelSetEnums.h:19
voidpf uLong offset
Definition: ioapi.h:42
DtDe & myDe
Definition: DtSquawkIndicator.h:88
Contains DLL export macros.

Document ID: Generated on Wed Mar 27 22:49:11 EDT 2024 from SVN revision 264633
Copyright © 2005-2024 MAK Technologies. All Rights Reserved (www.mak.com)