Graphics Reference
In-Depth Information
Just as in Python, C++ classes
inherit
the methods defined in their superclass. Fortunately,
QGIS doesn't have an extensive class hierarchy, so most of the classes don't have a super-
class. However, don't forget to check for a superclass if you can't find the method you're
looking for in the documentation for the class itself.
Finally, be aware that C++ supports the concept of
method overloading
. A single method
can be defined more than once, where each version accepts a different set of parameters.
For example, take a look at the constructor for the
QgsRectangle
class—you will see
that there are four different versions of this method.
The first version accepts the four coordinates as floating point numbers: