Add getCentroid() pure virtual method in IShape