VR-Forces 4.1 Class Documentation
translation.h
Go to the documentation of this file.
1 /*******************************************************************************
2 ** Copyright (c) 2005 MAK Technologies, Inc.
3 ** All rights reserved.
4 *******************************************************************************/
5 /*******************************************************************************
6 ** $RCSfile: translation.h,v $ $Revision: 1.4 $ $State: Exp $
7 *******************************************************************************/
8 
9 #ifndef DTTRANSLATION_H_
10 #define DTTRANSLATION_H_
11 
12 #include <vlutil/vlString.h>
13 #include <matrix/vlVector.h>
14 
15 #include "tdbutil/tdbUtilDefines.h"
16 
17 // Set the global translation function to handle your own custom translations
18 typedef DtString (*DtTranslatorFunction)(const char* text, const char* module);
19 
20 DT_DLL_tdbutil DtString trUtf8(const char* text, const char* module);
22 
23 // Pretty formatting for back-end tasks and sets
24 
26 {
27 public:
28  virtual DtString formatSourceToDisplay(const DtVector& val) const;
29  virtual DtString formatSourceToDisplay(double val, const DtString& unitDisplay,
30  const DtString& source, DtString& unitLabel) const;
31 };
32 
34 
35 // Assumes that DtVector is in geocentric
37 
38 // value must be in source units as defined in tdbUnits.h
39 DT_DLL_tdbutil DtString formatSourceToDisplay(double val, const DtString& unitDisplay,
40  const DtString& source, DtString& unitLabel);
41 
42 #endif

Document ID: Generated on Tue Jan 29 18:21:16 EST 2013 from SVN revision 123193
Copyright © 2005-2013 VT MÄK Inc. All Rights Reserved (www.mak.com)