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:
@@ -137,6 +137,16 @@ Base::BoundBox3d PropertyPartShape::getBoundingBox() const
|
||||
return box;
|
||||
}
|
||||
|
||||
void PropertyPartShape::setTransform(const Base::Matrix4D &rclTrf)
|
||||
{
|
||||
_Shape.setTransform(rclTrf);
|
||||
}
|
||||
|
||||
Base::Matrix4D PropertyPartShape::getTransform() const
|
||||
{
|
||||
return _Shape.getTransform();
|
||||
}
|
||||
|
||||
void PropertyPartShape::transformGeometry(const Base::Matrix4D &rclTrf)
|
||||
{
|
||||
aboutToSetValue();
|
||||
|
||||
Reference in New Issue
Block a user