37 #include <dtkCoreSupport/dtkAbstractData.h>
38 #include <dtkCoreSupport/dtkGlobal.h>
63 class axlInspectorObjectPrivate
73 this->setAttribute(Qt::WA_MacShowFocusRect,
false);
74 this->setFrameShape(QFrame::NoFrame);
75 this->setWidgetResizable(
true);
89 widget->setData(data);
90 this->setWidget(widget);
91 connect(widget, SIGNAL(
update()),
this, SIGNAL(
update()));
99 widget->setAttribute(Qt::WA_DeleteOnClose);
101 else if(
axlDataDynamic *dataDynamic = dynamic_cast<axlDataDynamic *>(data)) {
104 this->setWidget(widget);
105 connect(widget, SIGNAL(
update()),
this, SIGNAL(
update()));
112 widget->setAttribute(Qt::WA_DeleteOnClose);
117 this->setWidget(widget);
118 connect(widget, SIGNAL(
update()),
this, SIGNAL(
update()));
123 widget->setAttribute(Qt::WA_DeleteOnClose);
126 else if(
axlCone *cone = dynamic_cast<axlCone *>(data)) {
129 this->setWidget(widget);
130 connect(widget, SIGNAL(
update()),
this, SIGNAL(
update()));
137 widget->setAttribute(Qt::WA_DeleteOnClose);
140 else if(
axlCylinder *cylinder = dynamic_cast<axlCylinder *>(data)) {
143 this->setWidget(widget);
144 connect(widget, SIGNAL(
update()),
this, SIGNAL(
update()));
151 widget->setAttribute(Qt::WA_DeleteOnClose);
154 else if(
axlTorus *torus = dynamic_cast<axlTorus *>(data)) {
157 this->setWidget(widget);
158 connect(widget, SIGNAL(
update()),
this, SIGNAL(
update()));
164 widget->setAttribute(Qt::WA_DeleteOnClose);
167 else if(
axlCircleArc *arc = dynamic_cast<axlCircleArc *>(data)) {
170 this->setWidget(widget);
171 connect(widget, SIGNAL(
update()),
this, SIGNAL(
update()));
177 widget->setAttribute(Qt::WA_DeleteOnClose);
180 else if(
axlEllipsoid *ellipsoid = dynamic_cast<axlEllipsoid *>(data)) {
183 this->setWidget(widget);
184 connect(widget, SIGNAL(
update()),
this, SIGNAL(
update()));
191 widget->setAttribute(Qt::WA_DeleteOnClose);
194 else if(
axlLine *line = dynamic_cast<axlLine *>(data)) {
197 this->setWidget(widget);
198 connect(widget, SIGNAL(
update()),
this, SIGNAL(
update()));
205 widget->setAttribute(Qt::WA_DeleteOnClose);
208 else if(
axlPlane *plane = dynamic_cast<axlPlane *>(data)) {
211 this->setWidget(widget);
212 connect(widget, SIGNAL(
update()),
this, SIGNAL(
update()));
219 widget->setAttribute(Qt::WA_DeleteOnClose);
222 else if(
axlPoint *point = dynamic_cast<axlPoint *>(data)) {
225 this->setWidget(widget);
226 connect(widget, SIGNAL(
update()),
this, SIGNAL(
update()));
233 widget->setAttribute(Qt::WA_DeleteOnClose);
236 else if(
axlSphere *pointSet = dynamic_cast<axlSphere *>(data)) {
239 this->setWidget(widget);
241 connect(widget, SIGNAL(
update()),
this, SIGNAL(
update()));
247 widget->setAttribute(Qt::WA_DeleteOnClose);
254 this->setWidget(widget);
255 connect(widget, SIGNAL(
update()),
this, SIGNAL(
update()));
263 widget->setAttribute(Qt::WA_DeleteOnClose);
282 if(dataSet.size() == 0)
285 this->widget()->close();
287 if(dataSet.size() == 1)
291 else if(dataSet.size() > 1)
294 connect(widget, SIGNAL(
update()),
this, SIGNAL(
update()));
303 this->setWidget(widget);
304 widget->setAttribute(Qt::WA_DeleteOnClose);
312 this->widget()->close();
317 d->controller = controller;
void tubeFilterRadiusChanged(dtkAbstractData *, double)
Class axlPoint defines 3D points.
Class axlLine defines 3D lines.
void modifiedProperty(dtkAbstractData *, int)
void setData(axlCone *cone)
void setData(axlSphere *point)
void setData(axlPlane *pointt)
Class axlCylinder defines 3D cylinders.
Class axlPlane defines 3D planes.
void setData(QList< dtkAbstractData * > dataSet)
void onDataSetRemoved(QList< dtkAbstractData * > dataSetRemoved)
void setController(axlInspectorObjectController *controller)
void setData(axlAbstractData *data)
axlInspectorObject(QWidget *parent=0)
void setData(axlPoint *point)
static axlInspectorObjectFactory * instance(void)
Class axlDataDynamic defines a dynamic object.
void dataChangedByGeometry(dtkAbstractData *data)
void setData(axlTorus *torus)
Class axlSphere defines 3D spheres.
void interpolationChanded(dtkAbstractData *data, int interpolation)
void setData(axlAbstractDataComposite *data)
void setData(axlCircleArc *arc)
void onDataSetSelected(QList< dtkAbstractData * > dataSet)
void setData(axlDataDynamic *dynamicData)
Class axlCone defines 3D cones.
void onDataSelected(dtkAbstractData *data)
void setData(axlCylinder *cylinder)
~axlInspectorObject(void)
Class axlEllipsoid defines 3D ellipsoids.
void setData(axlLine *point)
Class axlAbstractData defines an API for all type of axel data.
void setData(axlEllipsoid *point)