#include <point_source_parser.hpp>
◆ parse()
void visr::objectmodel::PointSourceParser::parse |
( |
boost::property_tree::ptree const & |
tree, |
|
|
Object & |
obj |
|
) |
| const |
|
virtual |
◆ parsePosition()
Parse the content of a "position" node. Supports Cartesian and spherical coordinates as well as default values for the z coordinate and the radius, respectively. This is separated into a method because derived classes potentially need this functionality in other places.
- Parameters
-
posTree | The property tree containing the coordinates (typically named "position") |
x | [out] Reference to hold the parsed x coordinate. |
y | [out] Reference to hold the parsed y coordinate. |
z | [out] Reference to hold the parsed z coordinate. |
- Todo:
- Consider making this a more general facility.
◆ write()
void visr::objectmodel::PointSourceParser::write |
( |
Object const & |
obj, |
|
|
boost::property_tree::ptree & |
tree |
|
) |
| const |
|
virtual |
The documentation for this class was generated from the following files: