Developer documentation | Axl-2.5.1

axlInspectorObjectVolumeDiscrete.cpp
Go to the documentation of this file.
1 /* axlInspectorObjectVolumeDiscrete.cpp ---
2  *
3  * Author: Anais Ducoffe
4  * Copyright (C) 2013 - Anais Ducoffe, Inria.
5 
6  */
7 
8 /* Commentary:
9  *
10  */
11 
12 /* Change log:
13  *
14  */
15 
17 #include "axlVolumeDiscrete.h"
18 
21 
22 #include <dtkCoreSupport/dtkAbstractData.h>
23 
24 class axlInspectorObjectVolumeDiscretePrivate
25 {
26 public:
27  axlVolumeDiscrete * volume;
28 
29  // QLabel *labelDimension_x;
30  // QLabel *labelDimension_y;
31  // QLabel *labelDimension_z;
32  // QLabel *equation;
33 };
34 
35 axlInspectorObjectVolumeDiscrete::axlInspectorObjectVolumeDiscrete(QWidget *parent) : axlInspectorObjectInterface(parent), d(new axlInspectorObjectVolumeDiscretePrivate)
36 {
37  d->volume = NULL;
38 
39  // d->labelDimension_x = new QLabel(this);
40  // QHBoxLayout *layoutDimension_x = new QHBoxLayout;
41  // layoutDimension_x->addWidget(new QLabel("X-Dimension",this));
42  // layoutDimension_x->addWidget(d->labelDimension_x);
43 
44  // d->labelDimension_y = new QLabel(this);
45  // QHBoxLayout *layoutDimension_y = new QHBoxLayout;
46  // layoutDimension_y->addWidget(new QLabel("Y-Dimension",this));
47  // layoutDimension_y->addWidget(d->labelDimension_y);
48 
49  // d->labelDimension_z = new QLabel(this);
50  // QHBoxLayout *layoutDimension_z = new QHBoxLayout;
51  // layoutDimension_z->addWidget(new QLabel("Z-Dimension",this));
52  // layoutDimension_z->addWidget(d->labelDimension_z);
53 
54  // d->equation = new QLabel(this);
55  // QHBoxLayout *layoutEquation = new QHBoxLayout;
56  // layoutEquation->addWidget(new QLabel("Equation",this));
57  // layoutEquation->addWidget(d->equation);
58 
59  QVBoxLayout *layout = new QVBoxLayout(this);
60  //layout->setContentsMargins(0, 0, 0, 0);
61  layout->addWidget(new QLabel("axlInspectorObjectVolumeDiscrete", this));
62  // layout->addLayout(layoutDimension_x);
63  // layout->addLayout(layoutDimension_y);
64  // layout->addLayout(layoutDimension_z);
65  // layout->addLayout(layoutEquation);
66 }
67 
69 {
70  delete d;
71 }
72 
73 void axlInspectorObjectVolumeDiscrete::setData(dtkAbstractData *data)
74 {
75  if(axlVolumeDiscrete *volume = dynamic_cast<axlVolumeDiscrete *>(data)){
76  d->volume = volume;
77 
78  //d->equation->setText(d->volume->equation());
79  }
80 }
81 
82 
84 {
85  //qDebug()<<"goSurfaceBSplineDialog::registered()"<<axlInspectorObjectFactory::instance()<<m_objectFactorySingleton;
87 }
88 
90 {
92 }
bool registerInspectorObject(const QString &interface_name, axlInspectorObjectCreator func)
axlInspectorObjectInterface * createaxlVolumeDiscreteDialog(void)
static axlInspectorObjectFactory * instance(void)