VR-Forces 4.7 Class Documentation
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Groups Pages
DtCommunicationLine.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 DtSceneObjectAgent;
26  class DtAttachableUpdaterAgent;
27  class DtSegmentedLineModelAgent;
28 
33  {
34  public:
35 
37  virtual ~DtCommunicationLine();
38 
40  virtual void setDirection( const AttachablePoint& source, const AttachablePoint& dest );
41 
44 
47  virtual void setColor( float red, float green, float blue, float alpha = 1.0f );
48 
53  virtual void setAnimationRate( float rate );
54 
56  virtual void animate( double t );
57 
59 
61  virtual void setCurvedEarthExaggeration( float amount );
62 
66  virtual void setUseCurvedEarthLines( bool useCurved );
67 
69  virtual void setStartOffset( const DtVector& offset );
70 
72  virtual void setEndOffset( const DtVector& offset );
73 
74  protected:
75 
77 
79  DtCommunicationLine( DtDe& de, int modelSet, int visualType,
80  AttachablePoint source, AttachablePoint dest );
81 
85  virtual void initialize();
86 
91  virtual DtSegmentedLineModelAgent* instantiateLineModelAgent();
92 
98  virtual void initializeLineModelAgent( DtSegmentedLineModelAgent* agent );
99 
103  virtual void slot_coordinateSystemChanged();
104 
105  protected:
106 
107  DtAttachableUpdaterAgent* myUpdater;
108  DtSegmentedLineModelAgent* myLineModel;
109 
110  DtSceneObjectAgent* mySceneObject;
111 
114 
117 
119 
120  unsigned short myStipplePattern;
121 
123 
126 
131 
133 
134  };
135 
136 
142  {
143  public:
144 
148  static DtCommunicationLineCreator& instance( DtDe& de );
149 
152 
155  DtCommunicationLine* create( int modelSet, int visualizerType,
158 
159  protected:
160 
162 
163  };
164 
165 }

Document ID: Generated on Fri Apr 26 21:53:14 EDT 2019 from SVN revision 197883
Copyright © 2005-2019 VT MAK. All Rights Reserved (www.mak.com)