JNIEXPORT jint JNICALL Java_ch_heigvd_jpal_JPal_getPolyP (JNIEnv *env, jobject obj) { jclass cls = env->GetObjectClass (obj); jfieldID fid = env->GetFieldID (cls, "pal_adr", "J"); Pal *pal = (Pal*) env->GetLongField (obj, fid); return pal->getPolyP(); }
QgsPalLabeling::QgsPalLabeling() : mMapRenderer( NULL ), mPal( NULL ) { // find out engine defaults Pal p; mCandPoint = p.getPointP(); mCandLine = p.getLineP(); mCandPolygon = p.getPolyP(); switch ( p.getSearch() ) { case CHAIN: mSearch = Chain; break; case POPMUSIC_TABU: mSearch = Popmusic_Tabu; break; case POPMUSIC_CHAIN: mSearch = Popmusic_Chain; break; case POPMUSIC_TABU_CHAIN: mSearch = Popmusic_Tabu_Chain; break; case FALP: mSearch = Falp; break; } mShowingCandidates = false; mShowingAllLabels = false; mLabelSearchTree = new QgsLabelSearchTree(); }