Slicer  4.11
Slicer is a multi-platform, free and open source software package for visualization and medical image computing

Table of Contents

Naming convention

Get, New, Create, CreateAndAdd

Accessors in VTK/MRML are typically in the format GetXXX() where XXX is the name of an existing vtkObject that the class instance owns (directly or indirectly). However, it happens that sometimes the vtkObject doesn't exist and the method instantiates an object without registering it. In that case, the returned object has a reference count of 1 and the caller is responsible for dereferencing (call Delete() on) the returned object. Here is the different naming conventions for such accessors: