ctkVTKRenderViewPlugin.cpp 1.9 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364
  1. /*=========================================================================
  2. Library: CTK
  3. Copyright (c) Kitware Inc.
  4. All rights reserved.
  5. Distributed under a BSD License. See LICENSE.txt file.
  6. This software is distributed "AS IS" WITHOUT ANY WARRANTY; without even
  7. the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
  8. See the above copyright notice for more information.
  9. =========================================================================*/
  10. // CTK includes
  11. #include "ctkVTKRenderViewPlugin.h"
  12. #include "ctkVTKRenderView.h"
  13. //-----------------------------------------------------------------------------
  14. ctkVTKRenderViewPlugin::ctkVTKRenderViewPlugin(QObject *_parent):QObject(_parent)
  15. {
  16. }
  17. //-----------------------------------------------------------------------------
  18. QWidget *ctkVTKRenderViewPlugin::createWidget(QWidget *_parent)
  19. {
  20. ctkVTKRenderView* _widget = new ctkVTKRenderView(_parent);
  21. return _widget;
  22. }
  23. //-----------------------------------------------------------------------------
  24. QString ctkVTKRenderViewPlugin::domXml() const
  25. {
  26. return "<widget class=\"ctkVTKRenderView\" \
  27. name=\"VTKRenderView\">\n"
  28. " <property name=\"geometry\">\n"
  29. " <rect>\n"
  30. " <x>0</x>\n"
  31. " <y>0</y>\n"
  32. " <width>200</width>\n"
  33. " <height>200</height>\n"
  34. " </rect>\n"
  35. " </property>\n"
  36. "</widget>\n";
  37. }
  38. //-----------------------------------------------------------------------------
  39. QString ctkVTKRenderViewPlugin::includeFile() const
  40. {
  41. return "ctkVTKRenderView.h";
  42. }
  43. //-----------------------------------------------------------------------------
  44. bool ctkVTKRenderViewPlugin::isContainer() const
  45. {
  46. return false;
  47. }
  48. //-----------------------------------------------------------------------------
  49. QString ctkVTKRenderViewPlugin::name() const
  50. {
  51. return "ctkVTKRenderView";
  52. }