Go to the documentation of this file.
28 #ifndef vtkQtDebugLeaksModel_h
29 #define vtkQtDebugLeaksModel_h
31 #include "vtkGUISupportQtModule.h"
32 #include <QStandardItemModel>
48 QList<vtkObjectBase*>
getObjects(
const QString& className);
66 Qt::ItemFlags
flags(
const QModelIndex &
index)
const override;
94 Qt::ItemFlags
flags(
const QModelIndex &
index)
const override;
void registerObject(vtkObjectBase *object)
void addObject(vtkObjectBase *obj)
model class that observes the vtkDebugLeaks singleton
QStandardItemModel * referenceCountModel(const QString &className)
Return an item model that contains only objects with the given class name.
void removeObject(vtkObjectBase *object)
ReferenceCountModel(QObject *p=nullptr)
QString pointerAsString(void *ptr)
QList< vtkObjectBase * > getObjects(const QString &className)
Get the list of objects in the model that have the given class name.
~ReferenceCountModel() override
Qt::ItemFlags flags(const QModelIndex &index) const override
abstract base class for most VTK objects
void processPendingObjects()
void updateReferenceCounts()
void addObject(vtkObjectBase *object)
void removeObject(vtkObjectBase *obj)
~vtkQtDebugLeaksModel() override
Qt::ItemFlags flags(const QModelIndex &index) const override
vtkQtDebugLeaksModel(QObject *p=nullptr)