Tekkotsu Homepage | Demos | Overview | Downloads | Dev. Resources | Reference | Credits |
plist::Angle Class ReferenceHandles angle measurements by adding a 'unit' attribute to numeric values, or a character suffix in a string value. */. More...
Inheritance diagram for plist::Angle:
Detailed DescriptionHandles angle measurements by adding a 'unit' attribute to numeric values, or a character suffix in a string value. */. Values are always stored in radians, but may be converted from/to degrees when loading/saving. Valid values for a 'unit' attribute are: rad, radian, radians, °, deg, degree, degrees, π, pi, %, percent. Valid values for a suffix are: °, π, π/, %. The 'π/' should be followed by another number to form a fraction, e.g. '3π/2' or 'π/3'. To conform completely to Apple's plist specification, the 'unit' attribute should be avoided, and unit suffixes should only be used in 'string' elements. This code can handle both, but other editors might not. Use of the setPedantic() function can give a warning when such values are loaded, and rely on solely on strings for non-radian values. Definition at line 114 of file plistSpecialty.h.
Member Enumeration Documentation
Definition at line 116 of file plistSpecialty.h.
Definition at line 126 of file plistSpecialty.h. Constructor & Destructor Documentation
constructor Definition at line 132 of file plistSpecialty.h.
casting constructor Definition at line 133 of file plistSpecialty.h. Member Function Documentation
clone definition for Angle implements the clone function for Primitive<char> Reimplemented from plist::Primitive< PLISTREAL >. Definition at line 656 of file plistSpecialty.cc.
return current value as a string Reimplemented from plist::Primitive< PLISTREAL >. Definition at line 598 of file plistSpecialty.cc.
returns defaultFormat Definition at line 150 of file plistSpecialty.h.
Definition at line 142 of file plistSpecialty.h.
returns saveFormat Definition at line 146 of file plistSpecialty.h.
Definition at line 147 of file plistSpecialty.h.
returns pedantic Definition at line 153 of file plistSpecialty.h.
interprets node as holding the specialization type Reimplemented from plist::Primitive< PLISTREAL >. Definition at line 374 of file plistSpecialty.cc.
assignment from std::string, wraps it in a plist::Primitive and passes on to operator=(PrimitiveBase) Reimplemented from plist::PrimitiveBase. Definition at line 134 of file plistSpecialty.h. Referenced by setDegree().
saves val into node Reimplemented from plist::Primitive< PLISTREAL >. Definition at line 442 of file plistSpecialty.cc.
assign a new value Reimplemented from plist::Primitive< PLISTREAL >. Definition at line 507 of file plistSpecialty.cc.
sets defaultFormat Definition at line 149 of file plistSpecialty.h.
Definition at line 141 of file plistSpecialty.h.
sets saveFormat Definition at line 145 of file plistSpecialty.h. Referenced by KinematicJoint::plistValueChanged().
sets pedantic Definition at line 152 of file plistSpecialty.h. Member Data Documentation
The format to use if loadedFormat is FORMAT_AUTO;. Definition at line 165 of file plistSpecialty.h. Referenced by get(), getDefaultFormat(), saveXML(), and setDefaultFormat().
Specifies the format last loaded (to be reused if saveFormat is FORMAT_SAME). Definition at line 163 of file plistSpecialty.h. Referenced by get(), getLoadedFormat(), loadXML(), saveXML(), and set().
If true, saved elements will use 'string' instead of 'real' with an element, and warnings will be issued. Definition at line 167 of file plistSpecialty.h. Referenced by getPedantic(), saveXML(), and setPedantic().
Specifies what format we should save in. Definition at line 161 of file plistSpecialty.h. Referenced by get(), getFormat(), saveXML(), and setFormat(). The documentation for this class was generated from the following files: |
Tekkotsu v5.1CVS |
Generated Mon May 9 04:59:25 2016 by Doxygen 1.6.3 |