Commit aa1f3ac3 authored by WINTZ Julien's avatar WINTZ Julien

API access.

parent 71753a63
......@@ -277,7 +277,8 @@ void dtkVisualizationDecoratorVolume::setColorMap(const QMap<double, QColor>& ne
double min = range[0];
double max = range[1];
double mid = (min + max) / 2.0;
qDebug() << min << max << mid ;
qDebug() << Q_FUNC_INFO;
d->volume_property->SetColor(d_func()->color_function);
......@@ -289,11 +290,13 @@ void dtkVisualizationDecoratorVolume::setColorMap(const QMap<double, QColor>& ne
d->volume_property->Modified();
d->mapper->Modified();
d->volume->Update();
// d->volume->Update();
}
void dtkVisualizationDecoratorVolume::setAlphaMap(const QMap<double, double>& map)
{
qDebug() << Q_FUNC_INFO;
d->opacity_transfer_function->RemoveAllPoints();
foreach(double value, map.keys()) {
......@@ -305,7 +308,7 @@ void dtkVisualizationDecoratorVolume::setAlphaMap(const QMap<double, double>& ma
d->opacity_transfer_function->Modified();
d->volume_property->Modified();
d->mapper->Modified();
d->volume->Update();
// d->volume->Update();
}
// /////////////////////////////////////////////////////////////////////////////
......
......@@ -31,7 +31,7 @@ public:
void setCanvas(dtkVisualizationCanvas *) override;
void unsetCanvas(void) override;
protected:
public:
bool setCurrentFieldName(const QString&) override;
public:
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment