コード例 #1
0
void ApplyUndefinedValueDefinition::undefinedvalue(double tr)
{
    if (!attribute()->layer())
        return;

    attribute()->layer()->drawer()->setAttribute("undefinedvalue", tr);
    attribute()->layer()->drawer()->unprepare(Ilwis::Geodrawer::DrawerInterface::ptRENDER);
    attribute()->layer()->drawer()->prepare(Ilwis::Geodrawer::DrawerInterface::ptRENDER, IOOptions());
    attribute()->layer()->drawer()->redraw();

}
コード例 #2
0
ファイル: attributeeditor.cpp プロジェクト: ridoo/IlwisCore
void VisualAttributeEditor::attributesChanged(Raw , const QVariantMap& ){
    if ( _visualAttribute->layer()){
        _visualAttribute->layer()->drawer()->unprepare(Ilwis::Geodrawer::DrawerInterface::ptRENDER);
        _visualAttribute->layer()->drawer()->prepare(Ilwis::Geodrawer::DrawerInterface::ptRENDER, IOOptions());
        _visualAttribute->layer()->drawer()->redraw();
    }
}