SMILX  1.01
milxQt_RENAMED_Plugin.cpp
1 /*=========================================================================
2  The Software is copyright (c) Commonwealth Scientific and Industrial Research Organisation (CSIRO)
3  ABN 41 687 119 230.
4  All rights reserved.
5 
6  Licensed under the CSIRO BSD 3-Clause License
7  You may not use this file except in compliance with the License.
8  You may obtain a copy of the License in the file LICENSE.md or at
9 
10  https://stash.csiro.au/projects/SMILI/repos/smili/browse/license.txt
11 
12  Unless required by applicable law or agreed to in writing, software
13  distributed under the License is distributed on an "AS IS" BASIS,
14  WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
15  See the License for the specific language governing permissions and
16  limitations under the License.
17 =========================================================================*/
18 #include "milxQt_RENAMED_Plugin.h"
19 
20 #include <qplugin.h>
21 
23 {
25  //~ MainWindow = qobject_cast<milxQtMain *>(theParent);
26 
27  //~ threaded = false;
28  //~ dockable = false;
29  //~ consoleWindow = false;
30  //~ extension = true;
31  pluginName = "_RENAMED_";
32  //~ dataName = "";
33 
34  //~ createConnections();
35 }
36 
37 milxQt_RENAMED_Plugin::~milxQt_RENAMED_Plugin()
38 {
39  if(isRunning() && threaded)
40  quit();
41  cout << "_RENAMED_ Plugin Destroyed." << endl;
42 }
43 
45 {
46  return pluginName;
47 }
48 
50 {
51  QString openPythonExt = "";
52 
53  return openPythonExt;
54 }
55 
57 {
58  QStringList exts;
59 
60  return exts;
61 }
62 
64 {
65  QStringList exts;
66 
67  return exts;
68 }
69 
71 {
72  QString savePythonExt = "";
73 
74  return savePythonExt;
75 }
76 
77 void milxQt_RENAMED_Plugin::SetInputCollection(vtkPolyDataCollection* collection, QStringList &filenames)
78 {
79 
80 }
81 
82 void milxQt_RENAMED_Plugin::open(QString filename)
83 {
84 
85 }
86 
87 void milxQt_RENAMED_Plugin::save(QString filename)
88 {
89 
90 }
91 
93 {
94  return NULL;
95 } //No image result
96 
98 {
99  //~ denoiseModel = new milxQt_RENAMED_Model;
100 
101  return NULL;
102  //~ return denoiseModel;
103 } //No image result
104 
106 {
107  return NULL;
108 } //No image result
109 
111 {
112  return NULL;
113 } //No Dock result
114 
116 {
117  //~ if(pluginWindow(window) == 0)
118  return false;
119  //~ else
120  //~ return true;
121 }
122 
123 //~ milxQtDeNoiseModel* milxQtDeNoisePlugin::pluginWindow(QWidget *window)
124 //~ {
125  //~ if(window)
126  //~ return qobject_cast<milxQtDeNoiseModel *>(window);
127  //~ return 0;
128 //~ }
129 
131 {
132  //~ if(!MainWindow->isActiveModel())
133  //~ return;
134 
135  //~ milxQtModel *currentWin = MainWindow->activeModel();
136  //~ milxQtDeNoiseModel *denoiseModel = new milxQtDeNoiseModel(MainWindow); //hierarchical deletion
137  //~ denoiseModel->setName(currentWin->getName());
138  //~ denoiseModel->SetInput(currentWin->GetOutput());
139  //~ denoiseModel->generateModel();
140 
141  //~ MainWindow->display(denoiseModel);
142 }
143 
144 //~ void milxQt_RENAMED_Plugin::run()
145 //~ {
146  //~ QMutexLocker locker(&mutex); //Lock memory
147 
148  //~ ///Execute own thread work here
149 
150  //~ //exec();
151 //~ }
152 
153 //~ void milxQt_RENAMED_Plugin::createConnections()
154 //~ {
155  //~ //QObject::connect(denoiseAct, SIGNAL(triggered(bool)), denoiseModel, SLOT(denoise()));
156 //~ }
157 
158 Q_EXPORT_PLUGIN2(_MYPLUGINCLASS_, milxQt_RENAMED_PluginFactory);
bool threaded
Threaded plugin?
virtual QString openFileSupport()
Get the file support string for opening (extension wildcard list). [Implement this in your plugin]...
virtual QString name()
Get the Name of the plugin. [Implement this in your plugin].
This class represents the MILX Qt Render Window Display object using QVTK.
This class represents the MILX Qt Image Display object using VTK.
Definition: milxQtImage.h:118
virtual bool isPluginWindow(QWidget *window)
Is the window provided a plugin generated window? In this case a milxQtShapeModel window...
virtual QStringList openExtensions()
Get a list of supported file format extensions. [Implement this in your plugin].
virtual QDockWidget * dockWidget()
Return the dock widget (if one is provided by plugin). [Implement this in your plugin].
virtual milxQtImage * imageResult()
Get the image result. The result can then be displayed in milxQtMain etc.[Implement this in your plug...
virtual void loadExtension()
Load the extension. [Implement this in your plugin].
This class represents the MILX Qt Model/Mesh Display object using VTK.
Definition: milxQtModel.h:115
virtual milxQtModel * modelResult()
Get the model result. The result can then be displayed in milxQtMain etc. [Implement this in your plu...
virtual QString saveFileSupport()
Get the file support string for saving (extension wildcard list). [Implement this in your plugin]...
virtual void save(QString filename)
Save the result as a file using the plugin. [Implement this in your plugin].
The interface for any plugins that can be made for milxQtMain.
virtual void open(QString filename)
Open the file using the plugin. [Implement this in your plugin].
virtual QStringList saveExtensions()
Get a list of supported file format extensions. [Implement this in your plugin].
milxQt_RENAMED_Plugin(QObject *theParent=0)
Default destructor.
virtual void SetInputCollection(vtkPolyDataCollection *collection, QStringList &filenames)
Pass a collection to internal plugin class. [Implement this in your plugin].
virtual milxQtRenderWindow * genericResult()
Get the generic result, which is a milxQtRenderWindow. The result can then be displayed in milxQtMain...