ctkVTKRenderViewPlugin.cpp

Go to the documentation of this file.
00001 /*=========================================================================
00002 
00003   Library:   CTK
00004  
00005   Copyright (c) 2010  Kitware Inc.
00006 
00007   Licensed under the Apache License, Version 2.0 (the "License");
00008   you may not use this file except in compliance with the License.
00009   You may obtain a copy of the License at
00010 
00011       http://www.commontk.org/LICENSE
00012 
00013   Unless required by applicable law or agreed to in writing, software
00014   distributed under the License is distributed on an "AS IS" BASIS,
00015   WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
00016   See the License for the specific language governing permissions and
00017   limitations under the License.
00018  
00019 =========================================================================*/
00020 
00021 // CTK includes
00022 #include "ctkVTKRenderViewPlugin.h"
00023 #include "ctkVTKRenderView.h"
00024 
00025 //-----------------------------------------------------------------------------
00026 ctkVTKRenderViewPlugin::ctkVTKRenderViewPlugin(QObject *_parent):QObject(_parent)
00027 {
00028 }
00029 
00030 //-----------------------------------------------------------------------------
00031 QWidget *ctkVTKRenderViewPlugin::createWidget(QWidget *_parent)
00032 {
00033   ctkVTKRenderView* _widget = new ctkVTKRenderView(_parent);
00034   return _widget;
00035 }
00036 
00037 //-----------------------------------------------------------------------------
00038 QString ctkVTKRenderViewPlugin::domXml() const
00039 {
00040   return "<widget class=\"ctkVTKRenderView\" \
00041           name=\"VTKRenderView\">\n"
00042           " <property name=\"geometry\">\n"
00043           "  <rect>\n"
00044           "   <x>0</x>\n"
00045           "   <y>0</y>\n"
00046           "   <width>200</width>\n"
00047           "   <height>200</height>\n"
00048           "  </rect>\n"
00049           " </property>\n"
00050           "</widget>\n";
00051 }
00052 
00053 //-----------------------------------------------------------------------------
00054 QString ctkVTKRenderViewPlugin::includeFile() const
00055 {
00056   return "ctkVTKRenderView.h";
00057 }
00058 
00059 //-----------------------------------------------------------------------------
00060 bool ctkVTKRenderViewPlugin::isContainer() const
00061 {
00062   return false;
00063 }
00064 
00065 //-----------------------------------------------------------------------------
00066 QString ctkVTKRenderViewPlugin::name() const
00067 {
00068   return "ctkVTKRenderView";
00069 }
 All Classes Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Defines