ctkVTKVolumePropertyWidgetPlugin.cpp 2.1 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465
  1. /*=========================================================================
  2. Library: CTK
  3. Copyright (c) Kitware Inc.
  4. Licensed under the Apache License, Version 2.0 (the "License");
  5. you may not use this file except in compliance with the License.
  6. You may obtain a copy of the License at
  7. http://www.apache.org/licenses/LICENSE-2.0.txt
  8. Unless required by applicable law or agreed to in writing, software
  9. distributed under the License is distributed on an "AS IS" BASIS,
  10. WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
  11. See the License for the specific language governing permissions and
  12. limitations under the License.
  13. =========================================================================*/
  14. // CTK includes
  15. #include "ctkVTKVolumePropertyWidget.h"
  16. #include "ctkVTKVolumePropertyWidgetPlugin.h"
  17. //-----------------------------------------------------------------------------
  18. ctkVTKVolumePropertyWidgetPlugin
  19. ::ctkVTKVolumePropertyWidgetPlugin(QObject *parentObject)
  20. : QObject(parentObject)
  21. {
  22. }
  23. //-----------------------------------------------------------------------------
  24. QWidget *ctkVTKVolumePropertyWidgetPlugin::createWidget(QWidget *parentWidget)
  25. {
  26. ctkVTKVolumePropertyWidget* newWidget =
  27. new ctkVTKVolumePropertyWidget(parentWidget);
  28. return newWidget;
  29. }
  30. //-----------------------------------------------------------------------------
  31. QString ctkVTKVolumePropertyWidgetPlugin::domXml() const
  32. {
  33. return "<widget class=\"ctkVTKVolumePropertyWidget\" \
  34. name=\"VolumeProperty\">\n"
  35. "</widget>\n";
  36. }
  37. //-----------------------------------------------------------------------------
  38. QString ctkVTKVolumePropertyWidgetPlugin::includeFile() const
  39. {
  40. return "ctkVTKVolumePropertyWidget.h";
  41. }
  42. //-----------------------------------------------------------------------------
  43. bool ctkVTKVolumePropertyWidgetPlugin::isContainer() const
  44. {
  45. return false;
  46. }
  47. //-----------------------------------------------------------------------------
  48. QString ctkVTKVolumePropertyWidgetPlugin::name() const
  49. {
  50. return "ctkVTKVolumePropertyWidget";
  51. }