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