Merge commit 'refs/remotes/origin/5.1'
[scilab.git] / scilab / modules / renderer / src / jni / DrawableFigureGL.cpp
index ef685df..70ce142 100644 (file)
@@ -136,6 +136,8 @@ voidsetNbSubwinsjintID=NULL;
 voidopenGraphicCanvasID=NULL; 
 voidcloseGraphicCanvasID=NULL; 
 voidsetUseSingleBufferjbooleanID=NULL; 
+jintgetAntialiasingQualityID=NULL; 
+voidsetAntialiasingQualityjintID=NULL; 
 
 
 }
@@ -195,6 +197,8 @@ voidsetNbSubwinsjintID=NULL;
 voidopenGraphicCanvasID=NULL; 
 voidcloseGraphicCanvasID=NULL; 
 voidsetUseSingleBufferjbooleanID=NULL; 
+jintgetAntialiasingQualityID=NULL; 
+voidsetAntialiasingQualityjintID=NULL; 
 
 
 }
@@ -880,4 +884,36 @@ throw GiwsException::JniCallMethodException(curEnv);
 }
 }
 
+int DrawableFigureGL::getAntialiasingQuality (){
+
+JNIEnv * curEnv = getCurrentEnv();
+
+if (jintgetAntialiasingQualityID==NULL) { /* Use the cache Luke */ jintgetAntialiasingQualityID = curEnv->GetMethodID(this->instanceClass, "getAntialiasingQuality", "()I" ) ;
+if (jintgetAntialiasingQualityID == NULL) {
+throw GiwsException::JniMethodNotFoundException(curEnv, "getAntialiasingQuality");
+}
+}
+                        jint res =  (jint) curEnv->CallIntMethod( this->instance, jintgetAntialiasingQualityID );
+                        if (curEnv->ExceptionCheck()) {
+throw GiwsException::JniCallMethodException(curEnv);
+}
+return res;
+
+}
+
+void DrawableFigureGL::setAntialiasingQuality (int quality){
+
+JNIEnv * curEnv = getCurrentEnv();
+
+if (voidsetAntialiasingQualityjintID==NULL) { /* Use the cache Luke */ voidsetAntialiasingQualityjintID = curEnv->GetMethodID(this->instanceClass, "setAntialiasingQuality", "(I)V" ) ;
+if (voidsetAntialiasingQualityjintID == NULL) {
+throw GiwsException::JniMethodNotFoundException(curEnv, "setAntialiasingQuality");
+}
+}
+                         curEnv->CallVoidMethod( this->instance, voidsetAntialiasingQualityjintID ,quality);
+                        if (curEnv->ExceptionCheck()) {
+throw GiwsException::JniCallMethodException(curEnv);
+}
+}
+
 }