App: add pure virtual methods to PropertyGeometry to delegate it to the geometry of sub-classes
Following the law of Demeter add some wrapper methods to PropertyGeometry and implement them in sub-classes. As a side-effect this makes some const_cast obsolete
This commit is contained in:
@@ -68,6 +68,16 @@ const Data::ComplexGeoData* PropertyPointKernel::getComplexData() const
|
||||
return _cPoints;
|
||||
}
|
||||
|
||||
void PropertyPointKernel::setTransform(const Base::Matrix4D& rclTrf)
|
||||
{
|
||||
_cPoints->setTransform(rclTrf);
|
||||
}
|
||||
|
||||
Base::Matrix4D PropertyPointKernel::getTransform() const
|
||||
{
|
||||
return _cPoints->getTransform();
|
||||
}
|
||||
|
||||
Base::BoundBox3d PropertyPointKernel::getBoundingBox() const
|
||||
{
|
||||
return _cPoints->getBoundBox();
|
||||
|
||||
Reference in New Issue
Block a user