ctkDICOMObjectViewer.cpp 698 B

12345678910111213141516171819202122232425262728293031323334
  1. #include <iostream>
  2. #include "ctkDICOMObjectViewer.h"
  3. #include "ctkDICOMDatasetViewerWidget.h"
  4. /**
  5. *
  6. */
  7. ctkDICOMObjectViewer::ctkDICOMObjectViewer( QWidget* _parent,
  8. const char* _name, bool _modal,
  9. Qt::WFlags _fl )
  10. :QDialog(_parent)
  11. {
  12. setupUi(this);
  13. }
  14. /**
  15. * Destroys the object and frees any allocated resources
  16. */
  17. ctkDICOMObjectViewer::~ctkDICOMObjectViewer()
  18. {
  19. }
  20. void ctkDICOMObjectViewer::SetInputImage( const QImage * image )
  21. {
  22. this->OpenGlWindow->show();
  23. this->OpenGlWindow->addImage( image );
  24. std::cout << "Adding image height = " << image->height() << std::endl;
  25. std::cout << "Adding image width = " << image->width() << std::endl;
  26. this->OpenGlWindow->update();
  27. }