Commit 0f08b399 authored by Christian Schulte zu Berge's avatar Christian Schulte zu Berge
Browse files

Two small updates:

* SliceExtractor FitToWindow property defaults to true to mimic old behavior per default
* PointPredicateRenderArea renders y axis label
parent 6aaec296
......@@ -87,6 +87,12 @@ namespace campvis {
painter.drawText(2, MARGIN_TOP + 5, tr("1"));
painter.drawText(2, MARGIN_TOP + hh + 5, tr("0"));
painter.save();
painter.rotate(-90);
QRectF importanceLabelRect(QPointF(-(MARGIN_TOP + hh + 5), 10), QPointF(-(MARGIN_TOP + 5), 2));
painter.drawText(importanceLabelRect, Qt::AlignCenter, tr("Importance"));
painter.restore();
// paint bars
std::vector<AbstractPointPredicate*> preds = _prop->getPredicateHistogram()->getPredicates();
double w = static_cast<double>(hw) / preds.size();
......
......@@ -66,7 +66,7 @@ namespace campvis {
, p_ySliceColor("YSliceColor", "Y Slice Color", tgt::vec4(0.f, 1.f, 0.f, 1.f), tgt::vec4(0.f), tgt::vec4(1.f))
, p_zSliceNumber("ZSliceNumber", "Z Slice Number", 0, 0, 0)
, p_zSliceColor("ZSliceColor", "Z Slice Color", tgt::vec4(0.f, 0.f, 1.f, 1.f), tgt::vec4(0.f), tgt::vec4(1.f))
, p_fitToWindow("FitToWindow", "Fit to Window", false)
, p_fitToWindow("FitToWindow", "Fit to Window", true)
, p_scalingFactor("ScalingFactor", "Scaling Factor", 1.f, 0.f, 10.f, .1f, 2)
, p_offset("Offset", "Offset", tgt::ivec2(0), tgt::ivec2(0), tgt::ivec2(100))
, p_transferFunction("transferFunction", "Transfer Function", new SimpleTransferFunction(256))
......
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