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

Document ID: Generated on Tue Mar 8 22:13:38 EST 2016 from SVN revision 162938
Copyright © 2005-2015 VT MÄK. All Rights Reserved (www.mak.com)