OGRE 14.3
Object-Oriented Graphics Rendering Engine
|
Class for converting the core Ogre data types to/from Strings. More...
#include <OgreStringConverter.h>
Static Public Attributes | |
static locale_t | _numLocale |
Class for converting the core Ogre data types to/from Strings.
The code for converting values to and from strings is here as a separate class to avoid coupling String to other datatypes (and vice-versa) which reduces compilation dependency: important given how often the core types are used.
|
static |
Converts a float to a String.
|
static |
Converts a double to a String.
|
inlinestatic |
Converts a Radian to a String.
References Ogre::Radian::valueAngleUnits().
|
inlinestatic |
Converts a Degree to a String.
References Ogre::Degree::valueAngleUnits().
Converts a boolean to a String.
val | |
yesNo | If set to true, result is 'yes' or 'no' instead of 'true' or 'false' |
Converts a Vector2 to a String.
Format is "x y" (i.e. 2x Real values, space delimited)
Converts a Vector3 to a String.
Format is "x y z" (i.e. 3x Real values, space delimited)
Converts a Vector4 to a String.
Format is "x y z w" (i.e. 4x Real values, space delimited)
Converts a Matrix3 to a String.
Format is "00 01 02 10 11 12 20 21 22" where '01' means row 0 column 1 etc.
Converts a Matrix4 to a String.
Format is "00 01 02 03 10 11 12 13 20 21 22 23 30 31 32 33" where '01' means row 0 column 1 etc.
|
static |
Converts a Quaternion to a String.
Format is "w x y z" (i.e. 4x Real values, space delimited)
|
static |
Converts a ColourValue to a String.
Format is "r g b a" (i.e. 4x Real values, space delimited).
|
static |
Converts a StringVector to a string.
Strings must not contain spaces since space is used as a delimiter in the output.
|
static |
Converts a String to a basic value type.
Referenced by Ogre::SimpleParamCommand< _Class, Param, getter, setter >::doSet().
|
static |
|
inlinestatic |
Converts a String to a Real.
|
inlinestatic |
Converts a String to a whole number.
|
inlinestatic |
Converts a String to a whole number.
|
inlinestatic |
Converts a String to size_t.
|
inlinestatic |
Converts a String to a boolean.
Returns true if case-insensitive match of the start of the string matches "true", "yes", "1", or "on", false if "false", "no", "0" or "off".
|
inlinestatic |
Parses a Vector2 out of a String.
Format is "x y" ie. 2 Real components, space delimited. Failure to parse returns Vector2::ZERO.
|
inlinestatic |
Parses a Vector3 out of a String.
Format is "x y z" ie. 3 Real components, space delimited. Failure to parse returns Vector3::ZERO.
|
inlinestatic |
Parses a Vector4 out of a String.
Format is "x y z w" ie. 4 Real components, space delimited. Failure to parse returns Vector4::ZERO.
|
inlinestatic |
Parses a Matrix3 out of a String.
Format is "00 01 02 10 11 12 20 21 22" where '01' means row 0 column 1 etc. Failure to parse returns Matrix3::IDENTITY.
|
inlinestatic |
Parses a Matrix4 out of a String.
Format is "00 01 02 03 10 11 12 13 20 21 22 23 30 31 32 33" where '01' means row 0 column 1 etc. Failure to parse returns Matrix4::IDENTITY.
|
inlinestatic |
Parses a Quaternion out of a String.
Format is "w x y z" (i.e. 4x Real values, space delimited). Failure to parse returns Quaternion::IDENTITY.
|
inlinestatic |
Parses a ColourValue out of a String.
Format is "r g b a" (i.e. 4x Real values, space delimited), or "r g b" which implies an alpha value of 1.0 (opaque). Failure to parse returns ColourValue::Black.
|
inlinestatic |
References Ogre::StringUtil::split().
|
static |