Developer documentation | Axl-2.5.1

axlAbstractActor.cpp
Go to the documentation of this file.
1 /* axlAbstractActor.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: Tue Nov 9 17:09:38 2010 (+0100)
8  * By: Meriadeg Perrinel
9  * Update #: 19
10  */
11 
12 /* Commentary:
13  *
14  */
15 
16 /* Change log:
17  *
18  */
19 
20 #include "axlAbstractActor.h"
21 
22 #include <dtkCoreSupport/dtkAbstractData.h>
23 #include <dtkCoreSupport/dtkGlobal.h>
24 
25 #include "axlAbstractData.h"
26 
27 #include <QtCore>
28 
29 class axlAbstractActorPrivate
30 {
31 public:
32  axlAbstractActor *parent;
33 
34 public:
35  QString active_scalars;
36 };
37 
38 axlAbstractActor::axlAbstractActor(axlAbstractActor *parent) :QObject(parent), d(new axlAbstractActorPrivate)
39 {
40  d->parent = NULL;
41 }
42 
44 {
45  delete d;
46 
47  d = NULL;
48 }
49 
51 {
52  d->parent = parent;
53 }
54 
55 
56 
58  return QString();
59 }
60 
61 
62 //axlAbstractActor *axlAbstractActor::createActor(dtkAbstractData *data){
63 // Q_UNUSED(data);
64 // DTK_DEFAULT_IMPLEMENTATION;
65 // return NULL;
66 
67 //}
68 
70 {
71  return d->parent;
72 }
73 
75  return NULL;
76 }
77 
79 {
80  DTK_DEFAULT_IMPLEMENTATION;
81 
82  return 0;
83 }
84 
85 void axlAbstractActor::setInteractor(void *interactor)
86 {
87  Q_UNUSED(interactor);
88 }
89 
90 void axlAbstractActor::setDisplay(bool display)
91 {
92  Q_UNUSED(display);
93 }
94 
95 void axlAbstractActor::setData(dtkAbstractData *data)
96 {
97  Q_UNUSED(data);
98 }
99 
101 {
102  Q_UNUSED(show);
103 }
104 
106 {
107  DTK_DEFAULT_IMPLEMENTATION;
108 }
109 
110 void axlAbstractActor::setShader(QString xmlfile)
111 {
112  Q_UNUSED(xmlfile);
113 }
114 
116 {
117  DTK_DEFAULT_IMPLEMENTATION;
118 }
119 
121 {
122  Q_UNUSED(xmlfile);
123 }
124 
125 void axlAbstractActor::setOpacity(double opacity)
126 {
127  Q_UNUSED(opacity);
128 }
129 
130 void axlAbstractActor::setSize(double size)
131 {
132  Q_UNUSED(size);
133 }
134 
135 void axlAbstractActor::setColor(double red, double green, double blue)
136 {
137  Q_UNUSED(red);
138  Q_UNUSED(green);
139  Q_UNUSED(blue);
140 }
141 
142 void axlAbstractActor::setInterpolation(int interpolation)
143 {
144  Q_UNUSED(interpolation);
145 }
146 
148 {
149  DTK_DEFAULT_IMPLEMENTATION;
150 
151  return false;
152 }
153 
155 {
156  DTK_DEFAULT_IMPLEMENTATION;
157 
158  return 0;
159 }
160 
162 {
163  Q_UNUSED(state);
164 }
165 
167 {
168  DTK_DEFAULT_IMPLEMENTATION;
169 }
170 
172 {
173  DTK_DEFAULT_IMPLEMENTATION;
174 }
175 
177 {
178  DTK_DEFAULT_IMPLEMENTATION;
179 }
180 
182 {
183  DTK_DEFAULT_IMPLEMENTATION;
184 }
185 
187 {
188  DTK_DEFAULT_IMPLEMENTATION;
189 }
190 
192 {
193  DTK_DEFAULT_IMPLEMENTATION;
194 }
195 
197 {
198  Q_UNUSED(state);
199 }
200 
202 {
203  DTK_DEFAULT_IMPLEMENTATION;
204 }
205 
207 {
208  axlAbstractData *data = dynamic_cast<axlAbstractData *>(this->data());
209  QColor color = data->color();
210  this->setColor(color.red(), color.green(), color.blue());
211  this->setOpacity(data->opacity());
212  this->setShader(data->shader());
213 // this->setSize(data->size());
214 
215  emit updated();
216 }
217 
218 void axlAbstractActor::showCurrentPoint(double u, double v, dtkAbstractData *data)
219 {
220  Q_UNUSED(data);
221 }
222 
223 void axlAbstractActor::moveCurrentPoint(double u, double v, dtkAbstractData *data)
224 {
225  Q_UNUSED(data);
226 }
227 
228 void axlAbstractActor::hideCurrentPoint(double u, double v, dtkAbstractData *data)
229 {
230  Q_UNUSED(data);
231 }
232 
233 void axlAbstractActor::onSelectBoundaryEdge(int numEdge, int previous, int n){
234 
235  DTK_DEFAULT_IMPLEMENTATION;
236 }
virtual void onUpdateGeometry(void)=0
virtual void hideCurrentPoint(double u, double v, dtkAbstractData *data)
virtual axlMesh * toMesh(void)
virtual void showCurrentPoint(double u, double v, dtkAbstractData *data)
virtual dtkAbstractData * data(void)=0
virtual bool isShowControlPoints(void)
virtual bool isVisible(void)
virtual void showControlPoints(bool show)
virtual void onRemoved(void)
void updated(void)
virtual void setMode(int state)
virtual void setShader(QString xmlfile)
virtual void setMapperCollorArray(void)
virtual void setParent(axlAbstractActor *parent)
virtual void update(void)
virtual void setInterpolation(int interpolation)
virtual void show(void)
virtual axlAbstractActor * parent(void)
virtual void setSize(double size)
virtual void hide(void)
virtual void onModeChanged(int state)
virtual void onUpdateProperty(void)
virtual int getState(void)
virtual void onSamplingChanged(void)
virtual void setOpacity(double opacity)
axlAbstractActor(axlAbstractActor *parent=0)
virtual void setDisplay(bool display)
virtual void moveCurrentPoint(double u, double v, dtkAbstractData *data)
virtual void onControlPointChanged(void)
virtual void onSelectBoundaryEdge(int numEdge, int previous, int n)
virtual void onTubeFilterRadiusChanged(double radius)
virtual void setInteractor(void *interactor)
Class axlAbstractData defines an API for all type of axel data.
virtual void setData(dtkAbstractData *data)
Class axlMesh defines a piecewise-linear 3D object.
Definition: axlMesh.h:41
virtual void setColor(double red, double green, double blue)
virtual ~axlAbstractActor(void)
virtual void setShaderFromString(QString xmlfile)
virtual QString identifier(void)