Example #1
0
void TransFuncOverlay::onChangeUsePixelCoordinates(){
    if(usePixelCoordinates_.getValue()){
        setPropertyGroupVisible("overlayAbs",true);
        setPropertyGroupVisible("overlayPer",false);
    } else {
        setPropertyGroupVisible("overlayAbs",false);
        setPropertyGroupVisible("overlayPer",true);
    }
}
Example #2
0
void VolumePort::showTextureAccessProperties(bool show) {
    if (isOutport()) {
        LERROR("showTextureAccessProperties(): texture access properties only available for inports.");
    }
    else {
        setPropertyGroupVisible(getID(), show);
    }
}
void CubeMeshProxyGeometry::adjustClipPropertiesVisibility() {
    bool clipEnabled = enableClipping_.get();
    /*clipRight_.setVisible(clipEnabled);
    clipLeft_.setVisible(clipEnabled);
    clipFront_.setVisible(clipEnabled);
    clipBack_.setVisible(clipEnabled);
    clipBottom_.setVisible(clipEnabled);
    clipTop_.setVisible(clipEnabled);
    resetClipPlanes_.setVisible(clipEnabled);*/
    setPropertyGroupVisible("clipping", clipEnabled);
}
void SingleVolumeRaycaster::adjustPropertyVisibilities() {
    bool useLighting = !shadeMode_.isSelected("none");
    setPropertyGroupVisible("lighting", useLighting);

    bool useIsovalue = (compositingMode_.isSelected("iso")  ||
                        compositingMode1_.isSelected("iso") ||
                        compositingMode2_.isSelected("iso")   );
    isoValue_.setVisible(useIsovalue);

    lightAttenuation_.setVisible(applyLightAttenuation_.get());

    texBorderIntensity_.setVisible(!texClampMode_.isSelected("clamp-to-edge"));
}
Example #5
0
void GeometryRenderer::updatePropertyVisibilities() {
    pointSize_.setVisible(polygonMode_.isSelected("point"));
    lineWidth_.setVisible(polygonMode_.isSelected("line"));

    bool lighting = enableLighting_.get();
    setPropertyGroupVisible("lighting", lighting);

    textureMode_.setVisible(mapTexture_.get());

    shaderProp_.setVisible(useShader_.get());
    enableClipping_.setVisible(useShader_.get());
    planeNormal_.setVisible(useShader_.get() && enableClipping_.get());
    planeDistance_.setVisible(useShader_.get() && enableClipping_.get());
}
void SingleVolumeRaycaster::adjustPropertyVisibilities() {
    bool useLighting = !shadeMode_.isSelected("none");
    setPropertyGroupVisible("lighting", useLighting);

    bool useIsovalue = (compositingMode_.isSelected("iso")  ||
                        compositingMode1_.isSelected("iso") ||
                        compositingMode2_.isSelected("iso")   );
    isoValue_.setVisible(useIsovalue);

    lightAttenuation_.setVisible(applyLightAttenuation_.get());

    gammaValue_.setVisible(compositingMode_.isSelected("mida"));
    gammaValue1_.setVisible(compositingMode1_.isSelected("mida"));
    gammaValue2_.setVisible(compositingMode2_.isSelected("mida"));
}
void CubeMeshProxyGeometry::adjustClipPropertiesVisibility() {
    bool clipEnabled = enableClipping_.get();
    setPropertyGroupVisible("clipping", clipEnabled);
}