コード例 #1
0
ファイル: labelposition.cpp プロジェクト: tqhien/Quantum-GIS
bool LabelPosition::pruneCallback( LabelPosition *lp, void *ctx )
{
    PointSet *feat = (( PruneCtx* ) ctx )->obstacle;

    if (( feat == lp->feature ) || ( feat->getHoleOf() && feat->getHoleOf() != lp->feature ) )
    {
        return true;
    }

    CostCalculator::addObstacleCostPenalty( lp, feat );

    return true;
}