Developer documentation | Axl-2.5.1

axlVtkViewPlugin.cpp
Go to the documentation of this file.
1 /* axlVtkViewPlugin.cpp ---
2  *
3  * Author: Meriadeg Perrinel
4  * Copyright (C) 2008 - Meriadeg Perrinel, Inria.
5  * Created: Tue Nov 9 16:58:59 2010 (+0100)
6  * Version: $Id$
7  * Last-Updated: Mon Dec 17 15:53:21 2012 (+0100)
8  * By: Julien Wintz
9  * Update #: 22
10  */
11 
12 /* Commentary:
13  *
14  */
15 
16 /* Change log:
17  *
18  */
19 
20 
21 // /////////////////////////////////////////////////////////////////
22 // Generated by dtkPluginGenerator
23 // /////////////////////////////////////////////////////////////////
24 
25 //#include "axlFieldDiscrete.h"
26 //#include "axlFieldDiscreteWriter.h"
27 //#include "axlFieldDiscreteReader.h"
28 
29 #include "axlVtkView.h"
30 #include "axlVtkViewPlugin.h"
31 #include "vtkObjectFactory.h"
32 
33 #include <dtkCoreSupport/dtkAbstractDataFactory.h>
34 #include <dtkCoreSupport/dtkAbstractViewFactory.h>
35 #include <dtkCoreSupport/dtkAbstractProcessFactory.h>
36 //#include "axlInspectorActorFactory.h"
37 
38 #include <axlCore/axlConeCreator.h>
41 #include <axlCore/axlLineCreator.h>
45 
52 
53 
54 #include <dtkLog/dtkLog.h>
55 
56 // /////////////////////////////////////////////////////////////////
57 // axlVtkViewPluginPrivate
58 // /////////////////////////////////////////////////////////////////
59 
60 class axlVtkViewPluginPrivate
61 {
62 public:
63  //axlRendererFactory *axlFact;
64  // Class variables go here.
65 };
66 
67 // /////////////////////////////////////////////////////////////////
68 // axlVtkViewPlugin
69 // /////////////////////////////////////////////////////////////////
70 
71 axlVtkViewPlugin::axlVtkViewPlugin(QObject *parent) : dtkPlugin(parent), d(new axlVtkViewPluginPrivate)
72 {
73  // d->axlFact = axlRendererFactory::New();
74 }
75 
77 {
78  // d->axlFact->Delete();
79  // d->axlFact = NULL;
80  delete d;
81 
82  d = NULL;
83 }
84 
86 {
87  axlVtkViewPlugin::dataFactSingleton = dtkAbstractDataFactory::instance();//dataFactorySingleton();
88  axlVtkViewPlugin::viewFactSingleton = dtkAbstractViewFactory::instance();//viewFactorySingleton();
89  axlVtkViewPlugin::processFactSingleton = dtkAbstractProcessFactory::instance();//processFactorySingleton();
90 // axlVtkViewPlugin::actorFactSingleton = axlInspectorActorFactory::instance();
91 
92  if (!axlVtkView::registered()) {
93  dtkWarn() << "Unable to register axlVtkView type";
94  }
96  dtkWarn() << "Unable to register axlVolumeDiscreteConverter type";
97  }
99  dtkWarn() << "Unable to register axlVolumeDiscreteProcessCreator type";
100  }
102  dtkWarn() << "Unable to register axlVolumeDiscreteEditor type";
103  }
105  dtkWarn() << "Unable to register axlVolumeDiscreteWriter type";
106  }
108  dtkWarn() << "Unable to register axlVolumeDiscreteReader type";
109  }
111  dtkWarn() << "Unable to register axlInspectorObjectVolumeDiscrete type";
112  }
113 
114  return true;
115 }
116 
118 {
119  // vtkObjectFactory::UnRegisterFactory(d->axlFact);
120 
121  return true;
122 }
123 
124 QString axlVtkViewPlugin::name(void) const
125 {
126  return "axlVtkViewPlugin";
127 }
128 
129 QString axlVtkViewPlugin::description(void) const
130 {
131  return "";
132 }
133 
134 QStringList axlVtkViewPlugin::tags(void) const
135 {
136  return QStringList();
137 }
138 
139 QStringList axlVtkViewPlugin::types(void) const
140 {
141  return QStringList() << "axlVtkView";
142 }
143 
144 dtkAbstractDataFactory *axlVtkViewPlugin::dataFactSingleton = NULL;
145 dtkAbstractViewFactory *axlVtkViewPlugin::viewFactSingleton = NULL;
146 dtkAbstractProcessFactory *axlVtkViewPlugin::processFactSingleton=NULL;
147 //axlInspectorActorFactory *axlVtkViewPlugin::actorFactSingleton = NULL;
148 
149 // Q_EXPORT_PLUGIN2(axlVtkViewPlugin, axlVtkViewPlugin)
virtual QString description(void) const
virtual QString name(void) const
virtual QStringList tags(void) const
axlVtkViewPlugin(QObject *parent=0)
virtual bool uninitialize(void)
virtual bool initialize(void)
static dtkAbstractProcessFactory * processFactSingleton
static dtkAbstractViewFactory * viewFactSingleton
virtual QStringList types(void) const
static bool registered(void)
Definition: axlVtkView.cpp:436
static dtkAbstractDataFactory * dataFactSingleton