VR-Forces Developer's Guide
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Groups Pages
DtChannelCompass.h
Go to the documentation of this file.
1 /******************************************************************************
2 ** Copyright (c) 2010 MAK Technologies, Inc.
3 ** All rights reserved.
4 ******************************************************************************/
5 
9 
10 #pragma once
11 
12 #include <vrvCore/vrvCore.h>
13 #include <vrvCore/DtUniqueID.h>
14 
15 #include <string>
16 
17 namespace makVrv
18 {
19  class DtDe;
20  class DtChannelCompassInstance;
21 
26  {
27  public:
28 
31 
33  virtual ~DtChannelCompass();
34 
36  enum Locations
37  {
38  Top = 0,
46  Center
47  };
48 
51  virtual void setInstance(DtChannelCompassInstance* instance);
52 
54  virtual DtChannelCompassInstance* instance();
55 
57  virtual void setVisible(bool isVisible);
58 
60  void setChannelName( const std::string& deName,
61  const std::string& winName, const std::string& channelName );
62 
64  void setCompassHeading( double heading );
65 
68  void setModelDefinition( const std::string& modelDefinition );
69 
73  void setLocation( unsigned int location );
74 
76  unsigned int location() const;
77 
81  void setMargins( unsigned int xMargin, unsigned int yMargin );
82 
85  void setNorthLetterFilename( const std::string& filename );
86 
89  void setSouthLetterFilename( const std::string& filename );
90 
93  void setEastLetterFilename( const std::string& filename );
94 
97  void setWestLetterFilename( const std::string& filename );
98 
100  void setCompassRadius( unsigned int radius );
101 
103  void setNorthLetterSize( unsigned int width, unsigned int height );
104 
106  void setSouthLetterSize( unsigned int width, unsigned int height );
107 
109  void setEastLetterSize( unsigned int width, unsigned int height );
110 
112  void setWestLetterSize( unsigned int width, unsigned int height );
113 
115  void showSmallTickMarks( bool show );
116 
118  void setDarkTickColor( float r, float g, float b, float a );
119 
121  void setLightTickColor( float r, float g, float b, float a );
122 
123  protected:
125  };
126 }
127 
Definition: DtChannelCompass.h:44
DtChannelCompassInstance * myInstance
Definition: DtChannelCompass.h:124
Locations
Enumeration of allowable compass locations.
Definition: DtChannelCompass.h:36
Interface for a DtChannelCompassInstance An object that draws a 2D compass.
Definition: DtChannelCompassInstance.h:21
A model-like object that draws a 2D compass on a channel.
Definition: DtChannelCompass.h:25
Definition: DtChannelCompass.h:40
#define DT_DLL_VRVCORE
Definition: vrvCore.h:20
unsigned long long DtUniqueID
Definition: DtUniqueID.h:19
Definition: DtChannelCompass.h:41
Contains makVrv::DtUniqueID type.
Definition: DtChannelCompass.h:42
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
Definition: DtChannelCompass.h:43
Definition: DtChannelCompass.h:39
Definition: DtChannelCompass.h:45
Contains DLL export macros.

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)