26 class axlParameterSpaceViewPrivate
34 this->setFrameShape(QFrame::NoFrame);
48 class axlParameterSpaceScenePrivate
70 this->setBackgroundBrush(QColor(230, 230, 230));
82 this->setSceneRect(0, 0, size.width(), size.height());
100 d->max_range_w = max;
105 double x =
event->scenePos().x();
106 double y =
event->scenePos().y();
108 double u = d->min_range_u + x/this->width() * (d->max_range_u - d->min_range_u);
109 double v = d->min_range_v + y/this->height() * (d->max_range_v - d->min_range_v);
111 if(u > d->max_range_u)
114 if(u < d->min_range_u)
117 if(v > d->max_range_v)
120 if(v < d->min_range_v)
130 double x =
event->scenePos().x();
131 double y =
event->scenePos().y();
133 double u = d->min_range_u + x/this->width() * (d->max_range_u - d->min_range_u);
134 double v = d->min_range_v + y/this->height() * (d->max_range_v - d->min_range_v);
142 double x =
event->scenePos().x();
143 double y =
event->scenePos().y();
145 double u = d->min_range_u + x/this->width() * (d->max_range_u - d->min_range_u);
146 double v = d->min_range_v + y/this->height() * (d->max_range_v - d->min_range_v);
156 class axlParameterSpacePrivate
168 d->view->setScene(d->scene);
170 QVBoxLayout *layout =
new QVBoxLayout(
this);
171 layout->setContentsMargins(0, 0, 0, 0);
172 layout->setSpacing(0);
173 layout->addWidget(d->view);
178 connect(d->scene, SIGNAL(
update()),
this, SIGNAL(
update()));
191 d->scene->setRangeU(min, max);
196 d->scene->setRangeV(min, max);
201 d->scene->setRangeW(min, max);
206 d->scene->resize(event->size());
axlParameterSpaceScene(QObject *parent=0)
void showCurrentPoint(double u, double v)
void setRangeW(double min, double max)
axlParameterSpace(QWidget *parent=0)
void setRangeU(double min, double max)
void hideCurrentPoint(double u, double v)
void hideCurrentPoint(double u, double v)
void mouseMoveEvent(QGraphicsSceneMouseEvent *mouseEvent)
void setRangeV(double min, double max)
~axlParameterSpaceScene(void)
void setRangeW(double min, double max)
~axlParameterSpaceView(void)
void setRangeV(double min, double max)
axlParameterSpaceView(QWidget *parent=0)
void moveCurrentPoint(double u, double v)
void showCurrentPoint(double u, double v)
void setRangeU(double min, double max)
void mouseReleaseEvent(QGraphicsSceneMouseEvent *mouseEvent)
void mousePressEvent(QGraphicsSceneMouseEvent *mouseEvent)
void moveCurrentPoint(double u, double v)
void resizeEvent(QResizeEvent *event)