![]() |
VR-Forces 4.0.4 Class Documentation
|
00001 /****************************************************************************** 00002 ** Copyright (c) 2010 MAK Technologies, Inc. 00003 ** All rights reserved. 00004 ******************************************************************************/ 00005 /****************************************************************************** 00006 ** $RCSfile: DtChannelCompass.h,v $ $Revision: 1.0 $ $State: Exp $ 00007 ******************************************************************************/ 00008 00012 00013 #pragma once 00014 00015 #include <vrvCore/vrvCore.h> 00016 #include <vrvCore/DtUniqueID.h> 00017 00018 #include <string> 00019 00020 namespace makVrv 00021 { 00022 class DtDe; 00023 class DtChannelCompassInstance; 00024 00028 class DT_DLL_VRVCORE DtChannelCompass 00029 { 00030 public: 00031 00033 DtChannelCompass(DtDe& de, DtUniqueID id); 00034 00036 virtual ~DtChannelCompass(); 00037 00039 enum Locations 00040 { 00041 Top = 0, 00042 TopRight, 00043 Right, 00044 BottomRight, 00045 Bottom, 00046 BottomLeft, 00047 Left, 00048 TopLeft, 00049 Center 00050 }; 00051 00054 virtual void setInstance(DtChannelCompassInstance* instance); 00055 00057 virtual DtChannelCompassInstance* instance(); 00058 00060 virtual void setVisible(bool isVisible); 00061 00063 void setChannelName( const std::string& deName, 00064 const std::string& winName, const std::string& channelName ); 00065 00067 void setCompassHeading( double heading ); 00068 00071 void setModelDefinition( const std::string& modelDefinition ); 00072 00076 void setLocation( unsigned int location ); 00077 00079 unsigned int location() const; 00080 00084 void setMargins( unsigned int xMargin, unsigned int yMargin ); 00085 00088 void setNorthLetterFilename( const std::string& filename ); 00089 00092 void setSouthLetterFilename( const std::string& filename ); 00093 00096 void setEastLetterFilename( const std::string& filename ); 00097 00100 void setWestLetterFilename( const std::string& filename ); 00101 00103 void setCompassRadius( unsigned int radius ); 00104 00106 void setNorthLetterSize( unsigned int width, unsigned int height ); 00107 00109 void setSouthLetterSize( unsigned int width, unsigned int height ); 00110 00112 void setEastLetterSize( unsigned int width, unsigned int height ); 00113 00115 void setWestLetterSize( unsigned int width, unsigned int height ); 00116 00118 void showSmallTickMarks( bool show ); 00119 00121 void setDarkTickColor( float r, float g, float b, float a ); 00122 00124 void setLightTickColor( float r, float g, float b, float a ); 00125 00126 protected: 00127 DtChannelCompassInstance* myInstance; 00128 }; 00129 } 00130