Hi Hugo.
Thank you for your response. Actually, I am not having an error, I am just figuring out how to implement the following XML in C++, especially this part
<DataDisplay pointData=”@../dist.distance” />
<EvalPointsDistance name=”dist” object1=”@/mesh_bed/MS” object2=”@.” listening=”true” period=”0.05″ draw=”true” />
<Node name=”data”>
<DataDisplay pointData=”@../dist.distance” />
<OglColorMap colorScheme=”Blue to Red” />
<IdentityMapping input=”@../.” output=”@.”/>
</Node>
This is what I have:
valPointsDistance3::SPtr bed_EvalPointsDistance = addNew<EvalPointsDistance3>(bed);
bed_EvalPointsDistance->setName(“dist”);
bed_EvalPointsDistance->setPeriod(0.05);
bed_EvalPointsDistance->setPathToMS1(“@../mesh_bed/.”);
bed_EvalPointsDistance->setPathToMS2(“@.”);
Node::SPtr bed_data = bed->createChild(“data”);
DataDisplay::SPtr bed_data_DataDisplay = addNew<DataDisplay>(bed_data);
OglColorMap::SPtr bed_data_OglColorMap = addNew<OglColorMap>(bed_data);
bed_data_OglColorMap->f_colorScheme.beginEdit()->setSelectedItem(“Red to Blue”);
IdentityMapping3::SPtr bed_data_IdentityMapping = addNew<IdentityMapping3>(bed_data);
bed_data_IdentityMapping->setPathInputObject(“@../.”);
bed_data_IdentityMapping->setPathOutputObject(“@.”);
Thank you so much!
WARNING
The forum has been moved to GitHub Discussions.
Old topics and replies are kept here as an archive.