31 class axlInspectorObjectSceneWidgetFieldPrivate
38 QLineEdit *stats_type_edit;
39 QLineEdit *stats_kind_edit;
40 QLineEdit *stats_supp_edit;
55 d->widgetFieldScalar = NULL;
56 d->widgetFieldVector = NULL;
57 d->widgetFieldTensor = NULL;
59 d->stats_type_edit =
new QLineEdit(
this);
60 d->stats_type_edit->setReadOnly(
true);
62 d->stats_kind_edit =
new QLineEdit(
this);
63 d->stats_kind_edit->setReadOnly(
true);
65 d->stats_supp_edit =
new QLineEdit(
this);
66 d->stats_supp_edit->setReadOnly(
true);
68 QWidget *stats_widget =
new QWidget(
this);
69 stats_widget->setObjectName(
"axlInspectorObjectSceneWidgetFieldStatsForm");
71 QHBoxLayout *stats_layout =
new QHBoxLayout(stats_widget);
73 stats_layout->addWidget(d->stats_type_edit);
74 stats_layout->addWidget (d->stats_kind_edit);
75 stats_layout->addWidget (d->stats_supp_edit);
79 d->layout =
new QVBoxLayout(
this);
80 d->layout->addWidget(
new QLabel(
"Field",
this));
81 d->layout->addWidget(stats_widget);
97 switch (d->field->type()) {
99 d->stats_type_edit->setText(
"Integer");
102 d->stats_type_edit->setText(
"Float");
105 d->stats_type_edit->setText(
"Double");
109 switch (d->field->kind()) {
111 d->stats_kind_edit->setText(
"Scalar");
114 d->stats_kind_edit->setText(
"Vector");
117 d->stats_kind_edit->setText(
"Tensor");
121 switch (d->field->support()) {
123 d->stats_supp_edit->setText(
"Point");
126 d->stats_supp_edit->setText(
"Cell");
129 d->stats_supp_edit->setText(
"Custom");
134 if(d->widgetFieldScalar)
136 disconnect(d->widgetFieldScalar, SIGNAL(displayAsColor()),
this, SLOT(
onDisplayAsColor()));
137 disconnect(d->widgetFieldScalar, SIGNAL(displayAsIso()),
this, SLOT(
onDisplayAsIso()));
140 disconnect(d->widgetFieldScalar, SIGNAL(colRangeMinChanged(
double)),
this, SLOT(
onColRangeMinChanged(
double)));
141 disconnect(d->widgetFieldScalar, SIGNAL(colRangeMaxChanged(
double)),
this, SLOT(
onColRangeMaxChanged(
double)));
143 disconnect(d->widgetFieldScalar, SIGNAL(isoCountChanged(
int)),
this, SLOT(
onIsoCountChanged(
int)));
144 disconnect(d->widgetFieldScalar, SIGNAL(isoRadiusChanged(
double)),
this, SLOT(
onIsoRadiusChanged(
double)));
146 disconnect(d->widgetFieldScalar, SIGNAL(isoRangeMinChanged(
double)),
this, SLOT(
onIsoRangeMinChanged(
double)));
147 disconnect(d->widgetFieldScalar, SIGNAL(isoRangeMaxChanged(
double)),
this, SLOT(
onIsoRangeMaxChanged(
double)));
149 d->layout->removeWidget(d->widgetFieldScalar);
151 delete d->widgetFieldScalar;
152 d->widgetFieldScalar = NULL;
155 if(d->widgetFieldVector)
157 disconnect(d->widgetFieldVector, SIGNAL(displayAsHedge()),
this, SLOT(
onDisplayAsHedge()));
158 disconnect(d->widgetFieldVector, SIGNAL(displayAsGlyph()),
this, SLOT(
onDisplayAsGlyph()));
159 disconnect(d->widgetFieldVector, SIGNAL(displayAsStream()),
this, SLOT(
onDisplayAsStream()));
163 disconnect(d->widgetFieldVector, SIGNAL(glyphScaleValueChanged(
double)),
this, SLOT(
onGlyphScaleValueChanged(
double)));
169 d->layout->removeWidget(d->widgetFieldVector);
170 delete d->widgetFieldVector;
171 d->widgetFieldVector = NULL;
174 if(d->widgetFieldTensor)
176 d->layout->removeWidget(d->widgetFieldTensor);
178 delete d->widgetFieldTensor;
179 d->widgetFieldTensor = NULL;
186 d->widgetFieldScalar->setField(d->field);
187 d->widgetFieldScalar->setView(d->view);
190 d->layout->addWidget(d->widgetFieldScalar);
191 d->layout->addStretch(1);
193 connect(d->widgetFieldScalar, SIGNAL(displayAsColor()),
this, SLOT(
onDisplayAsColor()));
194 connect(d->widgetFieldScalar, SIGNAL(displayAsIso()),
this, SLOT(
onDisplayAsIso()));
198 connect(d->widgetFieldScalar, SIGNAL(colRangeMinChanged(
double)),
this, SLOT(
onColRangeMinChanged(
double)));
199 connect(d->widgetFieldScalar, SIGNAL(colRangeMaxChanged(
double)),
this, SLOT(
onColRangeMaxChanged(
double)));
201 connect(d->widgetFieldScalar, SIGNAL(isoCountChanged(
int)),
this, SLOT(
onIsoCountChanged(
int)));
202 connect(d->widgetFieldScalar, SIGNAL(isoRadiusChanged(
double)),
this, SLOT(
onIsoRadiusChanged(
double)));
203 connect(d->widgetFieldScalar, SIGNAL(isoRangeMinChanged(
double)),
this, SLOT(
onIsoRangeMinChanged(
double)));
204 connect(d->widgetFieldScalar, SIGNAL(isoRangeMaxChanged(
double)),
this, SLOT(
onIsoRangeMaxChanged(
double)));
211 d->widgetFieldVector->setField(d->field);
212 d->widgetFieldVector->setView(d->view);
214 d->layout->addWidget(d->widgetFieldVector);
215 d->layout->addStretch(1);
217 connect(d->widgetFieldVector, SIGNAL(displayAsHedge()),
this, SLOT(
onDisplayAsHedge()));
218 connect(d->widgetFieldVector, SIGNAL(displayAsGlyph()),
this, SLOT(
onDisplayAsGlyph()));
219 connect(d->widgetFieldVector, SIGNAL(displayAsStream()),
this, SLOT(
onDisplayAsStream()));
222 connect(d->widgetFieldVector, SIGNAL(glyphScaleValueChanged(
double)),
this, SLOT(
onGlyphScaleValueChanged(
double)));
232 d->widgetFieldTensor->setField(d->field);
234 d->layout->addWidget(d->widgetFieldTensor);
235 d->layout->addStretch(1);
241 d->actorField = actorField;
256 actor->displayAsNoneScalar();
269 actor->displayAsColor();
281 actor->displayAsIso();
292 actor->displayAsNoneVector();
304 actor->displayAsHedge();
315 actor->displayAsGlyph();
326 actor->displayAsStream();
337 actor->setIsoCount(count);
348 actor->onIsoRadiusChanged(radius);
359 actor->setColRangeMin(min);
370 actor->setColRangeMax(max);
381 actor->setIsoRangeMin(min);
392 actor->setIsoRangeMax(max);
403 actor->setGlyphScale(scale);
414 actor->setStreamRadius(radius);
425 actor->setStreamPropagation(propagation);
436 actor->setStreamDirection(direction);
Class axlAbstractField defines an API for arrays of numeric data.