Go to Google Code Home
Google SketchUp SkpWriter C++ API Documentation (Labs)

Public Member Functions

atlast::sketchup::ISketchUpAngleFormatter Class Reference

A utility class that helps with formatting angles. More...

#include <iangleformatter.h>

Inheritance diagram for atlast::sketchup::ISketchUpAngleFormatter:
atlast::sketchup::ISketchUpObject

List of all members.

Public Member Functions

virtual AtLastUstring Format (double angle) const =0
 Formats the given value into the current angle format.
virtual bool Parse (LPCWSTR strValue, double *pVal) const =0
 Parses the given string representation of an angle, putting the result in the given double value.

Detailed Description

A utility class that helps with formatting angles.


Member Function Documentation

virtual AtLastUstring atlast::sketchup::ISketchUpAngleFormatter::Format ( double  angle  )  const [pure virtual]

Formats the given value into the current angle format.

Parameters:
angle The angle in radians normalized between 0 and +/- 2PI.
Returns:
The formatted angle.
virtual bool atlast::sketchup::ISketchUpAngleFormatter::Parse ( LPCWSTR  strValue,
double *  pVal 
) const [pure virtual]

Parses the given string representation of an angle, putting the result in the given double value.

This method will attempt to parse the given string which should represent an angle. The result goes in the given double value if not NULL.

Parameters:
strValue The string representation to be parsed.
pVal The optional parameter that will be populated with the parsed value if not NULL and if the strValue parameter is valid.
Returns:
true iff the value could be parsed as an angle.

©2010 Google - Google Home - About Google