VISR  0.12.0
Versatile Interactive Scene Renderer
visr::objectmodel::PointSourceExtentParser Class Reference

#include <point_source_extent_parser.hpp>

Inheritance diagram for visr::objectmodel::PointSourceExtentParser:
visr::objectmodel::PointSourceWithDiffusenessParser visr::objectmodel::PointSourceParser visr::objectmodel::ObjectParser

Public Member Functions

virtual void parse (boost::property_tree::ptree const &tree, Object &src) const
 
virtual void write (Object const &obj, boost::property_tree::ptree &tree) const
 
- Public Member Functions inherited from visr::objectmodel::ObjectParser
 ObjectParser ()
 
virtual ~ObjectParser ()
 

Additional Inherited Members

- Static Protected Member Functions inherited from visr::objectmodel::PointSourceParser
static void parsePosition (boost::property_tree::ptree const &posTree, Object::Coordinate &x, Object::Coordinate &y, Object::Coordinate &z)
 

Member Function Documentation

◆ parse()

void visr::objectmodel::PointSourceExtentParser::parse ( boost::property_tree::ptree const &  tree,
Object obj 
) const
virtual

Parse an object from a property node.

Parameters
treeThe property tree node containing the object information.
[out]objThe object to which the parsed values are set.
Note
: This function is marked as pure virtual, thus making the class abstract (non-instantiable). However, it has an implementation which performs sensible work.

Reimplemented from visr::objectmodel::PointSourceWithDiffusenessParser.

◆ write()

void visr::objectmodel::PointSourceExtentParser::write ( Object const &  obj,
boost::property_tree::ptree &  tree 
) const
virtual

Serialize an object itno a property tree node.

Parameters
objThe audio object to be serialised.
[out]treeThe property tree subtree to where the object information is written to.
Note
This method is pure virtual, because his class does not correspond to an instantiable audio object type. Nonetheless, it has an implementation which is called by derived classes.

Reimplemented from visr::objectmodel::PointSourceWithDiffusenessParser.


The documentation for this class was generated from the following files: