ctkTestWrappedQListOfVTKObject.h 538 B

123456789101112131415161718192021222324252627282930
  1. #ifndef __ctkTestWrappedQListOfVTKObject_h
  2. #define __ctkTestWrappedQListOfVTKObject_h
  3. // Qt includes
  4. #include <QObject>
  5. #include <QList>
  6. // VTK includes
  7. #include <vtkTable.h>
  8. class ctkTestWrappedQListOfVTKObject : public QObject
  9. {
  10. Q_OBJECT
  11. public:
  12. ctkTestWrappedQListOfVTKObject(QObject * newParent = 0) : QObject(newParent)
  13. {
  14. }
  15. /// Example ot slot accepting a VTK object as parameter
  16. Q_INVOKABLE int numberOfElementInList(const QList<vtkTable*>& listOfTable)
  17. {
  18. return listOfTable.count();
  19. }
  20. };
  21. #endif