示例#1
0
//*********************************************************************
//
// Format. virtual
//
//
bool nuiFormater::Format (double dValue, nglString& rResult) const
{
  // identity (default formater)
  rResult.CFormat ("%.0f", dValue); // i.e., 45.80
  
  return true;
}
示例#2
0
void nuiRange::ToString(nglString& str)
{
//double Value, double Min, double Max, double Increment, double PageIncrement, double PageSize, double Origin
  str.CFormat(_T("[%g %g %g %g %g %g %g]"), 
    mValue, mMinimum, mMaximum, mIncrement, mPageIncrement, mPageSize, mOrigin);
}
示例#3
0
bool nuiMatrixViewFormater::Format (double dValue, nglString& rResult) const
{
  rResult.CFormat(_T("%.0f"), dValue);
  return true;
}
示例#4
0
void OutFormater(nglString& rString, float value)
{
  rString.CFormat(_T("%3.1f%%"), 100.0f * value);
}
示例#5
0
void DelayFormater(nglString& rString, float value)
{
  rString.CFormat(_T("%2.2fs"), value);
}
示例#6
0
void BM2GetFeatureKey(uint32 ID, nglString& rKey)
{
  rKey.CFormat(_T("bm2lic.%#08x"), ID);
}