35 mRoot->initializeVisualizer(mSuperior);
38 void OcmModel::save(
double pWorkspaceVolume, boost::property_tree::ptree& pPt)
41 pPt.add(
"slots.<xmlattr>.number",
mRoot->getNumberOfNodes());
52 boost::property_tree::ptree subtree;
55 subtree.add(
"<xmlattr>.volume", pWorkspaceVolume);
59 child->saveShape(subtree);
62 pPt.add_child(
"shape.root", subtree);
68 boost::property_tree::ptree subtree;
74 pPt.add_child(
"appearance", subtree);
80 boost::property_tree::ptree subtree;
86 pPt.add_child(
"occlusion", subtree);
91 return mRoot->getNumberOfNodes();
void initializeVisualizer(boost::shared_ptr< Visualization::ProbabilisticPrimarySceneObjectVisualization > mSuperior)
void saveAppearance(boost::property_tree::ptree &pPt)
boost::shared_ptr< MappedProbabilityTable > mAppearanceTable
void saveOcclusion(boost::property_tree::ptree &pPt)
OcmModel(const boost::shared_ptr< SceneModel::TreeNode > pRoot)
boost::shared_ptr< ProbabilityTable > mOcclusionTable
void saveShape(double pWorkspaceVolume, boost::property_tree::ptree &pPt)
void save(double pWorkspaceVolume, boost::property_tree::ptree &pPt)
boost::shared_ptr< OcmTree > mRoot
unsigned int getNumberOfSlots()