MCPcopy Create free account
hub / github.com/FreeCAD/FreeCAD / getPathValue

Method getPathValue

src/App/PropertyGeo.cpp:193–204  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

191}
192
193const boost::any PropertyVector::getPathValue(const ObjectIdentifier& path) const
194{
195 Base::Unit unit = getUnit();
196 if (unit != Unit::One) {
197 std::string p = path.getSubPathStr();
198 if (p == ".x" || p == ".y" || p == ".z") {
199 // Convert double to quantity
200 return Base::Quantity(boost::any_cast<double>(Property::getPathValue(path)), unit);
201 }
202 }
203 return Property::getPathValue(path);
204}
205
206bool PropertyVector::getPyPathValue(const ObjectIdentifier& path, Py::Object& res) const
207{

Callers

nothing calls this directly

Calls 8

getPathValueFunction · 0.85
toDegreesFunction · 0.85
getSubPathStrMethod · 0.80
getUnitFunction · 0.70
QuantityClass · 0.70
getRotationMethod · 0.45
getRawValueMethod · 0.45
getYawPitchRollMethod · 0.45

Tested by

no test coverage detected