1
0
mirror of https://git.dev.opencascade.org/repos/occt.git synced 2025-08-14 13:30:48 +03:00

Integration of OCCT 6.5.0 from SVN

This commit is contained in:
bugmaster
2011-03-16 07:30:28 +00:00
committed by bugmaster
parent 4903637061
commit 7fd59977df
16375 changed files with 3882564 additions and 0 deletions

View File

@@ -0,0 +1,33 @@
//
// Copyright (C) 1991 - 2000 by
// Matra Datavision SA. All rights reserved.
//
// Copyright (C) 2001 - 2004 by
// Open CASCADE SA. All rights reserved.
//
// This file is part of the Open CASCADE Technology software.
//
// This software may be distributed and/or modified under the terms and
// conditions of the Open CASCADE Public License as defined by Open CASCADE SA
// and appearing in the file LICENSE included in the packaging of this file.
//
// This software is distributed on an "AS IS" basis, without warranty of any
// kind, and Open CASCADE SA hereby disclaims all such warranties,
// including without limitation, any warranties of merchantability, fitness
// for a particular purpose or non-infringement. Please see the License for
// the specific terms and conditions governing rights and limitations under the
// License.
#include <SampleHLRJni_AIS_InteractiveContext.h>
#include <AIS_InteractiveContext.hxx>
#include <jcas.hxx>
#include <stdlib.h>
#include <Standard_ErrorHandler.hxx>
#include <Standard_Failure.hxx>
#include <Standard_SStream.hxx>
extern "C" {
}

View File

@@ -0,0 +1,160 @@
//
// Copyright (C) 1991 - 2000 by
// Matra Datavision SA. All rights reserved.
//
// Copyright (C) 2001 - 2004 by
// Open CASCADE SA. All rights reserved.
//
// This file is part of the Open CASCADE Technology software.
//
// This software may be distributed and/or modified under the terms and
// conditions of the Open CASCADE Public License as defined by Open CASCADE SA
// and appearing in the file LICENSE included in the packaging of this file.
//
// This software is distributed on an "AS IS" basis, without warranty of any
// kind, and Open CASCADE SA hereby disclaims all such warranties,
// including without limitation, any warranties of merchantability, fitness
// for a particular purpose or non-infringement. Please see the License for
// the specific terms and conditions governing rights and limitations under the
// License.
#include <SampleHLRJni_Aspect_Background.h>
#include <Aspect_Background.hxx>
#include <jcas.hxx>
#include <stdlib.h>
#include <Standard_ErrorHandler.hxx>
#include <Standard_Failure.hxx>
#include <Standard_SStream.hxx>
#include <Quantity_Color.hxx>
extern "C" {
JNIEXPORT void JNICALL Java_SampleHLRJni_Aspect_1Background_Aspect_1Background_1Create_11 (JNIEnv *env, jobject theobj)
{
jcas_Locking alock(env);
{
try {
Aspect_Background* theret = new Aspect_Background();
jcas_SetHandle(env,theobj,theret);
}
catch (Standard_Failure) {
Standard_SStream Err;
Err << Standard_Failure::Caught();
Err << (char) 0;
jcas_ThrowException(env,Err.str().c_str());
}
}
alock.Release();
}
JNIEXPORT void JNICALL Java_SampleHLRJni_Aspect_1Background_Aspect_1Background_1Create_12 (JNIEnv *env, jobject theobj, jobject AColor)
{
jcas_Locking alock(env);
{
try {
Quantity_Color* the_AColor = (Quantity_Color*) jcas_GetHandle(env,AColor);
if ( the_AColor == NULL ) {
// The following assumes availability of the default constructor (what may not
// always be the case). Therefore explicit exception is thrown if the null
// object has been passed.
// the_AColor = new Quantity_Color ();
// jcas_SetHandle ( env, AColor, the_AColor );
jcas_ThrowException (env, "NULL object has been passed while expecting an object manipulated by value");
} // end if
Aspect_Background* theret = new Aspect_Background(*the_AColor);
jcas_SetHandle(env,theobj,theret);
}
catch (Standard_Failure) {
Standard_SStream Err;
Err << Standard_Failure::Caught();
Err << (char) 0;
jcas_ThrowException(env,Err.str().c_str());
}
}
alock.Release();
}
JNIEXPORT void JNICALL Java_SampleHLRJni_Aspect_1Background_SetColor (JNIEnv *env, jobject theobj, jobject AColor)
{
jcas_Locking alock(env);
{
try {
Quantity_Color* the_AColor = (Quantity_Color*) jcas_GetHandle(env,AColor);
if ( the_AColor == NULL ) {
// The following assumes availability of the default constructor (what may not
// always be the case). Therefore explicit exception is thrown if the null
// object has been passed.
// the_AColor = new Quantity_Color ();
// jcas_SetHandle ( env, AColor, the_AColor );
jcas_ThrowException (env, "NULL object has been passed while expecting an object manipulated by value");
} // end if
Aspect_Background* the_this = (Aspect_Background*) jcas_GetHandle(env,theobj);
the_this->SetColor(*the_AColor);
}
catch (Standard_Failure) {
Standard_SStream Err;
Err << Standard_Failure::Caught();
Err << (char) 0;
jcas_ThrowException(env,Err.str().c_str());
}
}
alock.Release();
}
JNIEXPORT jobject JNICALL Java_SampleHLRJni_Aspect_1Background_Color (JNIEnv *env, jobject theobj)
{
jobject thejret;
jcas_Locking alock(env);
{
try {
Aspect_Background* the_this = (Aspect_Background*) jcas_GetHandle(env,theobj);
Quantity_Color* theret = new Quantity_Color(the_this->Color());
thejret = jcas_CreateObject(env,"CASCADESamplesJni/Quantity_Color",theret);
}
catch (Standard_Failure) {
Standard_SStream Err;
Err << Standard_Failure::Caught();
Err << (char) 0;
jcas_ThrowException(env,Err.str().c_str());
}
}
alock.Release();
return thejret;
}
JNIEXPORT void JNICALL Java_SampleHLRJni_Aspect_1Background_FinalizeValue(JNIEnv *, jclass, jlong theid)
{
if (theid) {
Aspect_Background* theobj = (Aspect_Background*) theid;
delete theobj;
}
}
}

View File

@@ -0,0 +1,252 @@
//
// Copyright (C) 1991 - 2000 by
// Matra Datavision SA. All rights reserved.
//
// Copyright (C) 2001 - 2004 by
// Open CASCADE SA. All rights reserved.
//
// This file is part of the Open CASCADE Technology software.
//
// This software may be distributed and/or modified under the terms and
// conditions of the Open CASCADE Public License as defined by Open CASCADE SA
// and appearing in the file LICENSE included in the packaging of this file.
//
// This software is distributed on an "AS IS" basis, without warranty of any
// kind, and Open CASCADE SA hereby disclaims all such warranties,
// including without limitation, any warranties of merchantability, fitness
// for a particular purpose or non-infringement. Please see the License for
// the specific terms and conditions governing rights and limitations under the
// License.
#include <SampleHLRJni_Aspect_ColorCubeColorMap.h>
#include <Aspect_ColorCubeColorMap.hxx>
#include <jcas.hxx>
#include <stdlib.h>
#include <Standard_ErrorHandler.hxx>
#include <Standard_Failure.hxx>
#include <Standard_SStream.hxx>
#include <Standard_Integer.hxx>
#include <Aspect_ColorMapEntry.hxx>
#include <Quantity_Color.hxx>
extern "C" {
JNIEXPORT void JNICALL Java_SampleHLRJni_Aspect_1ColorCubeColorMap_Aspect_1ColorCubeColorMap_1Create_10 (JNIEnv *env, jobject theobj, jint base_pixel, jint redmax, jint redmult, jint greenmax, jint greenmult, jint bluemax, jint bluemult)
{
jcas_Locking alock(env);
{
try {
Handle(Aspect_ColorCubeColorMap)* theret = new Handle(Aspect_ColorCubeColorMap);
*theret = new Aspect_ColorCubeColorMap((Standard_Integer) base_pixel,(Standard_Integer) redmax,(Standard_Integer) redmult,(Standard_Integer) greenmax,(Standard_Integer) greenmult,(Standard_Integer) bluemax,(Standard_Integer) bluemult);
jcas_SetHandle(env,theobj,theret);
}
catch (Standard_Failure) {
Standard_SStream Err;
Err << Standard_Failure::Caught();
Err << (char) 0;
jcas_ThrowException(env,Err.str().c_str());
}
}
alock.Release();
}
JNIEXPORT void JNICALL Java_SampleHLRJni_Aspect_1ColorCubeColorMap_ColorCubeDefinition (JNIEnv *env, jobject theobj, jobject base_pixel, jobject redmax, jobject redmult, jobject greenmax, jobject greenmult, jobject bluemax, jobject bluemult)
{
jcas_Locking alock(env);
{
try {
Standard_Integer the_base_pixel = jcas_GetInteger(env,base_pixel);
Standard_Integer the_redmax = jcas_GetInteger(env,redmax);
Standard_Integer the_redmult = jcas_GetInteger(env,redmult);
Standard_Integer the_greenmax = jcas_GetInteger(env,greenmax);
Standard_Integer the_greenmult = jcas_GetInteger(env,greenmult);
Standard_Integer the_bluemax = jcas_GetInteger(env,bluemax);
Standard_Integer the_bluemult = jcas_GetInteger(env,bluemult);
Handle(Aspect_ColorCubeColorMap) the_this = *((Handle(Aspect_ColorCubeColorMap)*) jcas_GetHandle(env,theobj));
the_this->ColorCubeDefinition(the_base_pixel,the_redmax,the_redmult,the_greenmax,the_greenmult,the_bluemax,the_bluemult);
jcas_SetInteger(env,base_pixel,the_base_pixel);
jcas_SetInteger(env,redmax,the_redmax);
jcas_SetInteger(env,redmult,the_redmult);
jcas_SetInteger(env,greenmax,the_greenmax);
jcas_SetInteger(env,greenmult,the_greenmult);
jcas_SetInteger(env,bluemax,the_bluemax);
jcas_SetInteger(env,bluemult,the_bluemult);
}
catch (Standard_Failure) {
Standard_SStream Err;
Err << Standard_Failure::Caught();
Err << (char) 0;
jcas_ThrowException(env,Err.str().c_str());
}
}
alock.Release();
}
JNIEXPORT jint JNICALL Java_SampleHLRJni_Aspect_1ColorCubeColorMap_FindColorMapIndex (JNIEnv *env, jobject theobj, jint AColorMapEntryIndex)
{
jint thejret;
jcas_Locking alock(env);
{
try {
Handle(Aspect_ColorCubeColorMap) the_this = *((Handle(Aspect_ColorCubeColorMap)*) jcas_GetHandle(env,theobj));
thejret = the_this->FindColorMapIndex((Standard_Integer) AColorMapEntryIndex);
}
catch (Standard_Failure) {
Standard_SStream Err;
Err << Standard_Failure::Caught();
Err << (char) 0;
jcas_ThrowException(env,Err.str().c_str());
}
}
alock.Release();
return thejret;
}
JNIEXPORT jobject JNICALL Java_SampleHLRJni_Aspect_1ColorCubeColorMap_FindEntry (JNIEnv *env, jobject theobj, jint AColorMapEntryIndex)
{
jobject thejret;
jcas_Locking alock(env);
{
try {
Handle(Aspect_ColorCubeColorMap) the_this = *((Handle(Aspect_ColorCubeColorMap)*) jcas_GetHandle(env,theobj));
const Aspect_ColorMapEntry& theret = the_this->FindEntry((Standard_Integer) AColorMapEntryIndex);
thejret = jcas_CreateObject(env,"CASCADESamplesJni/Aspect_ColorMapEntry",&theret,0);
}
catch (Standard_Failure) {
Standard_SStream Err;
Err << Standard_Failure::Caught();
Err << (char) 0;
jcas_ThrowException(env,Err.str().c_str());
}
}
alock.Release();
return thejret;
}
JNIEXPORT jint JNICALL Java_SampleHLRJni_Aspect_1ColorCubeColorMap_NearestColorMapIndex (JNIEnv *env, jobject theobj, jobject aColor)
{
jint thejret;
jcas_Locking alock(env);
{
try {
Quantity_Color* the_aColor = (Quantity_Color*) jcas_GetHandle(env,aColor);
if ( the_aColor == NULL ) {
// The following assumes availability of the default constructor (what may not
// always be the case). Therefore explicit exception is thrown if the null
// object has been passed.
// the_aColor = new Quantity_Color ();
// jcas_SetHandle ( env, aColor, the_aColor );
jcas_ThrowException (env, "NULL object has been passed while expecting an object manipulated by value");
} // end if
Handle(Aspect_ColorCubeColorMap) the_this = *((Handle(Aspect_ColorCubeColorMap)*) jcas_GetHandle(env,theobj));
thejret = the_this->NearestColorMapIndex(*the_aColor);
}
catch (Standard_Failure) {
Standard_SStream Err;
Err << Standard_Failure::Caught();
Err << (char) 0;
jcas_ThrowException(env,Err.str().c_str());
}
}
alock.Release();
return thejret;
}
JNIEXPORT jobject JNICALL Java_SampleHLRJni_Aspect_1ColorCubeColorMap_NearestEntry (JNIEnv *env, jobject theobj, jobject aColor)
{
jobject thejret;
jcas_Locking alock(env);
{
try {
Quantity_Color* the_aColor = (Quantity_Color*) jcas_GetHandle(env,aColor);
if ( the_aColor == NULL ) {
// The following assumes availability of the default constructor (what may not
// always be the case). Therefore explicit exception is thrown if the null
// object has been passed.
// the_aColor = new Quantity_Color ();
// jcas_SetHandle ( env, aColor, the_aColor );
jcas_ThrowException (env, "NULL object has been passed while expecting an object manipulated by value");
} // end if
Handle(Aspect_ColorCubeColorMap) the_this = *((Handle(Aspect_ColorCubeColorMap)*) jcas_GetHandle(env,theobj));
const Aspect_ColorMapEntry& theret = the_this->NearestEntry(*the_aColor);
thejret = jcas_CreateObject(env,"CASCADESamplesJni/Aspect_ColorMapEntry",&theret,0);
}
catch (Standard_Failure) {
Standard_SStream Err;
Err << Standard_Failure::Caught();
Err << (char) 0;
jcas_ThrowException(env,Err.str().c_str());
}
}
alock.Release();
return thejret;
}
JNIEXPORT jint JNICALL Java_SampleHLRJni_Aspect_1ColorCubeColorMap_AddEntry (JNIEnv *env, jobject theobj, jobject aColor)
{
jint thejret;
jcas_Locking alock(env);
{
try {
Quantity_Color* the_aColor = (Quantity_Color*) jcas_GetHandle(env,aColor);
if ( the_aColor == NULL ) {
// The following assumes availability of the default constructor (what may not
// always be the case). Therefore explicit exception is thrown if the null
// object has been passed.
// the_aColor = new Quantity_Color ();
// jcas_SetHandle ( env, aColor, the_aColor );
jcas_ThrowException (env, "NULL object has been passed while expecting an object manipulated by value");
} // end if
Handle(Aspect_ColorCubeColorMap) the_this = *((Handle(Aspect_ColorCubeColorMap)*) jcas_GetHandle(env,theobj));
thejret = the_this->AddEntry(*the_aColor);
}
catch (Standard_Failure) {
Standard_SStream Err;
Err << Standard_Failure::Caught();
Err << (char) 0;
jcas_ThrowException(env,Err.str().c_str());
}
}
alock.Release();
return thejret;
}
}

View File

@@ -0,0 +1,381 @@
//
// Copyright (C) 1991 - 2000 by
// Matra Datavision SA. All rights reserved.
//
// Copyright (C) 2001 - 2004 by
// Open CASCADE SA. All rights reserved.
//
// This file is part of the Open CASCADE Technology software.
//
// This software may be distributed and/or modified under the terms and
// conditions of the Open CASCADE Public License as defined by Open CASCADE SA
// and appearing in the file LICENSE included in the packaging of this file.
//
// This software is distributed on an "AS IS" basis, without warranty of any
// kind, and Open CASCADE SA hereby disclaims all such warranties,
// including without limitation, any warranties of merchantability, fitness
// for a particular purpose or non-infringement. Please see the License for
// the specific terms and conditions governing rights and limitations under the
// License.
#include <SampleHLRJni_Aspect_ColorMapEntry.h>
#include <Aspect_ColorMapEntry.hxx>
#include <jcas.hxx>
#include <stdlib.h>
#include <Standard_ErrorHandler.hxx>
#include <Standard_Failure.hxx>
#include <Standard_SStream.hxx>
#include <Standard_Integer.hxx>
#include <Quantity_Color.hxx>
#include <Standard_Boolean.hxx>
extern "C" {
JNIEXPORT void JNICALL Java_SampleHLRJni_Aspect_1ColorMapEntry_Aspect_1ColorMapEntry_1Create_11 (JNIEnv *env, jobject theobj)
{
jcas_Locking alock(env);
{
try {
Aspect_ColorMapEntry* theret = new Aspect_ColorMapEntry();
jcas_SetHandle(env,theobj,theret);
}
catch (Standard_Failure) {
Standard_SStream Err;
Err << Standard_Failure::Caught();
Err << (char) 0;
jcas_ThrowException(env,Err.str().c_str());
}
}
alock.Release();
}
JNIEXPORT void JNICALL Java_SampleHLRJni_Aspect_1ColorMapEntry_Aspect_1ColorMapEntry_1Create_12 (JNIEnv *env, jobject theobj, jint index, jobject rgb)
{
jcas_Locking alock(env);
{
try {
Quantity_Color* the_rgb = (Quantity_Color*) jcas_GetHandle(env,rgb);
if ( the_rgb == NULL ) {
// The following assumes availability of the default constructor (what may not
// always be the case). Therefore explicit exception is thrown if the null
// object has been passed.
// the_rgb = new Quantity_Color ();
// jcas_SetHandle ( env, rgb, the_rgb );
jcas_ThrowException (env, "NULL object has been passed while expecting an object manipulated by value");
} // end if
Aspect_ColorMapEntry* theret = new Aspect_ColorMapEntry((Standard_Integer) index,*the_rgb);
jcas_SetHandle(env,theobj,theret);
}
catch (Standard_Failure) {
Standard_SStream Err;
Err << Standard_Failure::Caught();
Err << (char) 0;
jcas_ThrowException(env,Err.str().c_str());
}
}
alock.Release();
}
JNIEXPORT void JNICALL Java_SampleHLRJni_Aspect_1ColorMapEntry_Aspect_1ColorMapEntry_1Create_13 (JNIEnv *env, jobject theobj, jobject entry)
{
jcas_Locking alock(env);
{
try {
Aspect_ColorMapEntry* the_entry = (Aspect_ColorMapEntry*) jcas_GetHandle(env,entry);
if ( the_entry == NULL ) {
// The following assumes availability of the default constructor (what may not
// always be the case). Therefore explicit exception is thrown if the null
// object has been passed.
// the_entry = new Aspect_ColorMapEntry ();
// jcas_SetHandle ( env, entry, the_entry );
jcas_ThrowException (env, "NULL object has been passed while expecting an object manipulated by value");
} // end if
Aspect_ColorMapEntry* theret = new Aspect_ColorMapEntry(*the_entry);
jcas_SetHandle(env,theobj,theret);
}
catch (Standard_Failure) {
Standard_SStream Err;
Err << Standard_Failure::Caught();
Err << (char) 0;
jcas_ThrowException(env,Err.str().c_str());
}
}
alock.Release();
}
JNIEXPORT void JNICALL Java_SampleHLRJni_Aspect_1ColorMapEntry_Aspect_1ColorMapEntry_1SetValue_11 (JNIEnv *env, jobject theobj, jint index, jobject rgb)
{
jcas_Locking alock(env);
{
try {
Quantity_Color* the_rgb = (Quantity_Color*) jcas_GetHandle(env,rgb);
if ( the_rgb == NULL ) {
// The following assumes availability of the default constructor (what may not
// always be the case). Therefore explicit exception is thrown if the null
// object has been passed.
// the_rgb = new Quantity_Color ();
// jcas_SetHandle ( env, rgb, the_rgb );
jcas_ThrowException (env, "NULL object has been passed while expecting an object manipulated by value");
} // end if
Aspect_ColorMapEntry* the_this = (Aspect_ColorMapEntry*) jcas_GetHandle(env,theobj);
the_this->SetValue((Standard_Integer) index,*the_rgb);
}
catch (Standard_Failure) {
Standard_SStream Err;
Err << Standard_Failure::Caught();
Err << (char) 0;
jcas_ThrowException(env,Err.str().c_str());
}
}
alock.Release();
}
JNIEXPORT void JNICALL Java_SampleHLRJni_Aspect_1ColorMapEntry_Aspect_1ColorMapEntry_1SetValue_12 (JNIEnv *env, jobject theobj, jobject entry)
{
jcas_Locking alock(env);
{
try {
Aspect_ColorMapEntry* the_entry = (Aspect_ColorMapEntry*) jcas_GetHandle(env,entry);
if ( the_entry == NULL ) {
// The following assumes availability of the default constructor (what may not
// always be the case). Therefore explicit exception is thrown if the null
// object has been passed.
// the_entry = new Aspect_ColorMapEntry ();
// jcas_SetHandle ( env, entry, the_entry );
jcas_ThrowException (env, "NULL object has been passed while expecting an object manipulated by value");
} // end if
Aspect_ColorMapEntry* the_this = (Aspect_ColorMapEntry*) jcas_GetHandle(env,theobj);
the_this->SetValue(*the_entry);
}
catch (Standard_Failure) {
Standard_SStream Err;
Err << Standard_Failure::Caught();
Err << (char) 0;
jcas_ThrowException(env,Err.str().c_str());
}
}
alock.Release();
}
JNIEXPORT void JNICALL Java_SampleHLRJni_Aspect_1ColorMapEntry_SetColor (JNIEnv *env, jobject theobj, jobject rgb)
{
jcas_Locking alock(env);
{
try {
Quantity_Color* the_rgb = (Quantity_Color*) jcas_GetHandle(env,rgb);
if ( the_rgb == NULL ) {
// The following assumes availability of the default constructor (what may not
// always be the case). Therefore explicit exception is thrown if the null
// object has been passed.
// the_rgb = new Quantity_Color ();
// jcas_SetHandle ( env, rgb, the_rgb );
jcas_ThrowException (env, "NULL object has been passed while expecting an object manipulated by value");
} // end if
Aspect_ColorMapEntry* the_this = (Aspect_ColorMapEntry*) jcas_GetHandle(env,theobj);
the_this->SetColor(*the_rgb);
}
catch (Standard_Failure) {
Standard_SStream Err;
Err << Standard_Failure::Caught();
Err << (char) 0;
jcas_ThrowException(env,Err.str().c_str());
}
}
alock.Release();
}
JNIEXPORT jobject JNICALL Java_SampleHLRJni_Aspect_1ColorMapEntry_Color (JNIEnv *env, jobject theobj)
{
jobject thejret;
jcas_Locking alock(env);
{
try {
Aspect_ColorMapEntry* the_this = (Aspect_ColorMapEntry*) jcas_GetHandle(env,theobj);
const Quantity_Color& theret = the_this->Color();
thejret = jcas_CreateObject(env,"CASCADESamplesJni/Quantity_Color",&theret,0);
}
catch (Standard_Failure) {
Standard_SStream Err;
Err << Standard_Failure::Caught();
Err << (char) 0;
jcas_ThrowException(env,Err.str().c_str());
}
}
alock.Release();
return thejret;
}
JNIEXPORT void JNICALL Java_SampleHLRJni_Aspect_1ColorMapEntry_SetIndex (JNIEnv *env, jobject theobj, jint index)
{
jcas_Locking alock(env);
{
try {
Aspect_ColorMapEntry* the_this = (Aspect_ColorMapEntry*) jcas_GetHandle(env,theobj);
the_this->SetIndex((Standard_Integer) index);
}
catch (Standard_Failure) {
Standard_SStream Err;
Err << Standard_Failure::Caught();
Err << (char) 0;
jcas_ThrowException(env,Err.str().c_str());
}
}
alock.Release();
}
JNIEXPORT jint JNICALL Java_SampleHLRJni_Aspect_1ColorMapEntry_Index (JNIEnv *env, jobject theobj)
{
jint thejret;
jcas_Locking alock(env);
{
try {
Aspect_ColorMapEntry* the_this = (Aspect_ColorMapEntry*) jcas_GetHandle(env,theobj);
thejret = the_this->Index();
}
catch (Standard_Failure) {
Standard_SStream Err;
Err << Standard_Failure::Caught();
Err << (char) 0;
jcas_ThrowException(env,Err.str().c_str());
}
}
alock.Release();
return thejret;
}
JNIEXPORT void JNICALL Java_SampleHLRJni_Aspect_1ColorMapEntry_Free (JNIEnv *env, jobject theobj)
{
jcas_Locking alock(env);
{
try {
Aspect_ColorMapEntry* the_this = (Aspect_ColorMapEntry*) jcas_GetHandle(env,theobj);
the_this->Free();
}
catch (Standard_Failure) {
Standard_SStream Err;
Err << Standard_Failure::Caught();
Err << (char) 0;
jcas_ThrowException(env,Err.str().c_str());
}
}
alock.Release();
}
JNIEXPORT jboolean JNICALL Java_SampleHLRJni_Aspect_1ColorMapEntry_IsAllocated (JNIEnv *env, jobject theobj)
{
jboolean thejret;
jcas_Locking alock(env);
{
try {
Aspect_ColorMapEntry* the_this = (Aspect_ColorMapEntry*) jcas_GetHandle(env,theobj);
thejret = the_this->IsAllocated();
}
catch (Standard_Failure) {
Standard_SStream Err;
Err << Standard_Failure::Caught();
Err << (char) 0;
jcas_ThrowException(env,Err.str().c_str());
}
}
alock.Release();
return thejret;
}
JNIEXPORT void JNICALL Java_SampleHLRJni_Aspect_1ColorMapEntry_Dump (JNIEnv *env, jobject theobj)
{
jcas_Locking alock(env);
{
try {
Aspect_ColorMapEntry* the_this = (Aspect_ColorMapEntry*) jcas_GetHandle(env,theobj);
the_this->Dump();
}
catch (Standard_Failure) {
Standard_SStream Err;
Err << Standard_Failure::Caught();
Err << (char) 0;
jcas_ThrowException(env,Err.str().c_str());
}
}
alock.Release();
}
JNIEXPORT void JNICALL Java_SampleHLRJni_Aspect_1ColorMapEntry_FinalizeValue(JNIEnv *, jclass, jlong theid)
{
if (theid) {
Aspect_ColorMapEntry* theobj = (Aspect_ColorMapEntry*) theid;
delete theobj;
}
}
}

View File

@@ -0,0 +1,312 @@
//
// Copyright (C) 1991 - 2000 by
// Matra Datavision SA. All rights reserved.
//
// Copyright (C) 2001 - 2004 by
// Open CASCADE SA. All rights reserved.
//
// This file is part of the Open CASCADE Technology software.
//
// This software may be distributed and/or modified under the terms and
// conditions of the Open CASCADE Public License as defined by Open CASCADE SA
// and appearing in the file LICENSE included in the packaging of this file.
//
// This software is distributed on an "AS IS" basis, without warranty of any
// kind, and Open CASCADE SA hereby disclaims all such warranties,
// including without limitation, any warranties of merchantability, fitness
// for a particular purpose or non-infringement. Please see the License for
// the specific terms and conditions governing rights and limitations under the
// License.
#include <SampleHLRJni_Aspect_ColorMap.h>
#include <Aspect_ColorMap.hxx>
#include <jcas.hxx>
#include <stdlib.h>
#include <Standard_ErrorHandler.hxx>
#include <Standard_Failure.hxx>
#include <Standard_SStream.hxx>
#include <Aspect_TypeOfColorMap.hxx>
#include <Standard_Integer.hxx>
#include <Aspect_ColorMapEntry.hxx>
#include <Quantity_Color.hxx>
extern "C" {
JNIEXPORT jshort JNICALL Java_SampleHLRJni_Aspect_1ColorMap_Type (JNIEnv *env, jobject theobj)
{
jshort thejret;
jcas_Locking alock(env);
{
try {
Handle(Aspect_ColorMap) the_this = *((Handle(Aspect_ColorMap)*) jcas_GetHandle(env,theobj));
thejret = the_this->Type();
}
catch (Standard_Failure) {
Standard_SStream Err;
Err << Standard_Failure::Caught();
Err << (char) 0;
jcas_ThrowException(env,Err.str().c_str());
}
}
alock.Release();
return thejret;
}
JNIEXPORT jint JNICALL Java_SampleHLRJni_Aspect_1ColorMap_Size (JNIEnv *env, jobject theobj)
{
jint thejret;
jcas_Locking alock(env);
{
try {
Handle(Aspect_ColorMap) the_this = *((Handle(Aspect_ColorMap)*) jcas_GetHandle(env,theobj));
thejret = the_this->Size();
}
catch (Standard_Failure) {
Standard_SStream Err;
Err << Standard_Failure::Caught();
Err << (char) 0;
jcas_ThrowException(env,Err.str().c_str());
}
}
alock.Release();
return thejret;
}
JNIEXPORT jint JNICALL Java_SampleHLRJni_Aspect_1ColorMap_Index (JNIEnv *env, jobject theobj, jint aColormapIndex)
{
jint thejret;
jcas_Locking alock(env);
{
try {
Handle(Aspect_ColorMap) the_this = *((Handle(Aspect_ColorMap)*) jcas_GetHandle(env,theobj));
thejret = the_this->Index((Standard_Integer) aColormapIndex);
}
catch (Standard_Failure) {
Standard_SStream Err;
Err << Standard_Failure::Caught();
Err << (char) 0;
jcas_ThrowException(env,Err.str().c_str());
}
}
alock.Release();
return thejret;
}
JNIEXPORT void JNICALL Java_SampleHLRJni_Aspect_1ColorMap_Dump (JNIEnv *env, jobject theobj)
{
jcas_Locking alock(env);
{
try {
Handle(Aspect_ColorMap) the_this = *((Handle(Aspect_ColorMap)*) jcas_GetHandle(env,theobj));
the_this->Dump();
}
catch (Standard_Failure) {
Standard_SStream Err;
Err << Standard_Failure::Caught();
Err << (char) 0;
jcas_ThrowException(env,Err.str().c_str());
}
}
alock.Release();
}
JNIEXPORT jobject JNICALL Java_SampleHLRJni_Aspect_1ColorMap_Entry (JNIEnv *env, jobject theobj, jint AColorMapIndex)
{
jobject thejret;
jcas_Locking alock(env);
{
try {
Handle(Aspect_ColorMap) the_this = *((Handle(Aspect_ColorMap)*) jcas_GetHandle(env,theobj));
const Aspect_ColorMapEntry& theret = the_this->Entry((Standard_Integer) AColorMapIndex);
thejret = jcas_CreateObject(env,"CASCADESamplesJni/Aspect_ColorMapEntry",&theret,0);
}
catch (Standard_Failure) {
Standard_SStream Err;
Err << Standard_Failure::Caught();
Err << (char) 0;
jcas_ThrowException(env,Err.str().c_str());
}
}
alock.Release();
return thejret;
}
JNIEXPORT jint JNICALL Java_SampleHLRJni_Aspect_1ColorMap_FindColorMapIndex (JNIEnv *env, jobject theobj, jint AColorMapEntryIndex)
{
jint thejret;
jcas_Locking alock(env);
{
try {
Handle(Aspect_ColorMap) the_this = *((Handle(Aspect_ColorMap)*) jcas_GetHandle(env,theobj));
thejret = the_this->FindColorMapIndex((Standard_Integer) AColorMapEntryIndex);
}
catch (Standard_Failure) {
Standard_SStream Err;
Err << Standard_Failure::Caught();
Err << (char) 0;
jcas_ThrowException(env,Err.str().c_str());
}
}
alock.Release();
return thejret;
}
JNIEXPORT jobject JNICALL Java_SampleHLRJni_Aspect_1ColorMap_FindEntry (JNIEnv *env, jobject theobj, jint AColorMapEntryIndex)
{
jobject thejret;
jcas_Locking alock(env);
{
try {
Handle(Aspect_ColorMap) the_this = *((Handle(Aspect_ColorMap)*) jcas_GetHandle(env,theobj));
const Aspect_ColorMapEntry& theret = the_this->FindEntry((Standard_Integer) AColorMapEntryIndex);
thejret = jcas_CreateObject(env,"CASCADESamplesJni/Aspect_ColorMapEntry",&theret,0);
}
catch (Standard_Failure) {
Standard_SStream Err;
Err << Standard_Failure::Caught();
Err << (char) 0;
jcas_ThrowException(env,Err.str().c_str());
}
}
alock.Release();
return thejret;
}
JNIEXPORT jint JNICALL Java_SampleHLRJni_Aspect_1ColorMap_NearestColorMapIndex (JNIEnv *env, jobject theobj, jobject aColor)
{
jint thejret;
jcas_Locking alock(env);
{
try {
Quantity_Color* the_aColor = (Quantity_Color*) jcas_GetHandle(env,aColor);
if ( the_aColor == NULL ) {
// The following assumes availability of the default constructor (what may not
// always be the case). Therefore explicit exception is thrown if the null
// object has been passed.
// the_aColor = new Quantity_Color ();
// jcas_SetHandle ( env, aColor, the_aColor );
jcas_ThrowException (env, "NULL object has been passed while expecting an object manipulated by value");
} // end if
Handle(Aspect_ColorMap) the_this = *((Handle(Aspect_ColorMap)*) jcas_GetHandle(env,theobj));
thejret = the_this->NearestColorMapIndex(*the_aColor);
}
catch (Standard_Failure) {
Standard_SStream Err;
Err << Standard_Failure::Caught();
Err << (char) 0;
jcas_ThrowException(env,Err.str().c_str());
}
}
alock.Release();
return thejret;
}
JNIEXPORT jobject JNICALL Java_SampleHLRJni_Aspect_1ColorMap_NearestEntry (JNIEnv *env, jobject theobj, jobject aColor)
{
jobject thejret;
jcas_Locking alock(env);
{
try {
Quantity_Color* the_aColor = (Quantity_Color*) jcas_GetHandle(env,aColor);
if ( the_aColor == NULL ) {
// The following assumes availability of the default constructor (what may not
// always be the case). Therefore explicit exception is thrown if the null
// object has been passed.
// the_aColor = new Quantity_Color ();
// jcas_SetHandle ( env, aColor, the_aColor );
jcas_ThrowException (env, "NULL object has been passed while expecting an object manipulated by value");
} // end if
Handle(Aspect_ColorMap) the_this = *((Handle(Aspect_ColorMap)*) jcas_GetHandle(env,theobj));
const Aspect_ColorMapEntry& theret = the_this->NearestEntry(*the_aColor);
thejret = jcas_CreateObject(env,"CASCADESamplesJni/Aspect_ColorMapEntry",&theret,0);
}
catch (Standard_Failure) {
Standard_SStream Err;
Err << Standard_Failure::Caught();
Err << (char) 0;
jcas_ThrowException(env,Err.str().c_str());
}
}
alock.Release();
return thejret;
}
JNIEXPORT jint JNICALL Java_SampleHLRJni_Aspect_1ColorMap_AddEntry (JNIEnv *env, jobject theobj, jobject aColor)
{
jint thejret;
jcas_Locking alock(env);
{
try {
Quantity_Color* the_aColor = (Quantity_Color*) jcas_GetHandle(env,aColor);
if ( the_aColor == NULL ) {
// The following assumes availability of the default constructor (what may not
// always be the case). Therefore explicit exception is thrown if the null
// object has been passed.
// the_aColor = new Quantity_Color ();
// jcas_SetHandle ( env, aColor, the_aColor );
jcas_ThrowException (env, "NULL object has been passed while expecting an object manipulated by value");
} // end if
Handle(Aspect_ColorMap) the_this = *((Handle(Aspect_ColorMap)*) jcas_GetHandle(env,theobj));
thejret = the_this->AddEntry(*the_aColor);
}
catch (Standard_Failure) {
Standard_SStream Err;
Err << Standard_Failure::Caught();
Err << (char) 0;
jcas_ThrowException(env,Err.str().c_str());
}
}
alock.Release();
return thejret;
}
}

View File

@@ -0,0 +1,289 @@
//
// Copyright (C) 1991 - 2000 by
// Matra Datavision SA. All rights reserved.
//
// Copyright (C) 2001 - 2004 by
// Open CASCADE SA. All rights reserved.
//
// This file is part of the Open CASCADE Technology software.
//
// This software may be distributed and/or modified under the terms and
// conditions of the Open CASCADE Public License as defined by Open CASCADE SA
// and appearing in the file LICENSE included in the packaging of this file.
//
// This software is distributed on an "AS IS" basis, without warranty of any
// kind, and Open CASCADE SA hereby disclaims all such warranties,
// including without limitation, any warranties of merchantability, fitness
// for a particular purpose or non-infringement. Please see the License for
// the specific terms and conditions governing rights and limitations under the
// License.
#include <SampleHLRJni_Aspect_ColorRampColorMap.h>
#include <Aspect_ColorRampColorMap.hxx>
#include <jcas.hxx>
#include <stdlib.h>
#include <Standard_ErrorHandler.hxx>
#include <Standard_Failure.hxx>
#include <Standard_SStream.hxx>
#include <Standard_Integer.hxx>
#include <Quantity_Color.hxx>
#include <Quantity_NameOfColor.hxx>
#include <Aspect_ColorMapEntry.hxx>
extern "C" {
JNIEXPORT void JNICALL Java_SampleHLRJni_Aspect_1ColorRampColorMap_Aspect_1ColorRampColorMap_1Create_11 (JNIEnv *env, jobject theobj, jint basepixel, jint dimension, jobject color)
{
jcas_Locking alock(env);
{
try {
Quantity_Color* the_color = (Quantity_Color*) jcas_GetHandle(env,color);
if ( the_color == NULL ) {
// The following assumes availability of the default constructor (what may not
// always be the case). Therefore explicit exception is thrown if the null
// object has been passed.
// the_color = new Quantity_Color ();
// jcas_SetHandle ( env, color, the_color );
jcas_ThrowException (env, "NULL object has been passed while expecting an object manipulated by value");
} // end if
Handle(Aspect_ColorRampColorMap)* theret = new Handle(Aspect_ColorRampColorMap);
*theret = new Aspect_ColorRampColorMap((Standard_Integer) basepixel,(Standard_Integer) dimension,*the_color);
jcas_SetHandle(env,theobj,theret);
}
catch (Standard_Failure) {
Standard_SStream Err;
Err << Standard_Failure::Caught();
Err << (char) 0;
jcas_ThrowException(env,Err.str().c_str());
}
}
alock.Release();
}
JNIEXPORT void JNICALL Java_SampleHLRJni_Aspect_1ColorRampColorMap_Aspect_1ColorRampColorMap_1Create_12 (JNIEnv *env, jobject theobj, jint basepixel, jint dimension, jshort colorName)
{
jcas_Locking alock(env);
{
try {
Handle(Aspect_ColorRampColorMap)* theret = new Handle(Aspect_ColorRampColorMap);
*theret = new Aspect_ColorRampColorMap((Standard_Integer) basepixel,(Standard_Integer) dimension,(Quantity_NameOfColor) colorName);
jcas_SetHandle(env,theobj,theret);
}
catch (Standard_Failure) {
Standard_SStream Err;
Err << Standard_Failure::Caught();
Err << (char) 0;
jcas_ThrowException(env,Err.str().c_str());
}
}
alock.Release();
}
JNIEXPORT void JNICALL Java_SampleHLRJni_Aspect_1ColorRampColorMap_ColorRampDefinition (JNIEnv *env, jobject theobj, jobject basepixel, jobject dimension, jobject color)
{
jcas_Locking alock(env);
{
try {
Standard_Integer the_basepixel = jcas_GetInteger(env,basepixel);
Standard_Integer the_dimension = jcas_GetInteger(env,dimension);
Quantity_Color* the_color = (Quantity_Color*) jcas_GetHandle(env,color);
if ( the_color == NULL ) {
// The following assumes availability of the default constructor (what may not
// always be the case). Therefore explicit exception is thrown if the null
// object has been passed.
// the_color = new Quantity_Color ();
// jcas_SetHandle ( env, color, the_color );
jcas_ThrowException (env, "NULL object has been passed while expecting an object manipulated by value");
} // end if
Handle(Aspect_ColorRampColorMap) the_this = *((Handle(Aspect_ColorRampColorMap)*) jcas_GetHandle(env,theobj));
the_this->ColorRampDefinition(the_basepixel,the_dimension,*the_color);
jcas_SetInteger(env,basepixel,the_basepixel);
jcas_SetInteger(env,dimension,the_dimension);
}
catch (Standard_Failure) {
Standard_SStream Err;
Err << Standard_Failure::Caught();
Err << (char) 0;
jcas_ThrowException(env,Err.str().c_str());
}
}
alock.Release();
}
JNIEXPORT jint JNICALL Java_SampleHLRJni_Aspect_1ColorRampColorMap_FindColorMapIndex (JNIEnv *env, jobject theobj, jint ColorMapEntryIndex)
{
jint thejret;
jcas_Locking alock(env);
{
try {
Handle(Aspect_ColorRampColorMap) the_this = *((Handle(Aspect_ColorRampColorMap)*) jcas_GetHandle(env,theobj));
thejret = the_this->FindColorMapIndex((Standard_Integer) ColorMapEntryIndex);
}
catch (Standard_Failure) {
Standard_SStream Err;
Err << Standard_Failure::Caught();
Err << (char) 0;
jcas_ThrowException(env,Err.str().c_str());
}
}
alock.Release();
return thejret;
}
JNIEXPORT jobject JNICALL Java_SampleHLRJni_Aspect_1ColorRampColorMap_FindEntry (JNIEnv *env, jobject theobj, jint AColorMapEntryIndex)
{
jobject thejret;
jcas_Locking alock(env);
{
try {
Handle(Aspect_ColorRampColorMap) the_this = *((Handle(Aspect_ColorRampColorMap)*) jcas_GetHandle(env,theobj));
const Aspect_ColorMapEntry& theret = the_this->FindEntry((Standard_Integer) AColorMapEntryIndex);
thejret = jcas_CreateObject(env,"CASCADESamplesJni/Aspect_ColorMapEntry",&theret,0);
}
catch (Standard_Failure) {
Standard_SStream Err;
Err << Standard_Failure::Caught();
Err << (char) 0;
jcas_ThrowException(env,Err.str().c_str());
}
}
alock.Release();
return thejret;
}
JNIEXPORT jint JNICALL Java_SampleHLRJni_Aspect_1ColorRampColorMap_NearestColorMapIndex (JNIEnv *env, jobject theobj, jobject aColor)
{
jint thejret;
jcas_Locking alock(env);
{
try {
Quantity_Color* the_aColor = (Quantity_Color*) jcas_GetHandle(env,aColor);
if ( the_aColor == NULL ) {
// The following assumes availability of the default constructor (what may not
// always be the case). Therefore explicit exception is thrown if the null
// object has been passed.
// the_aColor = new Quantity_Color ();
// jcas_SetHandle ( env, aColor, the_aColor );
jcas_ThrowException (env, "NULL object has been passed while expecting an object manipulated by value");
} // end if
Handle(Aspect_ColorRampColorMap) the_this = *((Handle(Aspect_ColorRampColorMap)*) jcas_GetHandle(env,theobj));
thejret = the_this->NearestColorMapIndex(*the_aColor);
}
catch (Standard_Failure) {
Standard_SStream Err;
Err << Standard_Failure::Caught();
Err << (char) 0;
jcas_ThrowException(env,Err.str().c_str());
}
}
alock.Release();
return thejret;
}
JNIEXPORT jobject JNICALL Java_SampleHLRJni_Aspect_1ColorRampColorMap_NearestEntry (JNIEnv *env, jobject theobj, jobject aColor)
{
jobject thejret;
jcas_Locking alock(env);
{
try {
Quantity_Color* the_aColor = (Quantity_Color*) jcas_GetHandle(env,aColor);
if ( the_aColor == NULL ) {
// The following assumes availability of the default constructor (what may not
// always be the case). Therefore explicit exception is thrown if the null
// object has been passed.
// the_aColor = new Quantity_Color ();
// jcas_SetHandle ( env, aColor, the_aColor );
jcas_ThrowException (env, "NULL object has been passed while expecting an object manipulated by value");
} // end if
Handle(Aspect_ColorRampColorMap) the_this = *((Handle(Aspect_ColorRampColorMap)*) jcas_GetHandle(env,theobj));
const Aspect_ColorMapEntry& theret = the_this->NearestEntry(*the_aColor);
thejret = jcas_CreateObject(env,"CASCADESamplesJni/Aspect_ColorMapEntry",&theret,0);
}
catch (Standard_Failure) {
Standard_SStream Err;
Err << Standard_Failure::Caught();
Err << (char) 0;
jcas_ThrowException(env,Err.str().c_str());
}
}
alock.Release();
return thejret;
}
JNIEXPORT jint JNICALL Java_SampleHLRJni_Aspect_1ColorRampColorMap_AddEntry (JNIEnv *env, jobject theobj, jobject aColor)
{
jint thejret;
jcas_Locking alock(env);
{
try {
Quantity_Color* the_aColor = (Quantity_Color*) jcas_GetHandle(env,aColor);
if ( the_aColor == NULL ) {
// The following assumes availability of the default constructor (what may not
// always be the case). Therefore explicit exception is thrown if the null
// object has been passed.
// the_aColor = new Quantity_Color ();
// jcas_SetHandle ( env, aColor, the_aColor );
jcas_ThrowException (env, "NULL object has been passed while expecting an object manipulated by value");
} // end if
Handle(Aspect_ColorRampColorMap) the_this = *((Handle(Aspect_ColorRampColorMap)*) jcas_GetHandle(env,theobj));
thejret = the_this->AddEntry(*the_aColor);
}
catch (Standard_Failure) {
Standard_SStream Err;
Err << Standard_Failure::Caught();
Err << (char) 0;
jcas_ThrowException(env,Err.str().c_str());
}
}
alock.Release();
return thejret;
}
}

File diff suppressed because it is too large Load Diff

View File

@@ -0,0 +1,381 @@
//
// Copyright (C) 1991 - 2000 by
// Matra Datavision SA. All rights reserved.
//
// Copyright (C) 2001 - 2004 by
// Open CASCADE SA. All rights reserved.
//
// This file is part of the Open CASCADE Technology software.
//
// This software may be distributed and/or modified under the terms and
// conditions of the Open CASCADE Public License as defined by Open CASCADE SA
// and appearing in the file LICENSE included in the packaging of this file.
//
// This software is distributed on an "AS IS" basis, without warranty of any
// kind, and Open CASCADE SA hereby disclaims all such warranties,
// including without limitation, any warranties of merchantability, fitness
// for a particular purpose or non-infringement. Please see the License for
// the specific terms and conditions governing rights and limitations under the
// License.
#include <SampleHLRJni_Aspect_FontMapEntry.h>
#include <Aspect_FontMapEntry.hxx>
#include <jcas.hxx>
#include <stdlib.h>
#include <Standard_ErrorHandler.hxx>
#include <Standard_Failure.hxx>
#include <Standard_SStream.hxx>
#include <Standard_Integer.hxx>
#include <Aspect_FontStyle.hxx>
#include <Standard_Boolean.hxx>
extern "C" {
JNIEXPORT void JNICALL Java_SampleHLRJni_Aspect_1FontMapEntry_Aspect_1FontMapEntry_1Create_11 (JNIEnv *env, jobject theobj)
{
jcas_Locking alock(env);
{
try {
Aspect_FontMapEntry* theret = new Aspect_FontMapEntry();
jcas_SetHandle(env,theobj,theret);
}
catch (Standard_Failure) {
Standard_SStream Err;
Err << Standard_Failure::Caught();
Err << (char) 0;
jcas_ThrowException(env,Err.str().c_str());
}
}
alock.Release();
}
JNIEXPORT void JNICALL Java_SampleHLRJni_Aspect_1FontMapEntry_Aspect_1FontMapEntry_1Create_12 (JNIEnv *env, jobject theobj, jint index, jobject style)
{
jcas_Locking alock(env);
{
try {
Aspect_FontStyle* the_style = (Aspect_FontStyle*) jcas_GetHandle(env,style);
if ( the_style == NULL ) {
// The following assumes availability of the default constructor (what may not
// always be the case). Therefore explicit exception is thrown if the null
// object has been passed.
// the_style = new Aspect_FontStyle ();
// jcas_SetHandle ( env, style, the_style );
jcas_ThrowException (env, "NULL object has been passed while expecting an object manipulated by value");
} // end if
Aspect_FontMapEntry* theret = new Aspect_FontMapEntry((Standard_Integer) index,*the_style);
jcas_SetHandle(env,theobj,theret);
}
catch (Standard_Failure) {
Standard_SStream Err;
Err << Standard_Failure::Caught();
Err << (char) 0;
jcas_ThrowException(env,Err.str().c_str());
}
}
alock.Release();
}
JNIEXPORT void JNICALL Java_SampleHLRJni_Aspect_1FontMapEntry_Aspect_1FontMapEntry_1Create_13 (JNIEnv *env, jobject theobj, jobject entry)
{
jcas_Locking alock(env);
{
try {
Aspect_FontMapEntry* the_entry = (Aspect_FontMapEntry*) jcas_GetHandle(env,entry);
if ( the_entry == NULL ) {
// The following assumes availability of the default constructor (what may not
// always be the case). Therefore explicit exception is thrown if the null
// object has been passed.
// the_entry = new Aspect_FontMapEntry ();
// jcas_SetHandle ( env, entry, the_entry );
jcas_ThrowException (env, "NULL object has been passed while expecting an object manipulated by value");
} // end if
Aspect_FontMapEntry* theret = new Aspect_FontMapEntry(*the_entry);
jcas_SetHandle(env,theobj,theret);
}
catch (Standard_Failure) {
Standard_SStream Err;
Err << Standard_Failure::Caught();
Err << (char) 0;
jcas_ThrowException(env,Err.str().c_str());
}
}
alock.Release();
}
JNIEXPORT void JNICALL Java_SampleHLRJni_Aspect_1FontMapEntry_Aspect_1FontMapEntry_1SetValue_11 (JNIEnv *env, jobject theobj, jint index, jobject style)
{
jcas_Locking alock(env);
{
try {
Aspect_FontStyle* the_style = (Aspect_FontStyle*) jcas_GetHandle(env,style);
if ( the_style == NULL ) {
// The following assumes availability of the default constructor (what may not
// always be the case). Therefore explicit exception is thrown if the null
// object has been passed.
// the_style = new Aspect_FontStyle ();
// jcas_SetHandle ( env, style, the_style );
jcas_ThrowException (env, "NULL object has been passed while expecting an object manipulated by value");
} // end if
Aspect_FontMapEntry* the_this = (Aspect_FontMapEntry*) jcas_GetHandle(env,theobj);
the_this->SetValue((Standard_Integer) index,*the_style);
}
catch (Standard_Failure) {
Standard_SStream Err;
Err << Standard_Failure::Caught();
Err << (char) 0;
jcas_ThrowException(env,Err.str().c_str());
}
}
alock.Release();
}
JNIEXPORT void JNICALL Java_SampleHLRJni_Aspect_1FontMapEntry_Aspect_1FontMapEntry_1SetValue_12 (JNIEnv *env, jobject theobj, jobject entry)
{
jcas_Locking alock(env);
{
try {
Aspect_FontMapEntry* the_entry = (Aspect_FontMapEntry*) jcas_GetHandle(env,entry);
if ( the_entry == NULL ) {
// The following assumes availability of the default constructor (what may not
// always be the case). Therefore explicit exception is thrown if the null
// object has been passed.
// the_entry = new Aspect_FontMapEntry ();
// jcas_SetHandle ( env, entry, the_entry );
jcas_ThrowException (env, "NULL object has been passed while expecting an object manipulated by value");
} // end if
Aspect_FontMapEntry* the_this = (Aspect_FontMapEntry*) jcas_GetHandle(env,theobj);
the_this->SetValue(*the_entry);
}
catch (Standard_Failure) {
Standard_SStream Err;
Err << Standard_Failure::Caught();
Err << (char) 0;
jcas_ThrowException(env,Err.str().c_str());
}
}
alock.Release();
}
JNIEXPORT void JNICALL Java_SampleHLRJni_Aspect_1FontMapEntry_SetType (JNIEnv *env, jobject theobj, jobject Style)
{
jcas_Locking alock(env);
{
try {
Aspect_FontStyle* the_Style = (Aspect_FontStyle*) jcas_GetHandle(env,Style);
if ( the_Style == NULL ) {
// The following assumes availability of the default constructor (what may not
// always be the case). Therefore explicit exception is thrown if the null
// object has been passed.
// the_Style = new Aspect_FontStyle ();
// jcas_SetHandle ( env, Style, the_Style );
jcas_ThrowException (env, "NULL object has been passed while expecting an object manipulated by value");
} // end if
Aspect_FontMapEntry* the_this = (Aspect_FontMapEntry*) jcas_GetHandle(env,theobj);
the_this->SetType(*the_Style);
}
catch (Standard_Failure) {
Standard_SStream Err;
Err << Standard_Failure::Caught();
Err << (char) 0;
jcas_ThrowException(env,Err.str().c_str());
}
}
alock.Release();
}
JNIEXPORT jobject JNICALL Java_SampleHLRJni_Aspect_1FontMapEntry_Type (JNIEnv *env, jobject theobj)
{
jobject thejret;
jcas_Locking alock(env);
{
try {
Aspect_FontMapEntry* the_this = (Aspect_FontMapEntry*) jcas_GetHandle(env,theobj);
const Aspect_FontStyle& theret = the_this->Type();
thejret = jcas_CreateObject(env,"CASCADESamplesJni/Aspect_FontStyle",&theret,0);
}
catch (Standard_Failure) {
Standard_SStream Err;
Err << Standard_Failure::Caught();
Err << (char) 0;
jcas_ThrowException(env,Err.str().c_str());
}
}
alock.Release();
return thejret;
}
JNIEXPORT void JNICALL Java_SampleHLRJni_Aspect_1FontMapEntry_SetIndex (JNIEnv *env, jobject theobj, jint index)
{
jcas_Locking alock(env);
{
try {
Aspect_FontMapEntry* the_this = (Aspect_FontMapEntry*) jcas_GetHandle(env,theobj);
the_this->SetIndex((Standard_Integer) index);
}
catch (Standard_Failure) {
Standard_SStream Err;
Err << Standard_Failure::Caught();
Err << (char) 0;
jcas_ThrowException(env,Err.str().c_str());
}
}
alock.Release();
}
JNIEXPORT jint JNICALL Java_SampleHLRJni_Aspect_1FontMapEntry_Index (JNIEnv *env, jobject theobj)
{
jint thejret;
jcas_Locking alock(env);
{
try {
Aspect_FontMapEntry* the_this = (Aspect_FontMapEntry*) jcas_GetHandle(env,theobj);
thejret = the_this->Index();
}
catch (Standard_Failure) {
Standard_SStream Err;
Err << Standard_Failure::Caught();
Err << (char) 0;
jcas_ThrowException(env,Err.str().c_str());
}
}
alock.Release();
return thejret;
}
JNIEXPORT void JNICALL Java_SampleHLRJni_Aspect_1FontMapEntry_Free (JNIEnv *env, jobject theobj)
{
jcas_Locking alock(env);
{
try {
Aspect_FontMapEntry* the_this = (Aspect_FontMapEntry*) jcas_GetHandle(env,theobj);
the_this->Free();
}
catch (Standard_Failure) {
Standard_SStream Err;
Err << Standard_Failure::Caught();
Err << (char) 0;
jcas_ThrowException(env,Err.str().c_str());
}
}
alock.Release();
}
JNIEXPORT jboolean JNICALL Java_SampleHLRJni_Aspect_1FontMapEntry_IsAllocated (JNIEnv *env, jobject theobj)
{
jboolean thejret;
jcas_Locking alock(env);
{
try {
Aspect_FontMapEntry* the_this = (Aspect_FontMapEntry*) jcas_GetHandle(env,theobj);
thejret = the_this->IsAllocated();
}
catch (Standard_Failure) {
Standard_SStream Err;
Err << Standard_Failure::Caught();
Err << (char) 0;
jcas_ThrowException(env,Err.str().c_str());
}
}
alock.Release();
return thejret;
}
JNIEXPORT void JNICALL Java_SampleHLRJni_Aspect_1FontMapEntry_Dump (JNIEnv *env, jobject theobj)
{
jcas_Locking alock(env);
{
try {
Aspect_FontMapEntry* the_this = (Aspect_FontMapEntry*) jcas_GetHandle(env,theobj);
the_this->Dump();
}
catch (Standard_Failure) {
Standard_SStream Err;
Err << Standard_Failure::Caught();
Err << (char) 0;
jcas_ThrowException(env,Err.str().c_str());
}
}
alock.Release();
}
JNIEXPORT void JNICALL Java_SampleHLRJni_Aspect_1FontMapEntry_FinalizeValue(JNIEnv *, jclass, jlong theid)
{
if (theid) {
Aspect_FontMapEntry* theobj = (Aspect_FontMapEntry*) theid;
delete theobj;
}
}
}

View File

@@ -0,0 +1,225 @@
//
// Copyright (C) 1991 - 2000 by
// Matra Datavision SA. All rights reserved.
//
// Copyright (C) 2001 - 2004 by
// Open CASCADE SA. All rights reserved.
//
// This file is part of the Open CASCADE Technology software.
//
// This software may be distributed and/or modified under the terms and
// conditions of the Open CASCADE Public License as defined by Open CASCADE SA
// and appearing in the file LICENSE included in the packaging of this file.
//
// This software is distributed on an "AS IS" basis, without warranty of any
// kind, and Open CASCADE SA hereby disclaims all such warranties,
// including without limitation, any warranties of merchantability, fitness
// for a particular purpose or non-infringement. Please see the License for
// the specific terms and conditions governing rights and limitations under the
// License.
#include <SampleHLRJni_Aspect_FontMap.h>
#include <Aspect_FontMap.hxx>
#include <jcas.hxx>
#include <stdlib.h>
#include <Standard_ErrorHandler.hxx>
#include <Standard_Failure.hxx>
#include <Standard_SStream.hxx>
#include <Aspect_FontMapEntry.hxx>
#include <Standard_Integer.hxx>
#include <Aspect_FontStyle.hxx>
extern "C" {
JNIEXPORT void JNICALL Java_SampleHLRJni_Aspect_1FontMap_Aspect_1FontMap_1Create_10 (JNIEnv *env, jobject theobj)
{
jcas_Locking alock(env);
{
try {
Handle(Aspect_FontMap)* theret = new Handle(Aspect_FontMap);
*theret = new Aspect_FontMap();
jcas_SetHandle(env,theobj,theret);
}
catch (Standard_Failure) {
Standard_SStream Err;
Err << Standard_Failure::Caught();
Err << (char) 0;
jcas_ThrowException(env,Err.str().c_str());
}
}
alock.Release();
}
JNIEXPORT void JNICALL Java_SampleHLRJni_Aspect_1FontMap_Aspect_1FontMap_1AddEntry_11 (JNIEnv *env, jobject theobj, jobject AnEntry)
{
jcas_Locking alock(env);
{
try {
Aspect_FontMapEntry* the_AnEntry = (Aspect_FontMapEntry*) jcas_GetHandle(env,AnEntry);
if ( the_AnEntry == NULL ) {
// The following assumes availability of the default constructor (what may not
// always be the case). Therefore explicit exception is thrown if the null
// object has been passed.
// the_AnEntry = new Aspect_FontMapEntry ();
// jcas_SetHandle ( env, AnEntry, the_AnEntry );
jcas_ThrowException (env, "NULL object has been passed while expecting an object manipulated by value");
} // end if
Handle(Aspect_FontMap) the_this = *((Handle(Aspect_FontMap)*) jcas_GetHandle(env,theobj));
the_this->AddEntry(*the_AnEntry);
}
catch (Standard_Failure) {
Standard_SStream Err;
Err << Standard_Failure::Caught();
Err << (char) 0;
jcas_ThrowException(env,Err.str().c_str());
}
}
alock.Release();
}
JNIEXPORT jint JNICALL Java_SampleHLRJni_Aspect_1FontMap_Aspect_1FontMap_1AddEntry_12 (JNIEnv *env, jobject theobj, jobject aStyle)
{
jint thejret;
jcas_Locking alock(env);
{
try {
Aspect_FontStyle* the_aStyle = (Aspect_FontStyle*) jcas_GetHandle(env,aStyle);
if ( the_aStyle == NULL ) {
// The following assumes availability of the default constructor (what may not
// always be the case). Therefore explicit exception is thrown if the null
// object has been passed.
// the_aStyle = new Aspect_FontStyle ();
// jcas_SetHandle ( env, aStyle, the_aStyle );
jcas_ThrowException (env, "NULL object has been passed while expecting an object manipulated by value");
} // end if
Handle(Aspect_FontMap) the_this = *((Handle(Aspect_FontMap)*) jcas_GetHandle(env,theobj));
thejret = the_this->AddEntry(*the_aStyle);
}
catch (Standard_Failure) {
Standard_SStream Err;
Err << Standard_Failure::Caught();
Err << (char) 0;
jcas_ThrowException(env,Err.str().c_str());
}
}
alock.Release();
return thejret;
}
JNIEXPORT jint JNICALL Java_SampleHLRJni_Aspect_1FontMap_Size (JNIEnv *env, jobject theobj)
{
jint thejret;
jcas_Locking alock(env);
{
try {
Handle(Aspect_FontMap) the_this = *((Handle(Aspect_FontMap)*) jcas_GetHandle(env,theobj));
thejret = the_this->Size();
}
catch (Standard_Failure) {
Standard_SStream Err;
Err << Standard_Failure::Caught();
Err << (char) 0;
jcas_ThrowException(env,Err.str().c_str());
}
}
alock.Release();
return thejret;
}
JNIEXPORT jint JNICALL Java_SampleHLRJni_Aspect_1FontMap_Index (JNIEnv *env, jobject theobj, jint aFontmapIndex)
{
jint thejret;
jcas_Locking alock(env);
{
try {
Handle(Aspect_FontMap) the_this = *((Handle(Aspect_FontMap)*) jcas_GetHandle(env,theobj));
thejret = the_this->Index((Standard_Integer) aFontmapIndex);
}
catch (Standard_Failure) {
Standard_SStream Err;
Err << Standard_Failure::Caught();
Err << (char) 0;
jcas_ThrowException(env,Err.str().c_str());
}
}
alock.Release();
return thejret;
}
JNIEXPORT void JNICALL Java_SampleHLRJni_Aspect_1FontMap_Dump (JNIEnv *env, jobject theobj)
{
jcas_Locking alock(env);
{
try {
Handle(Aspect_FontMap) the_this = *((Handle(Aspect_FontMap)*) jcas_GetHandle(env,theobj));
the_this->Dump();
}
catch (Standard_Failure) {
Standard_SStream Err;
Err << Standard_Failure::Caught();
Err << (char) 0;
jcas_ThrowException(env,Err.str().c_str());
}
}
alock.Release();
}
JNIEXPORT jobject JNICALL Java_SampleHLRJni_Aspect_1FontMap_Entry (JNIEnv *env, jobject theobj, jint AnIndex)
{
jobject thejret;
jcas_Locking alock(env);
{
try {
Handle(Aspect_FontMap) the_this = *((Handle(Aspect_FontMap)*) jcas_GetHandle(env,theobj));
Aspect_FontMapEntry* theret = new Aspect_FontMapEntry(the_this->Entry((Standard_Integer) AnIndex));
thejret = jcas_CreateObject(env,"CASCADESamplesJni/Aspect_FontMapEntry",theret);
}
catch (Standard_Failure) {
Standard_SStream Err;
Err << Standard_Failure::Caught();
Err << (char) 0;
jcas_ThrowException(env,Err.str().c_str());
}
}
alock.Release();
return thejret;
}
}

File diff suppressed because it is too large Load Diff

View File

@@ -0,0 +1,272 @@
//
// Copyright (C) 1991 - 2000 by
// Matra Datavision SA. All rights reserved.
//
// Copyright (C) 2001 - 2004 by
// Open CASCADE SA. All rights reserved.
//
// This file is part of the Open CASCADE Technology software.
//
// This software may be distributed and/or modified under the terms and
// conditions of the Open CASCADE Public License as defined by Open CASCADE SA
// and appearing in the file LICENSE included in the packaging of this file.
//
// This software is distributed on an "AS IS" basis, without warranty of any
// kind, and Open CASCADE SA hereby disclaims all such warranties,
// including without limitation, any warranties of merchantability, fitness
// for a particular purpose or non-infringement. Please see the License for
// the specific terms and conditions governing rights and limitations under the
// License.
#include <SampleHLRJni_Aspect_GenericColorMap.h>
#include <Aspect_GenericColorMap.hxx>
#include <jcas.hxx>
#include <stdlib.h>
#include <Standard_ErrorHandler.hxx>
#include <Standard_Failure.hxx>
#include <Standard_SStream.hxx>
#include <Aspect_ColorMapEntry.hxx>
#include <Standard_Integer.hxx>
#include <Quantity_Color.hxx>
extern "C" {
JNIEXPORT void JNICALL Java_SampleHLRJni_Aspect_1GenericColorMap_Aspect_1GenericColorMap_1Create_10 (JNIEnv *env, jobject theobj)
{
jcas_Locking alock(env);
{
try {
Handle(Aspect_GenericColorMap)* theret = new Handle(Aspect_GenericColorMap);
*theret = new Aspect_GenericColorMap();
jcas_SetHandle(env,theobj,theret);
}
catch (Standard_Failure) {
Standard_SStream Err;
Err << Standard_Failure::Caught();
Err << (char) 0;
jcas_ThrowException(env,Err.str().c_str());
}
}
alock.Release();
}
JNIEXPORT void JNICALL Java_SampleHLRJni_Aspect_1GenericColorMap_Aspect_1GenericColorMap_1AddEntry_11 (JNIEnv *env, jobject theobj, jobject AnEntry)
{
jcas_Locking alock(env);
{
try {
Aspect_ColorMapEntry* the_AnEntry = (Aspect_ColorMapEntry*) jcas_GetHandle(env,AnEntry);
if ( the_AnEntry == NULL ) {
// The following assumes availability of the default constructor (what may not
// always be the case). Therefore explicit exception is thrown if the null
// object has been passed.
// the_AnEntry = new Aspect_ColorMapEntry ();
// jcas_SetHandle ( env, AnEntry, the_AnEntry );
jcas_ThrowException (env, "NULL object has been passed while expecting an object manipulated by value");
} // end if
Handle(Aspect_GenericColorMap) the_this = *((Handle(Aspect_GenericColorMap)*) jcas_GetHandle(env,theobj));
the_this->AddEntry(*the_AnEntry);
}
catch (Standard_Failure) {
Standard_SStream Err;
Err << Standard_Failure::Caught();
Err << (char) 0;
jcas_ThrowException(env,Err.str().c_str());
}
}
alock.Release();
}
JNIEXPORT jint JNICALL Java_SampleHLRJni_Aspect_1GenericColorMap_Aspect_1GenericColorMap_1AddEntry_12 (JNIEnv *env, jobject theobj, jobject aColor)
{
jint thejret;
jcas_Locking alock(env);
{
try {
Quantity_Color* the_aColor = (Quantity_Color*) jcas_GetHandle(env,aColor);
if ( the_aColor == NULL ) {
// The following assumes availability of the default constructor (what may not
// always be the case). Therefore explicit exception is thrown if the null
// object has been passed.
// the_aColor = new Quantity_Color ();
// jcas_SetHandle ( env, aColor, the_aColor );
jcas_ThrowException (env, "NULL object has been passed while expecting an object manipulated by value");
} // end if
Handle(Aspect_GenericColorMap) the_this = *((Handle(Aspect_GenericColorMap)*) jcas_GetHandle(env,theobj));
thejret = the_this->AddEntry(*the_aColor);
}
catch (Standard_Failure) {
Standard_SStream Err;
Err << Standard_Failure::Caught();
Err << (char) 0;
jcas_ThrowException(env,Err.str().c_str());
}
}
alock.Release();
return thejret;
}
JNIEXPORT void JNICALL Java_SampleHLRJni_Aspect_1GenericColorMap_RemoveEntry (JNIEnv *env, jobject theobj, jint AColorMapEntryIndex)
{
jcas_Locking alock(env);
{
try {
Handle(Aspect_GenericColorMap) the_this = *((Handle(Aspect_GenericColorMap)*) jcas_GetHandle(env,theobj));
the_this->RemoveEntry((Standard_Integer) AColorMapEntryIndex);
}
catch (Standard_Failure) {
Standard_SStream Err;
Err << Standard_Failure::Caught();
Err << (char) 0;
jcas_ThrowException(env,Err.str().c_str());
}
}
alock.Release();
}
JNIEXPORT jint JNICALL Java_SampleHLRJni_Aspect_1GenericColorMap_FindColorMapIndex (JNIEnv *env, jobject theobj, jint AColorMapEntryIndex)
{
jint thejret;
jcas_Locking alock(env);
{
try {
Handle(Aspect_GenericColorMap) the_this = *((Handle(Aspect_GenericColorMap)*) jcas_GetHandle(env,theobj));
thejret = the_this->FindColorMapIndex((Standard_Integer) AColorMapEntryIndex);
}
catch (Standard_Failure) {
Standard_SStream Err;
Err << Standard_Failure::Caught();
Err << (char) 0;
jcas_ThrowException(env,Err.str().c_str());
}
}
alock.Release();
return thejret;
}
JNIEXPORT jobject JNICALL Java_SampleHLRJni_Aspect_1GenericColorMap_FindEntry (JNIEnv *env, jobject theobj, jint AColorMapEntryIndex)
{
jobject thejret;
jcas_Locking alock(env);
{
try {
Handle(Aspect_GenericColorMap) the_this = *((Handle(Aspect_GenericColorMap)*) jcas_GetHandle(env,theobj));
const Aspect_ColorMapEntry& theret = the_this->FindEntry((Standard_Integer) AColorMapEntryIndex);
thejret = jcas_CreateObject(env,"CASCADESamplesJni/Aspect_ColorMapEntry",&theret,0);
}
catch (Standard_Failure) {
Standard_SStream Err;
Err << Standard_Failure::Caught();
Err << (char) 0;
jcas_ThrowException(env,Err.str().c_str());
}
}
alock.Release();
return thejret;
}
JNIEXPORT jint JNICALL Java_SampleHLRJni_Aspect_1GenericColorMap_NearestColorMapIndex (JNIEnv *env, jobject theobj, jobject aColor)
{
jint thejret;
jcas_Locking alock(env);
{
try {
Quantity_Color* the_aColor = (Quantity_Color*) jcas_GetHandle(env,aColor);
if ( the_aColor == NULL ) {
// The following assumes availability of the default constructor (what may not
// always be the case). Therefore explicit exception is thrown if the null
// object has been passed.
// the_aColor = new Quantity_Color ();
// jcas_SetHandle ( env, aColor, the_aColor );
jcas_ThrowException (env, "NULL object has been passed while expecting an object manipulated by value");
} // end if
Handle(Aspect_GenericColorMap) the_this = *((Handle(Aspect_GenericColorMap)*) jcas_GetHandle(env,theobj));
thejret = the_this->NearestColorMapIndex(*the_aColor);
}
catch (Standard_Failure) {
Standard_SStream Err;
Err << Standard_Failure::Caught();
Err << (char) 0;
jcas_ThrowException(env,Err.str().c_str());
}
}
alock.Release();
return thejret;
}
JNIEXPORT jobject JNICALL Java_SampleHLRJni_Aspect_1GenericColorMap_NearestEntry (JNIEnv *env, jobject theobj, jobject aColor)
{
jobject thejret;
jcas_Locking alock(env);
{
try {
Quantity_Color* the_aColor = (Quantity_Color*) jcas_GetHandle(env,aColor);
if ( the_aColor == NULL ) {
// The following assumes availability of the default constructor (what may not
// always be the case). Therefore explicit exception is thrown if the null
// object has been passed.
// the_aColor = new Quantity_Color ();
// jcas_SetHandle ( env, aColor, the_aColor );
jcas_ThrowException (env, "NULL object has been passed while expecting an object manipulated by value");
} // end if
Handle(Aspect_GenericColorMap) the_this = *((Handle(Aspect_GenericColorMap)*) jcas_GetHandle(env,theobj));
const Aspect_ColorMapEntry& theret = the_this->NearestEntry(*the_aColor);
thejret = jcas_CreateObject(env,"CASCADESamplesJni/Aspect_ColorMapEntry",&theret,0);
}
catch (Standard_Failure) {
Standard_SStream Err;
Err << Standard_Failure::Caught();
Err << (char) 0;
jcas_ThrowException(env,Err.str().c_str());
}
}
alock.Release();
return thejret;
}
}

View File

@@ -0,0 +1,33 @@
//
// Copyright (C) 1991 - 2000 by
// Matra Datavision SA. All rights reserved.
//
// Copyright (C) 2001 - 2004 by
// Open CASCADE SA. All rights reserved.
//
// This file is part of the Open CASCADE Technology software.
//
// This software may be distributed and/or modified under the terms and
// conditions of the Open CASCADE Public License as defined by Open CASCADE SA
// and appearing in the file LICENSE included in the packaging of this file.
//
// This software is distributed on an "AS IS" basis, without warranty of any
// kind, and Open CASCADE SA hereby disclaims all such warranties,
// including without limitation, any warranties of merchantability, fitness
// for a particular purpose or non-infringement. Please see the License for
// the specific terms and conditions governing rights and limitations under the
// License.
#include <SampleHLRJni_Aspect_GraphicDevice.h>
#include <Aspect_GraphicDevice.hxx>
#include <jcas.hxx>
#include <stdlib.h>
#include <Standard_ErrorHandler.hxx>
#include <Standard_Failure.hxx>
#include <Standard_SStream.hxx>
extern "C" {
}

View File

@@ -0,0 +1,363 @@
//
// Copyright (C) 1991 - 2000 by
// Matra Datavision SA. All rights reserved.
//
// Copyright (C) 2001 - 2004 by
// Open CASCADE SA. All rights reserved.
//
// This file is part of the Open CASCADE Technology software.
//
// This software may be distributed and/or modified under the terms and
// conditions of the Open CASCADE Public License as defined by Open CASCADE SA
// and appearing in the file LICENSE included in the packaging of this file.
//
// This software is distributed on an "AS IS" basis, without warranty of any
// kind, and Open CASCADE SA hereby disclaims all such warranties,
// including without limitation, any warranties of merchantability, fitness
// for a particular purpose or non-infringement. Please see the License for
// the specific terms and conditions governing rights and limitations under the
// License.
#include <SampleHLRJni_Aspect_LineStyle.h>
#include <Aspect_LineStyle.hxx>
#include <jcas.hxx>
#include <stdlib.h>
#include <Standard_ErrorHandler.hxx>
#include <Standard_Failure.hxx>
#include <Standard_SStream.hxx>
#include <Aspect_TypeOfLine.hxx>
#include <TColQuantity_Array1OfLength.hxx>
#include <Standard_Integer.hxx>
#include <Standard_Boolean.hxx>
extern "C" {
JNIEXPORT void JNICALL Java_SampleHLRJni_Aspect_1LineStyle_Aspect_1LineStyle_1Create_11 (JNIEnv *env, jobject theobj)
{
jcas_Locking alock(env);
{
try {
Aspect_LineStyle* theret = new Aspect_LineStyle();
jcas_SetHandle(env,theobj,theret);
}
catch (Standard_Failure) {
Standard_SStream Err;
Err << Standard_Failure::Caught();
Err << (char) 0;
jcas_ThrowException(env,Err.str().c_str());
}
}
alock.Release();
}
JNIEXPORT void JNICALL Java_SampleHLRJni_Aspect_1LineStyle_Aspect_1LineStyle_1Create_12 (JNIEnv *env, jobject theobj, jshort Type)
{
jcas_Locking alock(env);
{
try {
Aspect_LineStyle* theret = new Aspect_LineStyle((Aspect_TypeOfLine) Type);
jcas_SetHandle(env,theobj,theret);
}
catch (Standard_Failure) {
Standard_SStream Err;
Err << Standard_Failure::Caught();
Err << (char) 0;
jcas_ThrowException(env,Err.str().c_str());
}
}
alock.Release();
}
JNIEXPORT void JNICALL Java_SampleHLRJni_Aspect_1LineStyle_Aspect_1LineStyle_1Create_13 (JNIEnv *env, jobject theobj, jobject Style)
{
jcas_Locking alock(env);
{
try {
TColQuantity_Array1OfLength* the_Style = (TColQuantity_Array1OfLength*) jcas_GetHandle(env,Style);
if ( the_Style == NULL ) {
// The following assumes availability of the default constructor (what may not
// always be the case). Therefore explicit exception is thrown if the null
// object has been passed.
// the_Style = new TColQuantity_Array1OfLength ();
// jcas_SetHandle ( env, Style, the_Style );
jcas_ThrowException (env, "NULL object has been passed while expecting an object manipulated by value");
} // end if
Aspect_LineStyle* theret = new Aspect_LineStyle(*the_Style);
jcas_SetHandle(env,theobj,theret);
}
catch (Standard_Failure) {
Standard_SStream Err;
Err << Standard_Failure::Caught();
Err << (char) 0;
jcas_ThrowException(env,Err.str().c_str());
}
}
alock.Release();
}
JNIEXPORT jobject JNICALL Java_SampleHLRJni_Aspect_1LineStyle_Assign (JNIEnv *env, jobject theobj, jobject Other)
{
jobject thejret;
jcas_Locking alock(env);
{
try {
Aspect_LineStyle* the_Other = (Aspect_LineStyle*) jcas_GetHandle(env,Other);
if ( the_Other == NULL ) {
// The following assumes availability of the default constructor (what may not
// always be the case). Therefore explicit exception is thrown if the null
// object has been passed.
// the_Other = new Aspect_LineStyle ();
// jcas_SetHandle ( env, Other, the_Other );
jcas_ThrowException (env, "NULL object has been passed while expecting an object manipulated by value");
} // end if
Aspect_LineStyle* the_this = (Aspect_LineStyle*) jcas_GetHandle(env,theobj);
const Aspect_LineStyle& theret = the_this->Assign(*the_Other);
thejret = jcas_CreateObject(env,"CASCADESamplesJni/Aspect_LineStyle",&theret,0);
}
catch (Standard_Failure) {
Standard_SStream Err;
Err << Standard_Failure::Caught();
Err << (char) 0;
jcas_ThrowException(env,Err.str().c_str());
}
}
alock.Release();
return thejret;
}
JNIEXPORT void JNICALL Java_SampleHLRJni_Aspect_1LineStyle_Aspect_1LineStyle_1SetValues_11 (JNIEnv *env, jobject theobj, jshort Type)
{
jcas_Locking alock(env);
{
try {
Aspect_LineStyle* the_this = (Aspect_LineStyle*) jcas_GetHandle(env,theobj);
the_this->SetValues((Aspect_TypeOfLine) Type);
}
catch (Standard_Failure) {
Standard_SStream Err;
Err << Standard_Failure::Caught();
Err << (char) 0;
jcas_ThrowException(env,Err.str().c_str());
}
}
alock.Release();
}
JNIEXPORT void JNICALL Java_SampleHLRJni_Aspect_1LineStyle_Aspect_1LineStyle_1SetValues_12 (JNIEnv *env, jobject theobj, jobject Style)
{
jcas_Locking alock(env);
{
try {
TColQuantity_Array1OfLength* the_Style = (TColQuantity_Array1OfLength*) jcas_GetHandle(env,Style);
if ( the_Style == NULL ) {
// The following assumes availability of the default constructor (what may not
// always be the case). Therefore explicit exception is thrown if the null
// object has been passed.
// the_Style = new TColQuantity_Array1OfLength ();
// jcas_SetHandle ( env, Style, the_Style );
jcas_ThrowException (env, "NULL object has been passed while expecting an object manipulated by value");
} // end if
Aspect_LineStyle* the_this = (Aspect_LineStyle*) jcas_GetHandle(env,theobj);
the_this->SetValues(*the_Style);
}
catch (Standard_Failure) {
Standard_SStream Err;
Err << Standard_Failure::Caught();
Err << (char) 0;
jcas_ThrowException(env,Err.str().c_str());
}
}
alock.Release();
}
JNIEXPORT jshort JNICALL Java_SampleHLRJni_Aspect_1LineStyle_Style (JNIEnv *env, jobject theobj)
{
jshort thejret;
jcas_Locking alock(env);
{
try {
Aspect_LineStyle* the_this = (Aspect_LineStyle*) jcas_GetHandle(env,theobj);
thejret = the_this->Style();
}
catch (Standard_Failure) {
Standard_SStream Err;
Err << Standard_Failure::Caught();
Err << (char) 0;
jcas_ThrowException(env,Err.str().c_str());
}
}
alock.Release();
return thejret;
}
JNIEXPORT jint JNICALL Java_SampleHLRJni_Aspect_1LineStyle_Length (JNIEnv *env, jobject theobj)
{
jint thejret;
jcas_Locking alock(env);
{
try {
Aspect_LineStyle* the_this = (Aspect_LineStyle*) jcas_GetHandle(env,theobj);
thejret = the_this->Length();
}
catch (Standard_Failure) {
Standard_SStream Err;
Err << Standard_Failure::Caught();
Err << (char) 0;
jcas_ThrowException(env,Err.str().c_str());
}
}
alock.Release();
return thejret;
}
JNIEXPORT jobject JNICALL Java_SampleHLRJni_Aspect_1LineStyle_Values (JNIEnv *env, jobject theobj)
{
jobject thejret;
jcas_Locking alock(env);
{
try {
Aspect_LineStyle* the_this = (Aspect_LineStyle*) jcas_GetHandle(env,theobj);
const TColQuantity_Array1OfLength& theret = the_this->Values();
thejret = jcas_CreateObject(env,"CASCADESamplesJni/TColQuantity_Array1OfLength",&theret,0);
}
catch (Standard_Failure) {
Standard_SStream Err;
Err << Standard_Failure::Caught();
Err << (char) 0;
jcas_ThrowException(env,Err.str().c_str());
}
}
alock.Release();
return thejret;
}
JNIEXPORT jboolean JNICALL Java_SampleHLRJni_Aspect_1LineStyle_IsEqual (JNIEnv *env, jobject theobj, jobject Other)
{
jboolean thejret;
jcas_Locking alock(env);
{
try {
Aspect_LineStyle* the_Other = (Aspect_LineStyle*) jcas_GetHandle(env,Other);
if ( the_Other == NULL ) {
// The following assumes availability of the default constructor (what may not
// always be the case). Therefore explicit exception is thrown if the null
// object has been passed.
// the_Other = new Aspect_LineStyle ();
// jcas_SetHandle ( env, Other, the_Other );
jcas_ThrowException (env, "NULL object has been passed while expecting an object manipulated by value");
} // end if
Aspect_LineStyle* the_this = (Aspect_LineStyle*) jcas_GetHandle(env,theobj);
thejret = the_this->IsEqual(*the_Other);
}
catch (Standard_Failure) {
Standard_SStream Err;
Err << Standard_Failure::Caught();
Err << (char) 0;
jcas_ThrowException(env,Err.str().c_str());
}
}
alock.Release();
return thejret;
}
JNIEXPORT jboolean JNICALL Java_SampleHLRJni_Aspect_1LineStyle_IsNotEqual (JNIEnv *env, jobject theobj, jobject Other)
{
jboolean thejret;
jcas_Locking alock(env);
{
try {
Aspect_LineStyle* the_Other = (Aspect_LineStyle*) jcas_GetHandle(env,Other);
if ( the_Other == NULL ) {
// The following assumes availability of the default constructor (what may not
// always be the case). Therefore explicit exception is thrown if the null
// object has been passed.
// the_Other = new Aspect_LineStyle ();
// jcas_SetHandle ( env, Other, the_Other );
jcas_ThrowException (env, "NULL object has been passed while expecting an object manipulated by value");
} // end if
Aspect_LineStyle* the_this = (Aspect_LineStyle*) jcas_GetHandle(env,theobj);
thejret = the_this->IsNotEqual(*the_Other);
}
catch (Standard_Failure) {
Standard_SStream Err;
Err << Standard_Failure::Caught();
Err << (char) 0;
jcas_ThrowException(env,Err.str().c_str());
}
}
alock.Release();
return thejret;
}
JNIEXPORT void JNICALL Java_SampleHLRJni_Aspect_1LineStyle_FinalizeValue(JNIEnv *, jclass, jlong theid)
{
if (theid) {
Aspect_LineStyle* theobj = (Aspect_LineStyle*) theid;
delete theobj;
}
}
}

View File

@@ -0,0 +1,381 @@
//
// Copyright (C) 1991 - 2000 by
// Matra Datavision SA. All rights reserved.
//
// Copyright (C) 2001 - 2004 by
// Open CASCADE SA. All rights reserved.
//
// This file is part of the Open CASCADE Technology software.
//
// This software may be distributed and/or modified under the terms and
// conditions of the Open CASCADE Public License as defined by Open CASCADE SA
// and appearing in the file LICENSE included in the packaging of this file.
//
// This software is distributed on an "AS IS" basis, without warranty of any
// kind, and Open CASCADE SA hereby disclaims all such warranties,
// including without limitation, any warranties of merchantability, fitness
// for a particular purpose or non-infringement. Please see the License for
// the specific terms and conditions governing rights and limitations under the
// License.
#include <SampleHLRJni_Aspect_MarkMapEntry.h>
#include <Aspect_MarkMapEntry.hxx>
#include <jcas.hxx>
#include <stdlib.h>
#include <Standard_ErrorHandler.hxx>
#include <Standard_Failure.hxx>
#include <Standard_SStream.hxx>
#include <Standard_Integer.hxx>
#include <Aspect_MarkerStyle.hxx>
#include <Standard_Boolean.hxx>
extern "C" {
JNIEXPORT void JNICALL Java_SampleHLRJni_Aspect_1MarkMapEntry_Aspect_1MarkMapEntry_1Create_11 (JNIEnv *env, jobject theobj)
{
jcas_Locking alock(env);
{
try {
Aspect_MarkMapEntry* theret = new Aspect_MarkMapEntry();
jcas_SetHandle(env,theobj,theret);
}
catch (Standard_Failure) {
Standard_SStream Err;
Err << Standard_Failure::Caught();
Err << (char) 0;
jcas_ThrowException(env,Err.str().c_str());
}
}
alock.Release();
}
JNIEXPORT void JNICALL Java_SampleHLRJni_Aspect_1MarkMapEntry_Aspect_1MarkMapEntry_1Create_12 (JNIEnv *env, jobject theobj, jint index, jobject style)
{
jcas_Locking alock(env);
{
try {
Aspect_MarkerStyle* the_style = (Aspect_MarkerStyle*) jcas_GetHandle(env,style);
if ( the_style == NULL ) {
// The following assumes availability of the default constructor (what may not
// always be the case). Therefore explicit exception is thrown if the null
// object has been passed.
// the_style = new Aspect_MarkerStyle ();
// jcas_SetHandle ( env, style, the_style );
jcas_ThrowException (env, "NULL object has been passed while expecting an object manipulated by value");
} // end if
Aspect_MarkMapEntry* theret = new Aspect_MarkMapEntry((Standard_Integer) index,*the_style);
jcas_SetHandle(env,theobj,theret);
}
catch (Standard_Failure) {
Standard_SStream Err;
Err << Standard_Failure::Caught();
Err << (char) 0;
jcas_ThrowException(env,Err.str().c_str());
}
}
alock.Release();
}
JNIEXPORT void JNICALL Java_SampleHLRJni_Aspect_1MarkMapEntry_Aspect_1MarkMapEntry_1Create_13 (JNIEnv *env, jobject theobj, jobject entry)
{
jcas_Locking alock(env);
{
try {
Aspect_MarkMapEntry* the_entry = (Aspect_MarkMapEntry*) jcas_GetHandle(env,entry);
if ( the_entry == NULL ) {
// The following assumes availability of the default constructor (what may not
// always be the case). Therefore explicit exception is thrown if the null
// object has been passed.
// the_entry = new Aspect_MarkMapEntry ();
// jcas_SetHandle ( env, entry, the_entry );
jcas_ThrowException (env, "NULL object has been passed while expecting an object manipulated by value");
} // end if
Aspect_MarkMapEntry* theret = new Aspect_MarkMapEntry(*the_entry);
jcas_SetHandle(env,theobj,theret);
}
catch (Standard_Failure) {
Standard_SStream Err;
Err << Standard_Failure::Caught();
Err << (char) 0;
jcas_ThrowException(env,Err.str().c_str());
}
}
alock.Release();
}
JNIEXPORT void JNICALL Java_SampleHLRJni_Aspect_1MarkMapEntry_Aspect_1MarkMapEntry_1SetValue_11 (JNIEnv *env, jobject theobj, jint index, jobject style)
{
jcas_Locking alock(env);
{
try {
Aspect_MarkerStyle* the_style = (Aspect_MarkerStyle*) jcas_GetHandle(env,style);
if ( the_style == NULL ) {
// The following assumes availability of the default constructor (what may not
// always be the case). Therefore explicit exception is thrown if the null
// object has been passed.
// the_style = new Aspect_MarkerStyle ();
// jcas_SetHandle ( env, style, the_style );
jcas_ThrowException (env, "NULL object has been passed while expecting an object manipulated by value");
} // end if
Aspect_MarkMapEntry* the_this = (Aspect_MarkMapEntry*) jcas_GetHandle(env,theobj);
the_this->SetValue((Standard_Integer) index,*the_style);
}
catch (Standard_Failure) {
Standard_SStream Err;
Err << Standard_Failure::Caught();
Err << (char) 0;
jcas_ThrowException(env,Err.str().c_str());
}
}
alock.Release();
}
JNIEXPORT void JNICALL Java_SampleHLRJni_Aspect_1MarkMapEntry_Aspect_1MarkMapEntry_1SetValue_12 (JNIEnv *env, jobject theobj, jobject entry)
{
jcas_Locking alock(env);
{
try {
Aspect_MarkMapEntry* the_entry = (Aspect_MarkMapEntry*) jcas_GetHandle(env,entry);
if ( the_entry == NULL ) {
// The following assumes availability of the default constructor (what may not
// always be the case). Therefore explicit exception is thrown if the null
// object has been passed.
// the_entry = new Aspect_MarkMapEntry ();
// jcas_SetHandle ( env, entry, the_entry );
jcas_ThrowException (env, "NULL object has been passed while expecting an object manipulated by value");
} // end if
Aspect_MarkMapEntry* the_this = (Aspect_MarkMapEntry*) jcas_GetHandle(env,theobj);
the_this->SetValue(*the_entry);
}
catch (Standard_Failure) {
Standard_SStream Err;
Err << Standard_Failure::Caught();
Err << (char) 0;
jcas_ThrowException(env,Err.str().c_str());
}
}
alock.Release();
}
JNIEXPORT void JNICALL Java_SampleHLRJni_Aspect_1MarkMapEntry_SetStyle (JNIEnv *env, jobject theobj, jobject Style)
{
jcas_Locking alock(env);
{
try {
Aspect_MarkerStyle* the_Style = (Aspect_MarkerStyle*) jcas_GetHandle(env,Style);
if ( the_Style == NULL ) {
// The following assumes availability of the default constructor (what may not
// always be the case). Therefore explicit exception is thrown if the null
// object has been passed.
// the_Style = new Aspect_MarkerStyle ();
// jcas_SetHandle ( env, Style, the_Style );
jcas_ThrowException (env, "NULL object has been passed while expecting an object manipulated by value");
} // end if
Aspect_MarkMapEntry* the_this = (Aspect_MarkMapEntry*) jcas_GetHandle(env,theobj);
the_this->SetStyle(*the_Style);
}
catch (Standard_Failure) {
Standard_SStream Err;
Err << Standard_Failure::Caught();
Err << (char) 0;
jcas_ThrowException(env,Err.str().c_str());
}
}
alock.Release();
}
JNIEXPORT jobject JNICALL Java_SampleHLRJni_Aspect_1MarkMapEntry_Style (JNIEnv *env, jobject theobj)
{
jobject thejret;
jcas_Locking alock(env);
{
try {
Aspect_MarkMapEntry* the_this = (Aspect_MarkMapEntry*) jcas_GetHandle(env,theobj);
const Aspect_MarkerStyle& theret = the_this->Style();
thejret = jcas_CreateObject(env,"CASCADESamplesJni/Aspect_MarkerStyle",&theret,0);
}
catch (Standard_Failure) {
Standard_SStream Err;
Err << Standard_Failure::Caught();
Err << (char) 0;
jcas_ThrowException(env,Err.str().c_str());
}
}
alock.Release();
return thejret;
}
JNIEXPORT void JNICALL Java_SampleHLRJni_Aspect_1MarkMapEntry_SetIndex (JNIEnv *env, jobject theobj, jint index)
{
jcas_Locking alock(env);
{
try {
Aspect_MarkMapEntry* the_this = (Aspect_MarkMapEntry*) jcas_GetHandle(env,theobj);
the_this->SetIndex((Standard_Integer) index);
}
catch (Standard_Failure) {
Standard_SStream Err;
Err << Standard_Failure::Caught();
Err << (char) 0;
jcas_ThrowException(env,Err.str().c_str());
}
}
alock.Release();
}
JNIEXPORT jint JNICALL Java_SampleHLRJni_Aspect_1MarkMapEntry_Index (JNIEnv *env, jobject theobj)
{
jint thejret;
jcas_Locking alock(env);
{
try {
Aspect_MarkMapEntry* the_this = (Aspect_MarkMapEntry*) jcas_GetHandle(env,theobj);
thejret = the_this->Index();
}
catch (Standard_Failure) {
Standard_SStream Err;
Err << Standard_Failure::Caught();
Err << (char) 0;
jcas_ThrowException(env,Err.str().c_str());
}
}
alock.Release();
return thejret;
}
JNIEXPORT void JNICALL Java_SampleHLRJni_Aspect_1MarkMapEntry_Free (JNIEnv *env, jobject theobj)
{
jcas_Locking alock(env);
{
try {
Aspect_MarkMapEntry* the_this = (Aspect_MarkMapEntry*) jcas_GetHandle(env,theobj);
the_this->Free();
}
catch (Standard_Failure) {
Standard_SStream Err;
Err << Standard_Failure::Caught();
Err << (char) 0;
jcas_ThrowException(env,Err.str().c_str());
}
}
alock.Release();
}
JNIEXPORT jboolean JNICALL Java_SampleHLRJni_Aspect_1MarkMapEntry_IsAllocated (JNIEnv *env, jobject theobj)
{
jboolean thejret;
jcas_Locking alock(env);
{
try {
Aspect_MarkMapEntry* the_this = (Aspect_MarkMapEntry*) jcas_GetHandle(env,theobj);
thejret = the_this->IsAllocated();
}
catch (Standard_Failure) {
Standard_SStream Err;
Err << Standard_Failure::Caught();
Err << (char) 0;
jcas_ThrowException(env,Err.str().c_str());
}
}
alock.Release();
return thejret;
}
JNIEXPORT void JNICALL Java_SampleHLRJni_Aspect_1MarkMapEntry_Dump (JNIEnv *env, jobject theobj)
{
jcas_Locking alock(env);
{
try {
Aspect_MarkMapEntry* the_this = (Aspect_MarkMapEntry*) jcas_GetHandle(env,theobj);
the_this->Dump();
}
catch (Standard_Failure) {
Standard_SStream Err;
Err << Standard_Failure::Caught();
Err << (char) 0;
jcas_ThrowException(env,Err.str().c_str());
}
}
alock.Release();
}
JNIEXPORT void JNICALL Java_SampleHLRJni_Aspect_1MarkMapEntry_FinalizeValue(JNIEnv *, jclass, jlong theid)
{
if (theid) {
Aspect_MarkMapEntry* theobj = (Aspect_MarkMapEntry*) theid;
delete theobj;
}
}
}

View File

@@ -0,0 +1,225 @@
//
// Copyright (C) 1991 - 2000 by
// Matra Datavision SA. All rights reserved.
//
// Copyright (C) 2001 - 2004 by
// Open CASCADE SA. All rights reserved.
//
// This file is part of the Open CASCADE Technology software.
//
// This software may be distributed and/or modified under the terms and
// conditions of the Open CASCADE Public License as defined by Open CASCADE SA
// and appearing in the file LICENSE included in the packaging of this file.
//
// This software is distributed on an "AS IS" basis, without warranty of any
// kind, and Open CASCADE SA hereby disclaims all such warranties,
// including without limitation, any warranties of merchantability, fitness
// for a particular purpose or non-infringement. Please see the License for
// the specific terms and conditions governing rights and limitations under the
// License.
#include <SampleHLRJni_Aspect_MarkMap.h>
#include <Aspect_MarkMap.hxx>
#include <jcas.hxx>
#include <stdlib.h>
#include <Standard_ErrorHandler.hxx>
#include <Standard_Failure.hxx>
#include <Standard_SStream.hxx>
#include <Aspect_MarkMapEntry.hxx>
#include <Standard_Integer.hxx>
#include <Aspect_MarkerStyle.hxx>
extern "C" {
JNIEXPORT void JNICALL Java_SampleHLRJni_Aspect_1MarkMap_Aspect_1MarkMap_1Create_10 (JNIEnv *env, jobject theobj)
{
jcas_Locking alock(env);
{
try {
Handle(Aspect_MarkMap)* theret = new Handle(Aspect_MarkMap);
*theret = new Aspect_MarkMap();
jcas_SetHandle(env,theobj,theret);
}
catch (Standard_Failure) {
Standard_SStream Err;
Err << Standard_Failure::Caught();
Err << (char) 0;
jcas_ThrowException(env,Err.str().c_str());
}
}
alock.Release();
}
JNIEXPORT void JNICALL Java_SampleHLRJni_Aspect_1MarkMap_Aspect_1MarkMap_1AddEntry_11 (JNIEnv *env, jobject theobj, jobject AnEntry)
{
jcas_Locking alock(env);
{
try {
Aspect_MarkMapEntry* the_AnEntry = (Aspect_MarkMapEntry*) jcas_GetHandle(env,AnEntry);
if ( the_AnEntry == NULL ) {
// The following assumes availability of the default constructor (what may not
// always be the case). Therefore explicit exception is thrown if the null
// object has been passed.
// the_AnEntry = new Aspect_MarkMapEntry ();
// jcas_SetHandle ( env, AnEntry, the_AnEntry );
jcas_ThrowException (env, "NULL object has been passed while expecting an object manipulated by value");
} // end if
Handle(Aspect_MarkMap) the_this = *((Handle(Aspect_MarkMap)*) jcas_GetHandle(env,theobj));
the_this->AddEntry(*the_AnEntry);
}
catch (Standard_Failure) {
Standard_SStream Err;
Err << Standard_Failure::Caught();
Err << (char) 0;
jcas_ThrowException(env,Err.str().c_str());
}
}
alock.Release();
}
JNIEXPORT jint JNICALL Java_SampleHLRJni_Aspect_1MarkMap_Aspect_1MarkMap_1AddEntry_12 (JNIEnv *env, jobject theobj, jobject aStyle)
{
jint thejret;
jcas_Locking alock(env);
{
try {
Aspect_MarkerStyle* the_aStyle = (Aspect_MarkerStyle*) jcas_GetHandle(env,aStyle);
if ( the_aStyle == NULL ) {
// The following assumes availability of the default constructor (what may not
// always be the case). Therefore explicit exception is thrown if the null
// object has been passed.
// the_aStyle = new Aspect_MarkerStyle ();
// jcas_SetHandle ( env, aStyle, the_aStyle );
jcas_ThrowException (env, "NULL object has been passed while expecting an object manipulated by value");
} // end if
Handle(Aspect_MarkMap) the_this = *((Handle(Aspect_MarkMap)*) jcas_GetHandle(env,theobj));
thejret = the_this->AddEntry(*the_aStyle);
}
catch (Standard_Failure) {
Standard_SStream Err;
Err << Standard_Failure::Caught();
Err << (char) 0;
jcas_ThrowException(env,Err.str().c_str());
}
}
alock.Release();
return thejret;
}
JNIEXPORT jint JNICALL Java_SampleHLRJni_Aspect_1MarkMap_Size (JNIEnv *env, jobject theobj)
{
jint thejret;
jcas_Locking alock(env);
{
try {
Handle(Aspect_MarkMap) the_this = *((Handle(Aspect_MarkMap)*) jcas_GetHandle(env,theobj));
thejret = the_this->Size();
}
catch (Standard_Failure) {
Standard_SStream Err;
Err << Standard_Failure::Caught();
Err << (char) 0;
jcas_ThrowException(env,Err.str().c_str());
}
}
alock.Release();
return thejret;
}
JNIEXPORT jint JNICALL Java_SampleHLRJni_Aspect_1MarkMap_Index (JNIEnv *env, jobject theobj, jint aMarkmapIndex)
{
jint thejret;
jcas_Locking alock(env);
{
try {
Handle(Aspect_MarkMap) the_this = *((Handle(Aspect_MarkMap)*) jcas_GetHandle(env,theobj));
thejret = the_this->Index((Standard_Integer) aMarkmapIndex);
}
catch (Standard_Failure) {
Standard_SStream Err;
Err << Standard_Failure::Caught();
Err << (char) 0;
jcas_ThrowException(env,Err.str().c_str());
}
}
alock.Release();
return thejret;
}
JNIEXPORT void JNICALL Java_SampleHLRJni_Aspect_1MarkMap_Dump (JNIEnv *env, jobject theobj)
{
jcas_Locking alock(env);
{
try {
Handle(Aspect_MarkMap) the_this = *((Handle(Aspect_MarkMap)*) jcas_GetHandle(env,theobj));
the_this->Dump();
}
catch (Standard_Failure) {
Standard_SStream Err;
Err << Standard_Failure::Caught();
Err << (char) 0;
jcas_ThrowException(env,Err.str().c_str());
}
}
alock.Release();
}
JNIEXPORT jobject JNICALL Java_SampleHLRJni_Aspect_1MarkMap_Entry (JNIEnv *env, jobject theobj, jint AnIndex)
{
jobject thejret;
jcas_Locking alock(env);
{
try {
Handle(Aspect_MarkMap) the_this = *((Handle(Aspect_MarkMap)*) jcas_GetHandle(env,theobj));
Aspect_MarkMapEntry* theret = new Aspect_MarkMapEntry(the_this->Entry((Standard_Integer) AnIndex));
thejret = jcas_CreateObject(env,"CASCADESamplesJni/Aspect_MarkMapEntry",theret);
}
catch (Standard_Failure) {
Standard_SStream Err;
Err << Standard_Failure::Caught();
Err << (char) 0;
jcas_ThrowException(env,Err.str().c_str());
}
}
alock.Release();
return thejret;
}
}

View File

@@ -0,0 +1,454 @@
//
// Copyright (C) 1991 - 2000 by
// Matra Datavision SA. All rights reserved.
//
// Copyright (C) 2001 - 2004 by
// Open CASCADE SA. All rights reserved.
//
// This file is part of the Open CASCADE Technology software.
//
// This software may be distributed and/or modified under the terms and
// conditions of the Open CASCADE Public License as defined by Open CASCADE SA
// and appearing in the file LICENSE included in the packaging of this file.
//
// This software is distributed on an "AS IS" basis, without warranty of any
// kind, and Open CASCADE SA hereby disclaims all such warranties,
// including without limitation, any warranties of merchantability, fitness
// for a particular purpose or non-infringement. Please see the License for
// the specific terms and conditions governing rights and limitations under the
// License.
#include <SampleHLRJni_Aspect_MarkerStyle.h>
#include <Aspect_MarkerStyle.hxx>
#include <jcas.hxx>
#include <stdlib.h>
#include <Standard_ErrorHandler.hxx>
#include <Standard_Failure.hxx>
#include <Standard_SStream.hxx>
#include <Aspect_TypeOfMarker.hxx>
#include <TColStd_Array1OfReal.hxx>
#include <TColStd_Array1OfBoolean.hxx>
#include <Standard_Integer.hxx>
#include <Standard_Boolean.hxx>
#include <Standard_Real.hxx>
#include <TShort_Array1OfShortReal.hxx>
extern "C" {
JNIEXPORT void JNICALL Java_SampleHLRJni_Aspect_1MarkerStyle_Aspect_1MarkerStyle_1Create_11 (JNIEnv *env, jobject theobj)
{
jcas_Locking alock(env);
{
try {
Aspect_MarkerStyle* theret = new Aspect_MarkerStyle();
jcas_SetHandle(env,theobj,theret);
}
catch (Standard_Failure) {
Standard_SStream Err;
Err << Standard_Failure::Caught();
Err << (char) 0;
jcas_ThrowException(env,Err.str().c_str());
}
}
alock.Release();
}
JNIEXPORT void JNICALL Java_SampleHLRJni_Aspect_1MarkerStyle_Aspect_1MarkerStyle_1Create_12 (JNIEnv *env, jobject theobj, jshort aType)
{
jcas_Locking alock(env);
{
try {
Aspect_MarkerStyle* theret = new Aspect_MarkerStyle((Aspect_TypeOfMarker) aType);
jcas_SetHandle(env,theobj,theret);
}
catch (Standard_Failure) {
Standard_SStream Err;
Err << Standard_Failure::Caught();
Err << (char) 0;
jcas_ThrowException(env,Err.str().c_str());
}
}
alock.Release();
}
JNIEXPORT void JNICALL Java_SampleHLRJni_Aspect_1MarkerStyle_Aspect_1MarkerStyle_1Create_13 (JNIEnv *env, jobject theobj, jobject aXpoint, jobject aYpoint)
{
jcas_Locking alock(env);
{
try {
TColStd_Array1OfReal* the_aXpoint = (TColStd_Array1OfReal*) jcas_GetHandle(env,aXpoint);
if ( the_aXpoint == NULL ) {
// The following assumes availability of the default constructor (what may not
// always be the case). Therefore explicit exception is thrown if the null
// object has been passed.
// the_aXpoint = new TColStd_Array1OfReal ();
// jcas_SetHandle ( env, aXpoint, the_aXpoint );
jcas_ThrowException (env, "NULL object has been passed while expecting an object manipulated by value");
} // end if
TColStd_Array1OfReal* the_aYpoint = (TColStd_Array1OfReal*) jcas_GetHandle(env,aYpoint);
if ( the_aYpoint == NULL ) {
// The following assumes availability of the default constructor (what may not
// always be the case). Therefore explicit exception is thrown if the null
// object has been passed.
// the_aYpoint = new TColStd_Array1OfReal ();
// jcas_SetHandle ( env, aYpoint, the_aYpoint );
jcas_ThrowException (env, "NULL object has been passed while expecting an object manipulated by value");
} // end if
Aspect_MarkerStyle* theret = new Aspect_MarkerStyle(*the_aXpoint,*the_aYpoint);
jcas_SetHandle(env,theobj,theret);
}
catch (Standard_Failure) {
Standard_SStream Err;
Err << Standard_Failure::Caught();
Err << (char) 0;
jcas_ThrowException(env,Err.str().c_str());
}
}
alock.Release();
}
JNIEXPORT void JNICALL Java_SampleHLRJni_Aspect_1MarkerStyle_Aspect_1MarkerStyle_1Create_14 (JNIEnv *env, jobject theobj, jobject aXpoint, jobject aYpoint, jobject aSpoint)
{
jcas_Locking alock(env);
{
try {
TColStd_Array1OfReal* the_aXpoint = (TColStd_Array1OfReal*) jcas_GetHandle(env,aXpoint);
if ( the_aXpoint == NULL ) {
// The following assumes availability of the default constructor (what may not
// always be the case). Therefore explicit exception is thrown if the null
// object has been passed.
// the_aXpoint = new TColStd_Array1OfReal ();
// jcas_SetHandle ( env, aXpoint, the_aXpoint );
jcas_ThrowException (env, "NULL object has been passed while expecting an object manipulated by value");
} // end if
TColStd_Array1OfReal* the_aYpoint = (TColStd_Array1OfReal*) jcas_GetHandle(env,aYpoint);
if ( the_aYpoint == NULL ) {
// The following assumes availability of the default constructor (what may not
// always be the case). Therefore explicit exception is thrown if the null
// object has been passed.
// the_aYpoint = new TColStd_Array1OfReal ();
// jcas_SetHandle ( env, aYpoint, the_aYpoint );
jcas_ThrowException (env, "NULL object has been passed while expecting an object manipulated by value");
} // end if
TColStd_Array1OfBoolean* the_aSpoint = (TColStd_Array1OfBoolean*) jcas_GetHandle(env,aSpoint);
if ( the_aSpoint == NULL ) {
// The following assumes availability of the default constructor (what may not
// always be the case). Therefore explicit exception is thrown if the null
// object has been passed.
// the_aSpoint = new TColStd_Array1OfBoolean ();
// jcas_SetHandle ( env, aSpoint, the_aSpoint );
jcas_ThrowException (env, "NULL object has been passed while expecting an object manipulated by value");
} // end if
Aspect_MarkerStyle* theret = new Aspect_MarkerStyle(*the_aXpoint,*the_aYpoint,*the_aSpoint);
jcas_SetHandle(env,theobj,theret);
}
catch (Standard_Failure) {
Standard_SStream Err;
Err << Standard_Failure::Caught();
Err << (char) 0;
jcas_ThrowException(env,Err.str().c_str());
}
}
alock.Release();
}
JNIEXPORT jobject JNICALL Java_SampleHLRJni_Aspect_1MarkerStyle_Assign (JNIEnv *env, jobject theobj, jobject Other)
{
jobject thejret;
jcas_Locking alock(env);
{
try {
Aspect_MarkerStyle* the_Other = (Aspect_MarkerStyle*) jcas_GetHandle(env,Other);
if ( the_Other == NULL ) {
// The following assumes availability of the default constructor (what may not
// always be the case). Therefore explicit exception is thrown if the null
// object has been passed.
// the_Other = new Aspect_MarkerStyle ();
// jcas_SetHandle ( env, Other, the_Other );
jcas_ThrowException (env, "NULL object has been passed while expecting an object manipulated by value");
} // end if
Aspect_MarkerStyle* the_this = (Aspect_MarkerStyle*) jcas_GetHandle(env,theobj);
const Aspect_MarkerStyle& theret = the_this->Assign(*the_Other);
thejret = jcas_CreateObject(env,"CASCADESamplesJni/Aspect_MarkerStyle",&theret,0);
}
catch (Standard_Failure) {
Standard_SStream Err;
Err << Standard_Failure::Caught();
Err << (char) 0;
jcas_ThrowException(env,Err.str().c_str());
}
}
alock.Release();
return thejret;
}
JNIEXPORT jshort JNICALL Java_SampleHLRJni_Aspect_1MarkerStyle_Type (JNIEnv *env, jobject theobj)
{
jshort thejret;
jcas_Locking alock(env);
{
try {
Aspect_MarkerStyle* the_this = (Aspect_MarkerStyle*) jcas_GetHandle(env,theobj);
thejret = the_this->Type();
}
catch (Standard_Failure) {
Standard_SStream Err;
Err << Standard_Failure::Caught();
Err << (char) 0;
jcas_ThrowException(env,Err.str().c_str());
}
}
alock.Release();
return thejret;
}
JNIEXPORT jint JNICALL Java_SampleHLRJni_Aspect_1MarkerStyle_Length (JNIEnv *env, jobject theobj)
{
jint thejret;
jcas_Locking alock(env);
{
try {
Aspect_MarkerStyle* the_this = (Aspect_MarkerStyle*) jcas_GetHandle(env,theobj);
thejret = the_this->Length();
}
catch (Standard_Failure) {
Standard_SStream Err;
Err << Standard_Failure::Caught();
Err << (char) 0;
jcas_ThrowException(env,Err.str().c_str());
}
}
alock.Release();
return thejret;
}
JNIEXPORT jboolean JNICALL Java_SampleHLRJni_Aspect_1MarkerStyle_Values (JNIEnv *env, jobject theobj, jint aRank, jobject aX, jobject aY)
{
jboolean thejret;
jcas_Locking alock(env);
{
try {
Standard_Real the_aX = jcas_GetReal(env,aX);
Standard_Real the_aY = jcas_GetReal(env,aY);
Aspect_MarkerStyle* the_this = (Aspect_MarkerStyle*) jcas_GetHandle(env,theobj);
thejret = the_this->Values((Standard_Integer) aRank,the_aX,the_aY);
jcas_SetReal(env,aX,the_aX);
jcas_SetReal(env,aY,the_aY);
}
catch (Standard_Failure) {
Standard_SStream Err;
Err << Standard_Failure::Caught();
Err << (char) 0;
jcas_ThrowException(env,Err.str().c_str());
}
}
alock.Release();
return thejret;
}
JNIEXPORT jobject JNICALL Java_SampleHLRJni_Aspect_1MarkerStyle_XValues (JNIEnv *env, jobject theobj)
{
jobject thejret;
jcas_Locking alock(env);
{
try {
Aspect_MarkerStyle* the_this = (Aspect_MarkerStyle*) jcas_GetHandle(env,theobj);
const TShort_Array1OfShortReal& theret = the_this->XValues();
thejret = jcas_CreateObject(env,"CASCADESamplesJni/TShort_Array1OfShortReal",&theret,0);
}
catch (Standard_Failure) {
Standard_SStream Err;
Err << Standard_Failure::Caught();
Err << (char) 0;
jcas_ThrowException(env,Err.str().c_str());
}
}
alock.Release();
return thejret;
}
JNIEXPORT jobject JNICALL Java_SampleHLRJni_Aspect_1MarkerStyle_YValues (JNIEnv *env, jobject theobj)
{
jobject thejret;
jcas_Locking alock(env);
{
try {
Aspect_MarkerStyle* the_this = (Aspect_MarkerStyle*) jcas_GetHandle(env,theobj);
const TShort_Array1OfShortReal& theret = the_this->YValues();
thejret = jcas_CreateObject(env,"CASCADESamplesJni/TShort_Array1OfShortReal",&theret,0);
}
catch (Standard_Failure) {
Standard_SStream Err;
Err << Standard_Failure::Caught();
Err << (char) 0;
jcas_ThrowException(env,Err.str().c_str());
}
}
alock.Release();
return thejret;
}
JNIEXPORT jobject JNICALL Java_SampleHLRJni_Aspect_1MarkerStyle_SValues (JNIEnv *env, jobject theobj)
{
jobject thejret;
jcas_Locking alock(env);
{
try {
Aspect_MarkerStyle* the_this = (Aspect_MarkerStyle*) jcas_GetHandle(env,theobj);
const TColStd_Array1OfBoolean& theret = the_this->SValues();
thejret = jcas_CreateObject(env,"CASCADESamplesJni/TColStd_Array1OfBoolean",&theret,0);
}
catch (Standard_Failure) {
Standard_SStream Err;
Err << Standard_Failure::Caught();
Err << (char) 0;
jcas_ThrowException(env,Err.str().c_str());
}
}
alock.Release();
return thejret;
}
JNIEXPORT jboolean JNICALL Java_SampleHLRJni_Aspect_1MarkerStyle_IsEqual (JNIEnv *env, jobject theobj, jobject Other)
{
jboolean thejret;
jcas_Locking alock(env);
{
try {
Aspect_MarkerStyle* the_Other = (Aspect_MarkerStyle*) jcas_GetHandle(env,Other);
if ( the_Other == NULL ) {
// The following assumes availability of the default constructor (what may not
// always be the case). Therefore explicit exception is thrown if the null
// object has been passed.
// the_Other = new Aspect_MarkerStyle ();
// jcas_SetHandle ( env, Other, the_Other );
jcas_ThrowException (env, "NULL object has been passed while expecting an object manipulated by value");
} // end if
Aspect_MarkerStyle* the_this = (Aspect_MarkerStyle*) jcas_GetHandle(env,theobj);
thejret = the_this->IsEqual(*the_Other);
}
catch (Standard_Failure) {
Standard_SStream Err;
Err << Standard_Failure::Caught();
Err << (char) 0;
jcas_ThrowException(env,Err.str().c_str());
}
}
alock.Release();
return thejret;
}
JNIEXPORT jboolean JNICALL Java_SampleHLRJni_Aspect_1MarkerStyle_IsNotEqual (JNIEnv *env, jobject theobj, jobject Other)
{
jboolean thejret;
jcas_Locking alock(env);
{
try {
Aspect_MarkerStyle* the_Other = (Aspect_MarkerStyle*) jcas_GetHandle(env,Other);
if ( the_Other == NULL ) {
// The following assumes availability of the default constructor (what may not
// always be the case). Therefore explicit exception is thrown if the null
// object has been passed.
// the_Other = new Aspect_MarkerStyle ();
// jcas_SetHandle ( env, Other, the_Other );
jcas_ThrowException (env, "NULL object has been passed while expecting an object manipulated by value");
} // end if
Aspect_MarkerStyle* the_this = (Aspect_MarkerStyle*) jcas_GetHandle(env,theobj);
thejret = the_this->IsNotEqual(*the_Other);
}
catch (Standard_Failure) {
Standard_SStream Err;
Err << Standard_Failure::Caught();
Err << (char) 0;
jcas_ThrowException(env,Err.str().c_str());
}
}
alock.Release();
return thejret;
}
JNIEXPORT void JNICALL Java_SampleHLRJni_Aspect_1MarkerStyle_FinalizeValue(JNIEnv *, jclass, jlong theid)
{
if (theid) {
Aspect_MarkerStyle* theobj = (Aspect_MarkerStyle*) theid;
delete theobj;
}
}
}

View File

@@ -0,0 +1,381 @@
//
// Copyright (C) 1991 - 2000 by
// Matra Datavision SA. All rights reserved.
//
// Copyright (C) 2001 - 2004 by
// Open CASCADE SA. All rights reserved.
//
// This file is part of the Open CASCADE Technology software.
//
// This software may be distributed and/or modified under the terms and
// conditions of the Open CASCADE Public License as defined by Open CASCADE SA
// and appearing in the file LICENSE included in the packaging of this file.
//
// This software is distributed on an "AS IS" basis, without warranty of any
// kind, and Open CASCADE SA hereby disclaims all such warranties,
// including without limitation, any warranties of merchantability, fitness
// for a particular purpose or non-infringement. Please see the License for
// the specific terms and conditions governing rights and limitations under the
// License.
#include <SampleHLRJni_Aspect_TypeMapEntry.h>
#include <Aspect_TypeMapEntry.hxx>
#include <jcas.hxx>
#include <stdlib.h>
#include <Standard_ErrorHandler.hxx>
#include <Standard_Failure.hxx>
#include <Standard_SStream.hxx>
#include <Standard_Integer.hxx>
#include <Aspect_LineStyle.hxx>
#include <Standard_Boolean.hxx>
extern "C" {
JNIEXPORT void JNICALL Java_SampleHLRJni_Aspect_1TypeMapEntry_Aspect_1TypeMapEntry_1Create_11 (JNIEnv *env, jobject theobj)
{
jcas_Locking alock(env);
{
try {
Aspect_TypeMapEntry* theret = new Aspect_TypeMapEntry();
jcas_SetHandle(env,theobj,theret);
}
catch (Standard_Failure) {
Standard_SStream Err;
Err << Standard_Failure::Caught();
Err << (char) 0;
jcas_ThrowException(env,Err.str().c_str());
}
}
alock.Release();
}
JNIEXPORT void JNICALL Java_SampleHLRJni_Aspect_1TypeMapEntry_Aspect_1TypeMapEntry_1Create_12 (JNIEnv *env, jobject theobj, jint index, jobject style)
{
jcas_Locking alock(env);
{
try {
Aspect_LineStyle* the_style = (Aspect_LineStyle*) jcas_GetHandle(env,style);
if ( the_style == NULL ) {
// The following assumes availability of the default constructor (what may not
// always be the case). Therefore explicit exception is thrown if the null
// object has been passed.
// the_style = new Aspect_LineStyle ();
// jcas_SetHandle ( env, style, the_style );
jcas_ThrowException (env, "NULL object has been passed while expecting an object manipulated by value");
} // end if
Aspect_TypeMapEntry* theret = new Aspect_TypeMapEntry((Standard_Integer) index,*the_style);
jcas_SetHandle(env,theobj,theret);
}
catch (Standard_Failure) {
Standard_SStream Err;
Err << Standard_Failure::Caught();
Err << (char) 0;
jcas_ThrowException(env,Err.str().c_str());
}
}
alock.Release();
}
JNIEXPORT void JNICALL Java_SampleHLRJni_Aspect_1TypeMapEntry_Aspect_1TypeMapEntry_1Create_13 (JNIEnv *env, jobject theobj, jobject entry)
{
jcas_Locking alock(env);
{
try {
Aspect_TypeMapEntry* the_entry = (Aspect_TypeMapEntry*) jcas_GetHandle(env,entry);
if ( the_entry == NULL ) {
// The following assumes availability of the default constructor (what may not
// always be the case). Therefore explicit exception is thrown if the null
// object has been passed.
// the_entry = new Aspect_TypeMapEntry ();
// jcas_SetHandle ( env, entry, the_entry );
jcas_ThrowException (env, "NULL object has been passed while expecting an object manipulated by value");
} // end if
Aspect_TypeMapEntry* theret = new Aspect_TypeMapEntry(*the_entry);
jcas_SetHandle(env,theobj,theret);
}
catch (Standard_Failure) {
Standard_SStream Err;
Err << Standard_Failure::Caught();
Err << (char) 0;
jcas_ThrowException(env,Err.str().c_str());
}
}
alock.Release();
}
JNIEXPORT void JNICALL Java_SampleHLRJni_Aspect_1TypeMapEntry_Aspect_1TypeMapEntry_1SetValue_11 (JNIEnv *env, jobject theobj, jint index, jobject style)
{
jcas_Locking alock(env);
{
try {
Aspect_LineStyle* the_style = (Aspect_LineStyle*) jcas_GetHandle(env,style);
if ( the_style == NULL ) {
// The following assumes availability of the default constructor (what may not
// always be the case). Therefore explicit exception is thrown if the null
// object has been passed.
// the_style = new Aspect_LineStyle ();
// jcas_SetHandle ( env, style, the_style );
jcas_ThrowException (env, "NULL object has been passed while expecting an object manipulated by value");
} // end if
Aspect_TypeMapEntry* the_this = (Aspect_TypeMapEntry*) jcas_GetHandle(env,theobj);
the_this->SetValue((Standard_Integer) index,*the_style);
}
catch (Standard_Failure) {
Standard_SStream Err;
Err << Standard_Failure::Caught();
Err << (char) 0;
jcas_ThrowException(env,Err.str().c_str());
}
}
alock.Release();
}
JNIEXPORT void JNICALL Java_SampleHLRJni_Aspect_1TypeMapEntry_Aspect_1TypeMapEntry_1SetValue_12 (JNIEnv *env, jobject theobj, jobject entry)
{
jcas_Locking alock(env);
{
try {
Aspect_TypeMapEntry* the_entry = (Aspect_TypeMapEntry*) jcas_GetHandle(env,entry);
if ( the_entry == NULL ) {
// The following assumes availability of the default constructor (what may not
// always be the case). Therefore explicit exception is thrown if the null
// object has been passed.
// the_entry = new Aspect_TypeMapEntry ();
// jcas_SetHandle ( env, entry, the_entry );
jcas_ThrowException (env, "NULL object has been passed while expecting an object manipulated by value");
} // end if
Aspect_TypeMapEntry* the_this = (Aspect_TypeMapEntry*) jcas_GetHandle(env,theobj);
the_this->SetValue(*the_entry);
}
catch (Standard_Failure) {
Standard_SStream Err;
Err << Standard_Failure::Caught();
Err << (char) 0;
jcas_ThrowException(env,Err.str().c_str());
}
}
alock.Release();
}
JNIEXPORT void JNICALL Java_SampleHLRJni_Aspect_1TypeMapEntry_SetType (JNIEnv *env, jobject theobj, jobject Style)
{
jcas_Locking alock(env);
{
try {
Aspect_LineStyle* the_Style = (Aspect_LineStyle*) jcas_GetHandle(env,Style);
if ( the_Style == NULL ) {
// The following assumes availability of the default constructor (what may not
// always be the case). Therefore explicit exception is thrown if the null
// object has been passed.
// the_Style = new Aspect_LineStyle ();
// jcas_SetHandle ( env, Style, the_Style );
jcas_ThrowException (env, "NULL object has been passed while expecting an object manipulated by value");
} // end if
Aspect_TypeMapEntry* the_this = (Aspect_TypeMapEntry*) jcas_GetHandle(env,theobj);
the_this->SetType(*the_Style);
}
catch (Standard_Failure) {
Standard_SStream Err;
Err << Standard_Failure::Caught();
Err << (char) 0;
jcas_ThrowException(env,Err.str().c_str());
}
}
alock.Release();
}
JNIEXPORT jobject JNICALL Java_SampleHLRJni_Aspect_1TypeMapEntry_Type (JNIEnv *env, jobject theobj)
{
jobject thejret;
jcas_Locking alock(env);
{
try {
Aspect_TypeMapEntry* the_this = (Aspect_TypeMapEntry*) jcas_GetHandle(env,theobj);
const Aspect_LineStyle& theret = the_this->Type();
thejret = jcas_CreateObject(env,"CASCADESamplesJni/Aspect_LineStyle",&theret,0);
}
catch (Standard_Failure) {
Standard_SStream Err;
Err << Standard_Failure::Caught();
Err << (char) 0;
jcas_ThrowException(env,Err.str().c_str());
}
}
alock.Release();
return thejret;
}
JNIEXPORT void JNICALL Java_SampleHLRJni_Aspect_1TypeMapEntry_SetIndex (JNIEnv *env, jobject theobj, jint index)
{
jcas_Locking alock(env);
{
try {
Aspect_TypeMapEntry* the_this = (Aspect_TypeMapEntry*) jcas_GetHandle(env,theobj);
the_this->SetIndex((Standard_Integer) index);
}
catch (Standard_Failure) {
Standard_SStream Err;
Err << Standard_Failure::Caught();
Err << (char) 0;
jcas_ThrowException(env,Err.str().c_str());
}
}
alock.Release();
}
JNIEXPORT jint JNICALL Java_SampleHLRJni_Aspect_1TypeMapEntry_Index (JNIEnv *env, jobject theobj)
{
jint thejret;
jcas_Locking alock(env);
{
try {
Aspect_TypeMapEntry* the_this = (Aspect_TypeMapEntry*) jcas_GetHandle(env,theobj);
thejret = the_this->Index();
}
catch (Standard_Failure) {
Standard_SStream Err;
Err << Standard_Failure::Caught();
Err << (char) 0;
jcas_ThrowException(env,Err.str().c_str());
}
}
alock.Release();
return thejret;
}
JNIEXPORT void JNICALL Java_SampleHLRJni_Aspect_1TypeMapEntry_Free (JNIEnv *env, jobject theobj)
{
jcas_Locking alock(env);
{
try {
Aspect_TypeMapEntry* the_this = (Aspect_TypeMapEntry*) jcas_GetHandle(env,theobj);
the_this->Free();
}
catch (Standard_Failure) {
Standard_SStream Err;
Err << Standard_Failure::Caught();
Err << (char) 0;
jcas_ThrowException(env,Err.str().c_str());
}
}
alock.Release();
}
JNIEXPORT jboolean JNICALL Java_SampleHLRJni_Aspect_1TypeMapEntry_IsAllocated (JNIEnv *env, jobject theobj)
{
jboolean thejret;
jcas_Locking alock(env);
{
try {
Aspect_TypeMapEntry* the_this = (Aspect_TypeMapEntry*) jcas_GetHandle(env,theobj);
thejret = the_this->IsAllocated();
}
catch (Standard_Failure) {
Standard_SStream Err;
Err << Standard_Failure::Caught();
Err << (char) 0;
jcas_ThrowException(env,Err.str().c_str());
}
}
alock.Release();
return thejret;
}
JNIEXPORT void JNICALL Java_SampleHLRJni_Aspect_1TypeMapEntry_Dump (JNIEnv *env, jobject theobj)
{
jcas_Locking alock(env);
{
try {
Aspect_TypeMapEntry* the_this = (Aspect_TypeMapEntry*) jcas_GetHandle(env,theobj);
the_this->Dump();
}
catch (Standard_Failure) {
Standard_SStream Err;
Err << Standard_Failure::Caught();
Err << (char) 0;
jcas_ThrowException(env,Err.str().c_str());
}
}
alock.Release();
}
JNIEXPORT void JNICALL Java_SampleHLRJni_Aspect_1TypeMapEntry_FinalizeValue(JNIEnv *, jclass, jlong theid)
{
if (theid) {
Aspect_TypeMapEntry* theobj = (Aspect_TypeMapEntry*) theid;
delete theobj;
}
}
}

View File

@@ -0,0 +1,225 @@
//
// Copyright (C) 1991 - 2000 by
// Matra Datavision SA. All rights reserved.
//
// Copyright (C) 2001 - 2004 by
// Open CASCADE SA. All rights reserved.
//
// This file is part of the Open CASCADE Technology software.
//
// This software may be distributed and/or modified under the terms and
// conditions of the Open CASCADE Public License as defined by Open CASCADE SA
// and appearing in the file LICENSE included in the packaging of this file.
//
// This software is distributed on an "AS IS" basis, without warranty of any
// kind, and Open CASCADE SA hereby disclaims all such warranties,
// including without limitation, any warranties of merchantability, fitness
// for a particular purpose or non-infringement. Please see the License for
// the specific terms and conditions governing rights and limitations under the
// License.
#include <SampleHLRJni_Aspect_TypeMap.h>
#include <Aspect_TypeMap.hxx>
#include <jcas.hxx>
#include <stdlib.h>
#include <Standard_ErrorHandler.hxx>
#include <Standard_Failure.hxx>
#include <Standard_SStream.hxx>
#include <Aspect_TypeMapEntry.hxx>
#include <Standard_Integer.hxx>
#include <Aspect_LineStyle.hxx>
extern "C" {
JNIEXPORT void JNICALL Java_SampleHLRJni_Aspect_1TypeMap_Aspect_1TypeMap_1Create_10 (JNIEnv *env, jobject theobj)
{
jcas_Locking alock(env);
{
try {
Handle(Aspect_TypeMap)* theret = new Handle(Aspect_TypeMap);
*theret = new Aspect_TypeMap();
jcas_SetHandle(env,theobj,theret);
}
catch (Standard_Failure) {
Standard_SStream Err;
Err << Standard_Failure::Caught();
Err << (char) 0;
jcas_ThrowException(env,Err.str().c_str());
}
}
alock.Release();
}
JNIEXPORT void JNICALL Java_SampleHLRJni_Aspect_1TypeMap_Aspect_1TypeMap_1AddEntry_11 (JNIEnv *env, jobject theobj, jobject AnEntry)
{
jcas_Locking alock(env);
{
try {
Aspect_TypeMapEntry* the_AnEntry = (Aspect_TypeMapEntry*) jcas_GetHandle(env,AnEntry);
if ( the_AnEntry == NULL ) {
// The following assumes availability of the default constructor (what may not
// always be the case). Therefore explicit exception is thrown if the null
// object has been passed.
// the_AnEntry = new Aspect_TypeMapEntry ();
// jcas_SetHandle ( env, AnEntry, the_AnEntry );
jcas_ThrowException (env, "NULL object has been passed while expecting an object manipulated by value");
} // end if
Handle(Aspect_TypeMap) the_this = *((Handle(Aspect_TypeMap)*) jcas_GetHandle(env,theobj));
the_this->AddEntry(*the_AnEntry);
}
catch (Standard_Failure) {
Standard_SStream Err;
Err << Standard_Failure::Caught();
Err << (char) 0;
jcas_ThrowException(env,Err.str().c_str());
}
}
alock.Release();
}
JNIEXPORT jint JNICALL Java_SampleHLRJni_Aspect_1TypeMap_Aspect_1TypeMap_1AddEntry_12 (JNIEnv *env, jobject theobj, jobject aStyle)
{
jint thejret;
jcas_Locking alock(env);
{
try {
Aspect_LineStyle* the_aStyle = (Aspect_LineStyle*) jcas_GetHandle(env,aStyle);
if ( the_aStyle == NULL ) {
// The following assumes availability of the default constructor (what may not
// always be the case). Therefore explicit exception is thrown if the null
// object has been passed.
// the_aStyle = new Aspect_LineStyle ();
// jcas_SetHandle ( env, aStyle, the_aStyle );
jcas_ThrowException (env, "NULL object has been passed while expecting an object manipulated by value");
} // end if
Handle(Aspect_TypeMap) the_this = *((Handle(Aspect_TypeMap)*) jcas_GetHandle(env,theobj));
thejret = the_this->AddEntry(*the_aStyle);
}
catch (Standard_Failure) {
Standard_SStream Err;
Err << Standard_Failure::Caught();
Err << (char) 0;
jcas_ThrowException(env,Err.str().c_str());
}
}
alock.Release();
return thejret;
}
JNIEXPORT jint JNICALL Java_SampleHLRJni_Aspect_1TypeMap_Size (JNIEnv *env, jobject theobj)
{
jint thejret;
jcas_Locking alock(env);
{
try {
Handle(Aspect_TypeMap) the_this = *((Handle(Aspect_TypeMap)*) jcas_GetHandle(env,theobj));
thejret = the_this->Size();
}
catch (Standard_Failure) {
Standard_SStream Err;
Err << Standard_Failure::Caught();
Err << (char) 0;
jcas_ThrowException(env,Err.str().c_str());
}
}
alock.Release();
return thejret;
}
JNIEXPORT jint JNICALL Java_SampleHLRJni_Aspect_1TypeMap_Index (JNIEnv *env, jobject theobj, jint aTypemapIndex)
{
jint thejret;
jcas_Locking alock(env);
{
try {
Handle(Aspect_TypeMap) the_this = *((Handle(Aspect_TypeMap)*) jcas_GetHandle(env,theobj));
thejret = the_this->Index((Standard_Integer) aTypemapIndex);
}
catch (Standard_Failure) {
Standard_SStream Err;
Err << Standard_Failure::Caught();
Err << (char) 0;
jcas_ThrowException(env,Err.str().c_str());
}
}
alock.Release();
return thejret;
}
JNIEXPORT void JNICALL Java_SampleHLRJni_Aspect_1TypeMap_Dump (JNIEnv *env, jobject theobj)
{
jcas_Locking alock(env);
{
try {
Handle(Aspect_TypeMap) the_this = *((Handle(Aspect_TypeMap)*) jcas_GetHandle(env,theobj));
the_this->Dump();
}
catch (Standard_Failure) {
Standard_SStream Err;
Err << Standard_Failure::Caught();
Err << (char) 0;
jcas_ThrowException(env,Err.str().c_str());
}
}
alock.Release();
}
JNIEXPORT jobject JNICALL Java_SampleHLRJni_Aspect_1TypeMap_Entry (JNIEnv *env, jobject theobj, jint AnIndex)
{
jobject thejret;
jcas_Locking alock(env);
{
try {
Handle(Aspect_TypeMap) the_this = *((Handle(Aspect_TypeMap)*) jcas_GetHandle(env,theobj));
Aspect_TypeMapEntry* theret = new Aspect_TypeMapEntry(the_this->Entry((Standard_Integer) AnIndex));
thejret = jcas_CreateObject(env,"CASCADESamplesJni/Aspect_TypeMapEntry",theret);
}
catch (Standard_Failure) {
Standard_SStream Err;
Err << Standard_Failure::Caught();
Err << (char) 0;
jcas_ThrowException(env,Err.str().c_str());
}
}
alock.Release();
return thejret;
}
}

View File

@@ -0,0 +1,441 @@
//
// Copyright (C) 1991 - 2000 by
// Matra Datavision SA. All rights reserved.
//
// Copyright (C) 2001 - 2004 by
// Open CASCADE SA. All rights reserved.
//
// This file is part of the Open CASCADE Technology software.
//
// This software may be distributed and/or modified under the terms and
// conditions of the Open CASCADE Public License as defined by Open CASCADE SA
// and appearing in the file LICENSE included in the packaging of this file.
//
// This software is distributed on an "AS IS" basis, without warranty of any
// kind, and Open CASCADE SA hereby disclaims all such warranties,
// including without limitation, any warranties of merchantability, fitness
// for a particular purpose or non-infringement. Please see the License for
// the specific terms and conditions governing rights and limitations under the
// License.
#include <SampleHLRJni_Aspect_WidthMapEntry.h>
#include <Aspect_WidthMapEntry.hxx>
#include <jcas.hxx>
#include <stdlib.h>
#include <Standard_ErrorHandler.hxx>
#include <Standard_Failure.hxx>
#include <Standard_SStream.hxx>
#include <Standard_Integer.hxx>
#include <Aspect_WidthOfLine.hxx>
#include <Standard_Real.hxx>
#include <Standard_Boolean.hxx>
extern "C" {
JNIEXPORT void JNICALL Java_SampleHLRJni_Aspect_1WidthMapEntry_Aspect_1WidthMapEntry_1Create_11 (JNIEnv *env, jobject theobj)
{
jcas_Locking alock(env);
{
try {
Aspect_WidthMapEntry* theret = new Aspect_WidthMapEntry();
jcas_SetHandle(env,theobj,theret);
}
catch (Standard_Failure) {
Standard_SStream Err;
Err << Standard_Failure::Caught();
Err << (char) 0;
jcas_ThrowException(env,Err.str().c_str());
}
}
alock.Release();
}
JNIEXPORT void JNICALL Java_SampleHLRJni_Aspect_1WidthMapEntry_Aspect_1WidthMapEntry_1Create_12 (JNIEnv *env, jobject theobj, jint index, jshort style)
{
jcas_Locking alock(env);
{
try {
Aspect_WidthMapEntry* theret = new Aspect_WidthMapEntry((Standard_Integer) index,(Aspect_WidthOfLine) style);
jcas_SetHandle(env,theobj,theret);
}
catch (Standard_Failure) {
Standard_SStream Err;
Err << Standard_Failure::Caught();
Err << (char) 0;
jcas_ThrowException(env,Err.str().c_str());
}
}
alock.Release();
}
JNIEXPORT void JNICALL Java_SampleHLRJni_Aspect_1WidthMapEntry_Aspect_1WidthMapEntry_1Create_13 (JNIEnv *env, jobject theobj, jint index, jdouble width)
{
jcas_Locking alock(env);
{
try {
Aspect_WidthMapEntry* theret = new Aspect_WidthMapEntry((Standard_Integer) index,(Quantity_Length) width);
jcas_SetHandle(env,theobj,theret);
}
catch (Standard_Failure) {
Standard_SStream Err;
Err << Standard_Failure::Caught();
Err << (char) 0;
jcas_ThrowException(env,Err.str().c_str());
}
}
alock.Release();
}
JNIEXPORT void JNICALL Java_SampleHLRJni_Aspect_1WidthMapEntry_Aspect_1WidthMapEntry_1Create_14 (JNIEnv *env, jobject theobj, jobject entry)
{
jcas_Locking alock(env);
{
try {
Aspect_WidthMapEntry* the_entry = (Aspect_WidthMapEntry*) jcas_GetHandle(env,entry);
if ( the_entry == NULL ) {
// The following assumes availability of the default constructor (what may not
// always be the case). Therefore explicit exception is thrown if the null
// object has been passed.
// the_entry = new Aspect_WidthMapEntry ();
// jcas_SetHandle ( env, entry, the_entry );
jcas_ThrowException (env, "NULL object has been passed while expecting an object manipulated by value");
} // end if
Aspect_WidthMapEntry* theret = new Aspect_WidthMapEntry(*the_entry);
jcas_SetHandle(env,theobj,theret);
}
catch (Standard_Failure) {
Standard_SStream Err;
Err << Standard_Failure::Caught();
Err << (char) 0;
jcas_ThrowException(env,Err.str().c_str());
}
}
alock.Release();
}
JNIEXPORT void JNICALL Java_SampleHLRJni_Aspect_1WidthMapEntry_Aspect_1WidthMapEntry_1SetValue_11 (JNIEnv *env, jobject theobj, jint index, jshort style)
{
jcas_Locking alock(env);
{
try {
Aspect_WidthMapEntry* the_this = (Aspect_WidthMapEntry*) jcas_GetHandle(env,theobj);
the_this->SetValue((Standard_Integer) index,(Aspect_WidthOfLine) style);
}
catch (Standard_Failure) {
Standard_SStream Err;
Err << Standard_Failure::Caught();
Err << (char) 0;
jcas_ThrowException(env,Err.str().c_str());
}
}
alock.Release();
}
JNIEXPORT void JNICALL Java_SampleHLRJni_Aspect_1WidthMapEntry_Aspect_1WidthMapEntry_1SetValue_12 (JNIEnv *env, jobject theobj, jint index, jdouble width)
{
jcas_Locking alock(env);
{
try {
Aspect_WidthMapEntry* the_this = (Aspect_WidthMapEntry*) jcas_GetHandle(env,theobj);
the_this->SetValue((Standard_Integer) index,(Quantity_Length) width);
}
catch (Standard_Failure) {
Standard_SStream Err;
Err << Standard_Failure::Caught();
Err << (char) 0;
jcas_ThrowException(env,Err.str().c_str());
}
}
alock.Release();
}
JNIEXPORT void JNICALL Java_SampleHLRJni_Aspect_1WidthMapEntry_Aspect_1WidthMapEntry_1SetValue_13 (JNIEnv *env, jobject theobj, jobject entry)
{
jcas_Locking alock(env);
{
try {
Aspect_WidthMapEntry* the_entry = (Aspect_WidthMapEntry*) jcas_GetHandle(env,entry);
if ( the_entry == NULL ) {
// The following assumes availability of the default constructor (what may not
// always be the case). Therefore explicit exception is thrown if the null
// object has been passed.
// the_entry = new Aspect_WidthMapEntry ();
// jcas_SetHandle ( env, entry, the_entry );
jcas_ThrowException (env, "NULL object has been passed while expecting an object manipulated by value");
} // end if
Aspect_WidthMapEntry* the_this = (Aspect_WidthMapEntry*) jcas_GetHandle(env,theobj);
the_this->SetValue(*the_entry);
}
catch (Standard_Failure) {
Standard_SStream Err;
Err << Standard_Failure::Caught();
Err << (char) 0;
jcas_ThrowException(env,Err.str().c_str());
}
}
alock.Release();
}
JNIEXPORT void JNICALL Java_SampleHLRJni_Aspect_1WidthMapEntry_SetIndex (JNIEnv *env, jobject theobj, jint index)
{
jcas_Locking alock(env);
{
try {
Aspect_WidthMapEntry* the_this = (Aspect_WidthMapEntry*) jcas_GetHandle(env,theobj);
the_this->SetIndex((Standard_Integer) index);
}
catch (Standard_Failure) {
Standard_SStream Err;
Err << Standard_Failure::Caught();
Err << (char) 0;
jcas_ThrowException(env,Err.str().c_str());
}
}
alock.Release();
}
JNIEXPORT void JNICALL Java_SampleHLRJni_Aspect_1WidthMapEntry_SetType (JNIEnv *env, jobject theobj, jshort Style)
{
jcas_Locking alock(env);
{
try {
Aspect_WidthMapEntry* the_this = (Aspect_WidthMapEntry*) jcas_GetHandle(env,theobj);
the_this->SetType((Aspect_WidthOfLine) Style);
}
catch (Standard_Failure) {
Standard_SStream Err;
Err << Standard_Failure::Caught();
Err << (char) 0;
jcas_ThrowException(env,Err.str().c_str());
}
}
alock.Release();
}
JNIEXPORT void JNICALL Java_SampleHLRJni_Aspect_1WidthMapEntry_SetWidth (JNIEnv *env, jobject theobj, jdouble Width)
{
jcas_Locking alock(env);
{
try {
Aspect_WidthMapEntry* the_this = (Aspect_WidthMapEntry*) jcas_GetHandle(env,theobj);
the_this->SetWidth((Quantity_Length) Width);
}
catch (Standard_Failure) {
Standard_SStream Err;
Err << Standard_Failure::Caught();
Err << (char) 0;
jcas_ThrowException(env,Err.str().c_str());
}
}
alock.Release();
}
JNIEXPORT jshort JNICALL Java_SampleHLRJni_Aspect_1WidthMapEntry_Type (JNIEnv *env, jobject theobj)
{
jshort thejret;
jcas_Locking alock(env);
{
try {
Aspect_WidthMapEntry* the_this = (Aspect_WidthMapEntry*) jcas_GetHandle(env,theobj);
thejret = the_this->Type();
}
catch (Standard_Failure) {
Standard_SStream Err;
Err << Standard_Failure::Caught();
Err << (char) 0;
jcas_ThrowException(env,Err.str().c_str());
}
}
alock.Release();
return thejret;
}
JNIEXPORT jdouble JNICALL Java_SampleHLRJni_Aspect_1WidthMapEntry_Width (JNIEnv *env, jobject theobj)
{
jdouble thejret;
jcas_Locking alock(env);
{
try {
Aspect_WidthMapEntry* the_this = (Aspect_WidthMapEntry*) jcas_GetHandle(env,theobj);
thejret = the_this->Width();
}
catch (Standard_Failure) {
Standard_SStream Err;
Err << Standard_Failure::Caught();
Err << (char) 0;
jcas_ThrowException(env,Err.str().c_str());
}
}
alock.Release();
return thejret;
}
JNIEXPORT jint JNICALL Java_SampleHLRJni_Aspect_1WidthMapEntry_Index (JNIEnv *env, jobject theobj)
{
jint thejret;
jcas_Locking alock(env);
{
try {
Aspect_WidthMapEntry* the_this = (Aspect_WidthMapEntry*) jcas_GetHandle(env,theobj);
thejret = the_this->Index();
}
catch (Standard_Failure) {
Standard_SStream Err;
Err << Standard_Failure::Caught();
Err << (char) 0;
jcas_ThrowException(env,Err.str().c_str());
}
}
alock.Release();
return thejret;
}
JNIEXPORT void JNICALL Java_SampleHLRJni_Aspect_1WidthMapEntry_Free (JNIEnv *env, jobject theobj)
{
jcas_Locking alock(env);
{
try {
Aspect_WidthMapEntry* the_this = (Aspect_WidthMapEntry*) jcas_GetHandle(env,theobj);
the_this->Free();
}
catch (Standard_Failure) {
Standard_SStream Err;
Err << Standard_Failure::Caught();
Err << (char) 0;
jcas_ThrowException(env,Err.str().c_str());
}
}
alock.Release();
}
JNIEXPORT jboolean JNICALL Java_SampleHLRJni_Aspect_1WidthMapEntry_IsAllocated (JNIEnv *env, jobject theobj)
{
jboolean thejret;
jcas_Locking alock(env);
{
try {
Aspect_WidthMapEntry* the_this = (Aspect_WidthMapEntry*) jcas_GetHandle(env,theobj);
thejret = the_this->IsAllocated();
}
catch (Standard_Failure) {
Standard_SStream Err;
Err << Standard_Failure::Caught();
Err << (char) 0;
jcas_ThrowException(env,Err.str().c_str());
}
}
alock.Release();
return thejret;
}
JNIEXPORT void JNICALL Java_SampleHLRJni_Aspect_1WidthMapEntry_Dump (JNIEnv *env, jobject theobj)
{
jcas_Locking alock(env);
{
try {
Aspect_WidthMapEntry* the_this = (Aspect_WidthMapEntry*) jcas_GetHandle(env,theobj);
the_this->Dump();
}
catch (Standard_Failure) {
Standard_SStream Err;
Err << Standard_Failure::Caught();
Err << (char) 0;
jcas_ThrowException(env,Err.str().c_str());
}
}
alock.Release();
}
JNIEXPORT void JNICALL Java_SampleHLRJni_Aspect_1WidthMapEntry_FinalizeValue(JNIEnv *, jclass, jlong theid)
{
if (theid) {
Aspect_WidthMapEntry* theobj = (Aspect_WidthMapEntry*) theid;
delete theobj;
}
}
}

View File

@@ -0,0 +1,239 @@
//
// Copyright (C) 1991 - 2000 by
// Matra Datavision SA. All rights reserved.
//
// Copyright (C) 2001 - 2004 by
// Open CASCADE SA. All rights reserved.
//
// This file is part of the Open CASCADE Technology software.
//
// This software may be distributed and/or modified under the terms and
// conditions of the Open CASCADE Public License as defined by Open CASCADE SA
// and appearing in the file LICENSE included in the packaging of this file.
//
// This software is distributed on an "AS IS" basis, without warranty of any
// kind, and Open CASCADE SA hereby disclaims all such warranties,
// including without limitation, any warranties of merchantability, fitness
// for a particular purpose or non-infringement. Please see the License for
// the specific terms and conditions governing rights and limitations under the
// License.
#include <SampleHLRJni_Aspect_WidthMap.h>
#include <Aspect_WidthMap.hxx>
#include <jcas.hxx>
#include <stdlib.h>
#include <Standard_ErrorHandler.hxx>
#include <Standard_Failure.hxx>
#include <Standard_SStream.hxx>
#include <Aspect_WidthMapEntry.hxx>
#include <Standard_Integer.hxx>
#include <Aspect_WidthOfLine.hxx>
#include <Standard_Real.hxx>
extern "C" {
JNIEXPORT void JNICALL Java_SampleHLRJni_Aspect_1WidthMap_Aspect_1WidthMap_1Create_10 (JNIEnv *env, jobject theobj)
{
jcas_Locking alock(env);
{
try {
Handle(Aspect_WidthMap)* theret = new Handle(Aspect_WidthMap);
*theret = new Aspect_WidthMap();
jcas_SetHandle(env,theobj,theret);
}
catch (Standard_Failure) {
Standard_SStream Err;
Err << Standard_Failure::Caught();
Err << (char) 0;
jcas_ThrowException(env,Err.str().c_str());
}
}
alock.Release();
}
JNIEXPORT void JNICALL Java_SampleHLRJni_Aspect_1WidthMap_Aspect_1WidthMap_1AddEntry_11 (JNIEnv *env, jobject theobj, jobject AnEntry)
{
jcas_Locking alock(env);
{
try {
Aspect_WidthMapEntry* the_AnEntry = (Aspect_WidthMapEntry*) jcas_GetHandle(env,AnEntry);
if ( the_AnEntry == NULL ) {
// The following assumes availability of the default constructor (what may not
// always be the case). Therefore explicit exception is thrown if the null
// object has been passed.
// the_AnEntry = new Aspect_WidthMapEntry ();
// jcas_SetHandle ( env, AnEntry, the_AnEntry );
jcas_ThrowException (env, "NULL object has been passed while expecting an object manipulated by value");
} // end if
Handle(Aspect_WidthMap) the_this = *((Handle(Aspect_WidthMap)*) jcas_GetHandle(env,theobj));
the_this->AddEntry(*the_AnEntry);
}
catch (Standard_Failure) {
Standard_SStream Err;
Err << Standard_Failure::Caught();
Err << (char) 0;
jcas_ThrowException(env,Err.str().c_str());
}
}
alock.Release();
}
JNIEXPORT jint JNICALL Java_SampleHLRJni_Aspect_1WidthMap_Aspect_1WidthMap_1AddEntry_12 (JNIEnv *env, jobject theobj, jshort aStyle)
{
jint thejret;
jcas_Locking alock(env);
{
try {
Handle(Aspect_WidthMap) the_this = *((Handle(Aspect_WidthMap)*) jcas_GetHandle(env,theobj));
thejret = the_this->AddEntry((Aspect_WidthOfLine) aStyle);
}
catch (Standard_Failure) {
Standard_SStream Err;
Err << Standard_Failure::Caught();
Err << (char) 0;
jcas_ThrowException(env,Err.str().c_str());
}
}
alock.Release();
return thejret;
}
JNIEXPORT jint JNICALL Java_SampleHLRJni_Aspect_1WidthMap_Aspect_1WidthMap_1AddEntry_13 (JNIEnv *env, jobject theobj, jdouble aStyle)
{
jint thejret;
jcas_Locking alock(env);
{
try {
Handle(Aspect_WidthMap) the_this = *((Handle(Aspect_WidthMap)*) jcas_GetHandle(env,theobj));
thejret = the_this->AddEntry((Quantity_Length) aStyle);
}
catch (Standard_Failure) {
Standard_SStream Err;
Err << Standard_Failure::Caught();
Err << (char) 0;
jcas_ThrowException(env,Err.str().c_str());
}
}
alock.Release();
return thejret;
}
JNIEXPORT jint JNICALL Java_SampleHLRJni_Aspect_1WidthMap_Size (JNIEnv *env, jobject theobj)
{
jint thejret;
jcas_Locking alock(env);
{
try {
Handle(Aspect_WidthMap) the_this = *((Handle(Aspect_WidthMap)*) jcas_GetHandle(env,theobj));
thejret = the_this->Size();
}
catch (Standard_Failure) {
Standard_SStream Err;
Err << Standard_Failure::Caught();
Err << (char) 0;
jcas_ThrowException(env,Err.str().c_str());
}
}
alock.Release();
return thejret;
}
JNIEXPORT jint JNICALL Java_SampleHLRJni_Aspect_1WidthMap_Index (JNIEnv *env, jobject theobj, jint aWidthmapIndex)
{
jint thejret;
jcas_Locking alock(env);
{
try {
Handle(Aspect_WidthMap) the_this = *((Handle(Aspect_WidthMap)*) jcas_GetHandle(env,theobj));
thejret = the_this->Index((Standard_Integer) aWidthmapIndex);
}
catch (Standard_Failure) {
Standard_SStream Err;
Err << Standard_Failure::Caught();
Err << (char) 0;
jcas_ThrowException(env,Err.str().c_str());
}
}
alock.Release();
return thejret;
}
JNIEXPORT jobject JNICALL Java_SampleHLRJni_Aspect_1WidthMap_Entry (JNIEnv *env, jobject theobj, jint AnIndex)
{
jobject thejret;
jcas_Locking alock(env);
{
try {
Handle(Aspect_WidthMap) the_this = *((Handle(Aspect_WidthMap)*) jcas_GetHandle(env,theobj));
Aspect_WidthMapEntry* theret = new Aspect_WidthMapEntry(the_this->Entry((Standard_Integer) AnIndex));
thejret = jcas_CreateObject(env,"CASCADESamplesJni/Aspect_WidthMapEntry",theret);
}
catch (Standard_Failure) {
Standard_SStream Err;
Err << Standard_Failure::Caught();
Err << (char) 0;
jcas_ThrowException(env,Err.str().c_str());
}
}
alock.Release();
return thejret;
}
JNIEXPORT void JNICALL Java_SampleHLRJni_Aspect_1WidthMap_Dump (JNIEnv *env, jobject theobj)
{
jcas_Locking alock(env);
{
try {
Handle(Aspect_WidthMap) the_this = *((Handle(Aspect_WidthMap)*) jcas_GetHandle(env,theobj));
the_this->Dump();
}
catch (Standard_Failure) {
Standard_SStream Err;
Err << Standard_Failure::Caught();
Err << (char) 0;
jcas_ThrowException(env,Err.str().c_str());
}
}
alock.Release();
}
}

View File

@@ -0,0 +1,842 @@
//
// Copyright (C) 1991 - 2000 by
// Matra Datavision SA. All rights reserved.
//
// Copyright (C) 2001 - 2004 by
// Open CASCADE SA. All rights reserved.
//
// This file is part of the Open CASCADE Technology software.
//
// This software may be distributed and/or modified under the terms and
// conditions of the Open CASCADE Public License as defined by Open CASCADE SA
// and appearing in the file LICENSE included in the packaging of this file.
//
// This software is distributed on an "AS IS" basis, without warranty of any
// kind, and Open CASCADE SA hereby disclaims all such warranties,
// including without limitation, any warranties of merchantability, fitness
// for a particular purpose or non-infringement. Please see the License for
// the specific terms and conditions governing rights and limitations under the
// License.
#include <SampleHLRJni_Aspect_WindowDriver.h>
#include <Aspect_WindowDriver.hxx>
#include <jcas.hxx>
#include <stdlib.h>
#include <Standard_ErrorHandler.hxx>
#include <Standard_Failure.hxx>
#include <Standard_SStream.hxx>
#include <Standard_Boolean.hxx>
#include <Standard_Integer.hxx>
#include <Aspect_TypeOfResize.hxx>
#include <Aspect_Window.hxx>
#include <Aspect_TypeOfDrawMode.hxx>
#include <Standard_ShortReal.hxx>
#include <Standard_Real.hxx>
#include <TCollection_ExtendedString.hxx>
#include <Standard_CString.hxx>
extern "C" {
JNIEXPORT void JNICALL Java_SampleHLRJni_Aspect_1WindowDriver_BeginDraw (JNIEnv *env, jobject theobj, jboolean DoubleBuffer, jint aRetainBuffer)
{
jcas_Locking alock(env);
{
try {
Handle(Aspect_WindowDriver) the_this = *((Handle(Aspect_WindowDriver)*) jcas_GetHandle(env,theobj));
the_this->BeginDraw((Standard_Boolean) DoubleBuffer,(Standard_Integer) aRetainBuffer);
}
catch (Standard_Failure) {
Standard_SStream Err;
Err << Standard_Failure::Caught();
Err << (char) 0;
jcas_ThrowException(env,Err.str().c_str());
}
}
alock.Release();
}
JNIEXPORT jshort JNICALL Java_SampleHLRJni_Aspect_1WindowDriver_ResizeSpace (JNIEnv *env, jobject theobj)
{
jshort thejret;
jcas_Locking alock(env);
{
try {
Handle(Aspect_WindowDriver) the_this = *((Handle(Aspect_WindowDriver)*) jcas_GetHandle(env,theobj));
thejret = the_this->ResizeSpace();
}
catch (Standard_Failure) {
Standard_SStream Err;
Err << Standard_Failure::Caught();
Err << (char) 0;
jcas_ThrowException(env,Err.str().c_str());
}
}
alock.Release();
return thejret;
}
JNIEXPORT jobject JNICALL Java_SampleHLRJni_Aspect_1WindowDriver_Window (JNIEnv *env, jobject theobj)
{
jobject thejret;
jcas_Locking alock(env);
{
try {
Handle(Aspect_WindowDriver) the_this = *((Handle(Aspect_WindowDriver)*) jcas_GetHandle(env,theobj));
Handle(Aspect_Window)* theret = new Handle(Aspect_Window);
*theret = the_this->Window();
thejret = jcas_CreateObject(env,"CASCADESamplesJni/Aspect_Window",theret);
}
catch (Standard_Failure) {
Standard_SStream Err;
Err << Standard_Failure::Caught();
Err << (char) 0;
jcas_ThrowException(env,Err.str().c_str());
}
}
alock.Release();
return thejret;
}
JNIEXPORT void JNICALL Java_SampleHLRJni_Aspect_1WindowDriver_SetDrawMode (JNIEnv *env, jobject theobj, jshort aMode)
{
jcas_Locking alock(env);
{
try {
Handle(Aspect_WindowDriver) the_this = *((Handle(Aspect_WindowDriver)*) jcas_GetHandle(env,theobj));
the_this->SetDrawMode((Aspect_TypeOfDrawMode) aMode);
}
catch (Standard_Failure) {
Standard_SStream Err;
Err << Standard_Failure::Caught();
Err << (char) 0;
jcas_ThrowException(env,Err.str().c_str());
}
}
alock.Release();
}
JNIEXPORT jboolean JNICALL Java_SampleHLRJni_Aspect_1WindowDriver_OpenBuffer (JNIEnv *env, jobject theobj, jint aRetainBuffer, jfloat aPivotX, jfloat aPivotY, jint aWidthIndex, jint aColorIndex, jint aFontIndex, jshort aDrawMode)
{
jboolean thejret;
jcas_Locking alock(env);
{
try {
Handle(Aspect_WindowDriver) the_this = *((Handle(Aspect_WindowDriver)*) jcas_GetHandle(env,theobj));
thejret = the_this->OpenBuffer((Standard_Integer) aRetainBuffer,(Standard_ShortReal) aPivotX,(Standard_ShortReal) aPivotY,(Standard_Integer) aWidthIndex,(Standard_Integer) aColorIndex,(Standard_Integer) aFontIndex,(Aspect_TypeOfDrawMode) aDrawMode);
}
catch (Standard_Failure) {
Standard_SStream Err;
Err << Standard_Failure::Caught();
Err << (char) 0;
jcas_ThrowException(env,Err.str().c_str());
}
}
alock.Release();
return thejret;
}
JNIEXPORT void JNICALL Java_SampleHLRJni_Aspect_1WindowDriver_CloseBuffer (JNIEnv *env, jobject theobj, jint aRetainBuffer)
{
jcas_Locking alock(env);
{
try {
Handle(Aspect_WindowDriver) the_this = *((Handle(Aspect_WindowDriver)*) jcas_GetHandle(env,theobj));
the_this->CloseBuffer((Standard_Integer) aRetainBuffer);
}
catch (Standard_Failure) {
Standard_SStream Err;
Err << Standard_Failure::Caught();
Err << (char) 0;
jcas_ThrowException(env,Err.str().c_str());
}
}
alock.Release();
}
JNIEXPORT void JNICALL Java_SampleHLRJni_Aspect_1WindowDriver_ClearBuffer (JNIEnv *env, jobject theobj, jint aRetainBuffer)
{
jcas_Locking alock(env);
{
try {
Handle(Aspect_WindowDriver) the_this = *((Handle(Aspect_WindowDriver)*) jcas_GetHandle(env,theobj));
the_this->ClearBuffer((Standard_Integer) aRetainBuffer);
}
catch (Standard_Failure) {
Standard_SStream Err;
Err << Standard_Failure::Caught();
Err << (char) 0;
jcas_ThrowException(env,Err.str().c_str());
}
}
alock.Release();
}
JNIEXPORT void JNICALL Java_SampleHLRJni_Aspect_1WindowDriver_DrawBuffer (JNIEnv *env, jobject theobj, jint aRetainBuffer)
{
jcas_Locking alock(env);
{
try {
Handle(Aspect_WindowDriver) the_this = *((Handle(Aspect_WindowDriver)*) jcas_GetHandle(env,theobj));
the_this->DrawBuffer((Standard_Integer) aRetainBuffer);
}
catch (Standard_Failure) {
Standard_SStream Err;
Err << Standard_Failure::Caught();
Err << (char) 0;
jcas_ThrowException(env,Err.str().c_str());
}
}
alock.Release();
}
JNIEXPORT void JNICALL Java_SampleHLRJni_Aspect_1WindowDriver_EraseBuffer (JNIEnv *env, jobject theobj, jint aRetainBuffer)
{
jcas_Locking alock(env);
{
try {
Handle(Aspect_WindowDriver) the_this = *((Handle(Aspect_WindowDriver)*) jcas_GetHandle(env,theobj));
the_this->EraseBuffer((Standard_Integer) aRetainBuffer);
}
catch (Standard_Failure) {
Standard_SStream Err;
Err << Standard_Failure::Caught();
Err << (char) 0;
jcas_ThrowException(env,Err.str().c_str());
}
}
alock.Release();
}
JNIEXPORT void JNICALL Java_SampleHLRJni_Aspect_1WindowDriver_MoveBuffer (JNIEnv *env, jobject theobj, jint aRetainBuffer, jfloat aPivotX, jfloat aPivotY)
{
jcas_Locking alock(env);
{
try {
Handle(Aspect_WindowDriver) the_this = *((Handle(Aspect_WindowDriver)*) jcas_GetHandle(env,theobj));
the_this->MoveBuffer((Standard_Integer) aRetainBuffer,(Standard_ShortReal) aPivotX,(Standard_ShortReal) aPivotY);
}
catch (Standard_Failure) {
Standard_SStream Err;
Err << Standard_Failure::Caught();
Err << (char) 0;
jcas_ThrowException(env,Err.str().c_str());
}
}
alock.Release();
}
JNIEXPORT void JNICALL Java_SampleHLRJni_Aspect_1WindowDriver_ScaleBuffer (JNIEnv *env, jobject theobj, jint aRetainBuffer, jdouble aScaleX, jdouble aScaleY)
{
jcas_Locking alock(env);
{
try {
Handle(Aspect_WindowDriver) the_this = *((Handle(Aspect_WindowDriver)*) jcas_GetHandle(env,theobj));
the_this->ScaleBuffer((Standard_Integer) aRetainBuffer,(Quantity_Factor) aScaleX,(Quantity_Factor) aScaleY);
}
catch (Standard_Failure) {
Standard_SStream Err;
Err << Standard_Failure::Caught();
Err << (char) 0;
jcas_ThrowException(env,Err.str().c_str());
}
}
alock.Release();
}
JNIEXPORT void JNICALL Java_SampleHLRJni_Aspect_1WindowDriver_RotateBuffer (JNIEnv *env, jobject theobj, jint aRetainBuffer, jdouble anAngle)
{
jcas_Locking alock(env);
{
try {
Handle(Aspect_WindowDriver) the_this = *((Handle(Aspect_WindowDriver)*) jcas_GetHandle(env,theobj));
the_this->RotateBuffer((Standard_Integer) aRetainBuffer,(Quantity_PlaneAngle) anAngle);
}
catch (Standard_Failure) {
Standard_SStream Err;
Err << Standard_Failure::Caught();
Err << (char) 0;
jcas_ThrowException(env,Err.str().c_str());
}
}
alock.Release();
}
JNIEXPORT jboolean JNICALL Java_SampleHLRJni_Aspect_1WindowDriver_BufferIsOpen (JNIEnv *env, jobject theobj, jint aRetainBuffer)
{
jboolean thejret;
jcas_Locking alock(env);
{
try {
Handle(Aspect_WindowDriver) the_this = *((Handle(Aspect_WindowDriver)*) jcas_GetHandle(env,theobj));
thejret = the_this->BufferIsOpen((Standard_Integer) aRetainBuffer);
}
catch (Standard_Failure) {
Standard_SStream Err;
Err << Standard_Failure::Caught();
Err << (char) 0;
jcas_ThrowException(env,Err.str().c_str());
}
}
alock.Release();
return thejret;
}
JNIEXPORT jboolean JNICALL Java_SampleHLRJni_Aspect_1WindowDriver_BufferIsEmpty (JNIEnv *env, jobject theobj, jint aRetainBuffer)
{
jboolean thejret;
jcas_Locking alock(env);
{
try {
Handle(Aspect_WindowDriver) the_this = *((Handle(Aspect_WindowDriver)*) jcas_GetHandle(env,theobj));
thejret = the_this->BufferIsEmpty((Standard_Integer) aRetainBuffer);
}
catch (Standard_Failure) {
Standard_SStream Err;
Err << Standard_Failure::Caught();
Err << (char) 0;
jcas_ThrowException(env,Err.str().c_str());
}
}
alock.Release();
return thejret;
}
JNIEXPORT jboolean JNICALL Java_SampleHLRJni_Aspect_1WindowDriver_BufferIsDrawn (JNIEnv *env, jobject theobj, jint aRetainBuffer)
{
jboolean thejret;
jcas_Locking alock(env);
{
try {
Handle(Aspect_WindowDriver) the_this = *((Handle(Aspect_WindowDriver)*) jcas_GetHandle(env,theobj));
thejret = the_this->BufferIsDrawn((Standard_Integer) aRetainBuffer);
}
catch (Standard_Failure) {
Standard_SStream Err;
Err << Standard_Failure::Caught();
Err << (char) 0;
jcas_ThrowException(env,Err.str().c_str());
}
}
alock.Release();
return thejret;
}
JNIEXPORT void JNICALL Java_SampleHLRJni_Aspect_1WindowDriver_AngleOfBuffer (JNIEnv *env, jobject theobj, jint aRetainBuffer, jobject anAngle)
{
jcas_Locking alock(env);
{
try {
Standard_Real the_anAngle = jcas_GetReal(env,anAngle);
Handle(Aspect_WindowDriver) the_this = *((Handle(Aspect_WindowDriver)*) jcas_GetHandle(env,theobj));
the_this->AngleOfBuffer((Standard_Integer) aRetainBuffer,the_anAngle);
jcas_SetReal(env,anAngle,the_anAngle);
}
catch (Standard_Failure) {
Standard_SStream Err;
Err << Standard_Failure::Caught();
Err << (char) 0;
jcas_ThrowException(env,Err.str().c_str());
}
}
alock.Release();
}
JNIEXPORT void JNICALL Java_SampleHLRJni_Aspect_1WindowDriver_ScaleOfBuffer (JNIEnv *env, jobject theobj, jint aRetainBuffer, jobject aScaleX, jobject aScaleY)
{
jcas_Locking alock(env);
{
try {
Standard_Real the_aScaleX = jcas_GetReal(env,aScaleX);
Standard_Real the_aScaleY = jcas_GetReal(env,aScaleY);
Handle(Aspect_WindowDriver) the_this = *((Handle(Aspect_WindowDriver)*) jcas_GetHandle(env,theobj));
the_this->ScaleOfBuffer((Standard_Integer) aRetainBuffer,the_aScaleX,the_aScaleY);
jcas_SetReal(env,aScaleX,the_aScaleX);
jcas_SetReal(env,aScaleY,the_aScaleY);
}
catch (Standard_Failure) {
Standard_SStream Err;
Err << Standard_Failure::Caught();
Err << (char) 0;
jcas_ThrowException(env,Err.str().c_str());
}
}
alock.Release();
}
JNIEXPORT void JNICALL Java_SampleHLRJni_Aspect_1WindowDriver_PositionOfBuffer (JNIEnv *env, jobject theobj, jint aRetainBuffer, jobject aPivotX, jobject aPivotY)
{
jcas_Locking alock(env);
{
try {
Standard_ShortReal the_aPivotX = jcas_GetShortReal(env,aPivotX);
Standard_ShortReal the_aPivotY = jcas_GetShortReal(env,aPivotY);
Handle(Aspect_WindowDriver) the_this = *((Handle(Aspect_WindowDriver)*) jcas_GetHandle(env,theobj));
the_this->PositionOfBuffer((Standard_Integer) aRetainBuffer,the_aPivotX,the_aPivotY);
jcas_SetShortReal(env,aPivotX,the_aPivotX);
jcas_SetShortReal(env,aPivotY,the_aPivotY);
}
catch (Standard_Failure) {
Standard_SStream Err;
Err << Standard_Failure::Caught();
Err << (char) 0;
jcas_ThrowException(env,Err.str().c_str());
}
}
alock.Release();
}
JNIEXPORT void JNICALL Java_SampleHLRJni_Aspect_1WindowDriver_Aspect_1WindowDriver_1TextSize_11 (JNIEnv *env, jobject theobj, jobject aText, jobject aWidth, jobject aHeight, jint aFontIndex)
{
jcas_Locking alock(env);
{
try {
TCollection_ExtendedString* the_aText = (TCollection_ExtendedString*) jcas_GetHandle(env,aText);
if ( the_aText == NULL ) {
// The following assumes availability of the default constructor (what may not
// always be the case). Therefore explicit exception is thrown if the null
// object has been passed.
// the_aText = new TCollection_ExtendedString ();
// jcas_SetHandle ( env, aText, the_aText );
jcas_ThrowException (env, "NULL object has been passed while expecting an object manipulated by value");
} // end if
Standard_ShortReal the_aWidth = jcas_GetShortReal(env,aWidth);
Standard_ShortReal the_aHeight = jcas_GetShortReal(env,aHeight);
Handle(Aspect_WindowDriver) the_this = *((Handle(Aspect_WindowDriver)*) jcas_GetHandle(env,theobj));
the_this->TextSize(*the_aText,the_aWidth,the_aHeight,(Standard_Integer) aFontIndex);
jcas_SetShortReal(env,aWidth,the_aWidth);
jcas_SetShortReal(env,aHeight,the_aHeight);
}
catch (Standard_Failure) {
Standard_SStream Err;
Err << Standard_Failure::Caught();
Err << (char) 0;
jcas_ThrowException(env,Err.str().c_str());
}
}
alock.Release();
}
JNIEXPORT void JNICALL Java_SampleHLRJni_Aspect_1WindowDriver_Aspect_1WindowDriver_1TextSize_12 (JNIEnv *env, jobject theobj, jobject aText, jobject aWidth, jobject aHeight, jobject anXoffset, jobject anYoffset, jint aFontIndex)
{
jcas_Locking alock(env);
{
try {
TCollection_ExtendedString* the_aText = (TCollection_ExtendedString*) jcas_GetHandle(env,aText);
if ( the_aText == NULL ) {
// The following assumes availability of the default constructor (what may not
// always be the case). Therefore explicit exception is thrown if the null
// object has been passed.
// the_aText = new TCollection_ExtendedString ();
// jcas_SetHandle ( env, aText, the_aText );
jcas_ThrowException (env, "NULL object has been passed while expecting an object manipulated by value");
} // end if
Standard_ShortReal the_aWidth = jcas_GetShortReal(env,aWidth);
Standard_ShortReal the_aHeight = jcas_GetShortReal(env,aHeight);
Standard_ShortReal the_anXoffset = jcas_GetShortReal(env,anXoffset);
Standard_ShortReal the_anYoffset = jcas_GetShortReal(env,anYoffset);
Handle(Aspect_WindowDriver) the_this = *((Handle(Aspect_WindowDriver)*) jcas_GetHandle(env,theobj));
the_this->TextSize(*the_aText,the_aWidth,the_aHeight,the_anXoffset,the_anYoffset,(Standard_Integer) aFontIndex);
jcas_SetShortReal(env,aWidth,the_aWidth);
jcas_SetShortReal(env,aHeight,the_aHeight);
jcas_SetShortReal(env,anXoffset,the_anXoffset);
jcas_SetShortReal(env,anYoffset,the_anYoffset);
}
catch (Standard_Failure) {
Standard_SStream Err;
Err << Standard_Failure::Caught();
Err << (char) 0;
jcas_ThrowException(env,Err.str().c_str());
}
}
alock.Release();
}
JNIEXPORT jobject JNICALL Java_SampleHLRJni_Aspect_1WindowDriver_FontSize (JNIEnv *env, jobject theobj, jobject aSlant, jobject aSize, jobject aBheight, jint aFontIndex)
{
jobject thejret;
jcas_Locking alock(env);
{
try {
Standard_Real the_aSlant = jcas_GetReal(env,aSlant);
Standard_ShortReal the_aSize = jcas_GetShortReal(env,aSize);
Standard_ShortReal the_aBheight = jcas_GetShortReal(env,aBheight);
Handle(Aspect_WindowDriver) the_this = *((Handle(Aspect_WindowDriver)*) jcas_GetHandle(env,theobj));
Standard_CString sret = the_this->FontSize(the_aSlant,the_aSize,the_aBheight,(Standard_Integer) aFontIndex);
jclass CLSret = env->FindClass("jcas/Standard_CString");
thejret = env->AllocObject(CLSret);
jcas_SetCStringValue(env,thejret,sret);
jcas_SetReal(env,aSlant,the_aSlant);
jcas_SetShortReal(env,aSize,the_aSize);
jcas_SetShortReal(env,aBheight,the_aBheight);
}
catch (Standard_Failure) {
Standard_SStream Err;
Err << Standard_Failure::Caught();
Err << (char) 0;
jcas_ThrowException(env,Err.str().c_str());
}
}
alock.Release();
return thejret;
}
JNIEXPORT void JNICALL Java_SampleHLRJni_Aspect_1WindowDriver_ColorBoundIndexs (JNIEnv *env, jobject theobj, jobject aMinIndex, jobject aMaxIndex)
{
jcas_Locking alock(env);
{
try {
Standard_Integer the_aMinIndex = jcas_GetInteger(env,aMinIndex);
Standard_Integer the_aMaxIndex = jcas_GetInteger(env,aMaxIndex);
Handle(Aspect_WindowDriver) the_this = *((Handle(Aspect_WindowDriver)*) jcas_GetHandle(env,theobj));
the_this->ColorBoundIndexs(the_aMinIndex,the_aMaxIndex);
jcas_SetInteger(env,aMinIndex,the_aMinIndex);
jcas_SetInteger(env,aMaxIndex,the_aMaxIndex);
}
catch (Standard_Failure) {
Standard_SStream Err;
Err << Standard_Failure::Caught();
Err << (char) 0;
jcas_ThrowException(env,Err.str().c_str());
}
}
alock.Release();
}
JNIEXPORT jint JNICALL Java_SampleHLRJni_Aspect_1WindowDriver_LocalColorIndex (JNIEnv *env, jobject theobj, jint anIndex)
{
jint thejret;
jcas_Locking alock(env);
{
try {
Handle(Aspect_WindowDriver) the_this = *((Handle(Aspect_WindowDriver)*) jcas_GetHandle(env,theobj));
thejret = the_this->LocalColorIndex((Standard_Integer) anIndex);
}
catch (Standard_Failure) {
Standard_SStream Err;
Err << Standard_Failure::Caught();
Err << (char) 0;
jcas_ThrowException(env,Err.str().c_str());
}
}
alock.Release();
return thejret;
}
JNIEXPORT void JNICALL Java_SampleHLRJni_Aspect_1WindowDriver_FontBoundIndexs (JNIEnv *env, jobject theobj, jobject aMinIndex, jobject aMaxIndex)
{
jcas_Locking alock(env);
{
try {
Standard_Integer the_aMinIndex = jcas_GetInteger(env,aMinIndex);
Standard_Integer the_aMaxIndex = jcas_GetInteger(env,aMaxIndex);
Handle(Aspect_WindowDriver) the_this = *((Handle(Aspect_WindowDriver)*) jcas_GetHandle(env,theobj));
the_this->FontBoundIndexs(the_aMinIndex,the_aMaxIndex);
jcas_SetInteger(env,aMinIndex,the_aMinIndex);
jcas_SetInteger(env,aMaxIndex,the_aMaxIndex);
}
catch (Standard_Failure) {
Standard_SStream Err;
Err << Standard_Failure::Caught();
Err << (char) 0;
jcas_ThrowException(env,Err.str().c_str());
}
}
alock.Release();
}
JNIEXPORT jint JNICALL Java_SampleHLRJni_Aspect_1WindowDriver_LocalFontIndex (JNIEnv *env, jobject theobj, jint anIndex)
{
jint thejret;
jcas_Locking alock(env);
{
try {
Handle(Aspect_WindowDriver) the_this = *((Handle(Aspect_WindowDriver)*) jcas_GetHandle(env,theobj));
thejret = the_this->LocalFontIndex((Standard_Integer) anIndex);
}
catch (Standard_Failure) {
Standard_SStream Err;
Err << Standard_Failure::Caught();
Err << (char) 0;
jcas_ThrowException(env,Err.str().c_str());
}
}
alock.Release();
return thejret;
}
JNIEXPORT void JNICALL Java_SampleHLRJni_Aspect_1WindowDriver_TypeBoundIndexs (JNIEnv *env, jobject theobj, jobject aMinIndex, jobject aMaxIndex)
{
jcas_Locking alock(env);
{
try {
Standard_Integer the_aMinIndex = jcas_GetInteger(env,aMinIndex);
Standard_Integer the_aMaxIndex = jcas_GetInteger(env,aMaxIndex);
Handle(Aspect_WindowDriver) the_this = *((Handle(Aspect_WindowDriver)*) jcas_GetHandle(env,theobj));
the_this->TypeBoundIndexs(the_aMinIndex,the_aMaxIndex);
jcas_SetInteger(env,aMinIndex,the_aMinIndex);
jcas_SetInteger(env,aMaxIndex,the_aMaxIndex);
}
catch (Standard_Failure) {
Standard_SStream Err;
Err << Standard_Failure::Caught();
Err << (char) 0;
jcas_ThrowException(env,Err.str().c_str());
}
}
alock.Release();
}
JNIEXPORT jint JNICALL Java_SampleHLRJni_Aspect_1WindowDriver_LocalTypeIndex (JNIEnv *env, jobject theobj, jint anIndex)
{
jint thejret;
jcas_Locking alock(env);
{
try {
Handle(Aspect_WindowDriver) the_this = *((Handle(Aspect_WindowDriver)*) jcas_GetHandle(env,theobj));
thejret = the_this->LocalTypeIndex((Standard_Integer) anIndex);
}
catch (Standard_Failure) {
Standard_SStream Err;
Err << Standard_Failure::Caught();
Err << (char) 0;
jcas_ThrowException(env,Err.str().c_str());
}
}
alock.Release();
return thejret;
}
JNIEXPORT void JNICALL Java_SampleHLRJni_Aspect_1WindowDriver_WidthBoundIndexs (JNIEnv *env, jobject theobj, jobject aMinIndex, jobject aMaxIndex)
{
jcas_Locking alock(env);
{
try {
Standard_Integer the_aMinIndex = jcas_GetInteger(env,aMinIndex);
Standard_Integer the_aMaxIndex = jcas_GetInteger(env,aMaxIndex);
Handle(Aspect_WindowDriver) the_this = *((Handle(Aspect_WindowDriver)*) jcas_GetHandle(env,theobj));
the_this->WidthBoundIndexs(the_aMinIndex,the_aMaxIndex);
jcas_SetInteger(env,aMinIndex,the_aMinIndex);
jcas_SetInteger(env,aMaxIndex,the_aMaxIndex);
}
catch (Standard_Failure) {
Standard_SStream Err;
Err << Standard_Failure::Caught();
Err << (char) 0;
jcas_ThrowException(env,Err.str().c_str());
}
}
alock.Release();
}
JNIEXPORT jint JNICALL Java_SampleHLRJni_Aspect_1WindowDriver_LocalWidthIndex (JNIEnv *env, jobject theobj, jint anIndex)
{
jint thejret;
jcas_Locking alock(env);
{
try {
Handle(Aspect_WindowDriver) the_this = *((Handle(Aspect_WindowDriver)*) jcas_GetHandle(env,theobj));
thejret = the_this->LocalWidthIndex((Standard_Integer) anIndex);
}
catch (Standard_Failure) {
Standard_SStream Err;
Err << Standard_Failure::Caught();
Err << (char) 0;
jcas_ThrowException(env,Err.str().c_str());
}
}
alock.Release();
return thejret;
}
JNIEXPORT void JNICALL Java_SampleHLRJni_Aspect_1WindowDriver_MarkBoundIndexs (JNIEnv *env, jobject theobj, jobject aMinIndex, jobject aMaxIndex)
{
jcas_Locking alock(env);
{
try {
Standard_Integer the_aMinIndex = jcas_GetInteger(env,aMinIndex);
Standard_Integer the_aMaxIndex = jcas_GetInteger(env,aMaxIndex);
Handle(Aspect_WindowDriver) the_this = *((Handle(Aspect_WindowDriver)*) jcas_GetHandle(env,theobj));
the_this->MarkBoundIndexs(the_aMinIndex,the_aMaxIndex);
jcas_SetInteger(env,aMinIndex,the_aMinIndex);
jcas_SetInteger(env,aMaxIndex,the_aMaxIndex);
}
catch (Standard_Failure) {
Standard_SStream Err;
Err << Standard_Failure::Caught();
Err << (char) 0;
jcas_ThrowException(env,Err.str().c_str());
}
}
alock.Release();
}
JNIEXPORT jint JNICALL Java_SampleHLRJni_Aspect_1WindowDriver_LocalMarkIndex (JNIEnv *env, jobject theobj, jint anIndex)
{
jint thejret;
jcas_Locking alock(env);
{
try {
Handle(Aspect_WindowDriver) the_this = *((Handle(Aspect_WindowDriver)*) jcas_GetHandle(env,theobj));
thejret = the_this->LocalMarkIndex((Standard_Integer) anIndex);
}
catch (Standard_Failure) {
Standard_SStream Err;
Err << Standard_Failure::Caught();
Err << (char) 0;
jcas_ThrowException(env,Err.str().c_str());
}
}
alock.Release();
return thejret;
}
}

View File

@@ -0,0 +1,957 @@
//
// Copyright (C) 1991 - 2000 by
// Matra Datavision SA. All rights reserved.
//
// Copyright (C) 2001 - 2004 by
// Open CASCADE SA. All rights reserved.
//
// This file is part of the Open CASCADE Technology software.
//
// This software may be distributed and/or modified under the terms and
// conditions of the Open CASCADE Public License as defined by Open CASCADE SA
// and appearing in the file LICENSE included in the packaging of this file.
//
// This software is distributed on an "AS IS" basis, without warranty of any
// kind, and Open CASCADE SA hereby disclaims all such warranties,
// including without limitation, any warranties of merchantability, fitness
// for a particular purpose or non-infringement. Please see the License for
// the specific terms and conditions governing rights and limitations under the
// License.
#include <SampleHLRJni_Aspect_Window.h>
#include <Aspect_Window.hxx>
#include <jcas.hxx>
#include <stdlib.h>
#include <Standard_ErrorHandler.hxx>
#include <Standard_Failure.hxx>
#include <Standard_SStream.hxx>
#include <Aspect_Background.hxx>
#include <Quantity_NameOfColor.hxx>
#include <Quantity_Color.hxx>
#include <Standard_Boolean.hxx>
#include <Standard_CString.hxx>
#include <Aspect_FillMethod.hxx>
#include <Aspect_TypeOfResize.hxx>
#include <Standard_Integer.hxx>
#include <Standard_Real.hxx>
#include <Aspect_GraphicDevice.hxx>
extern "C" {
JNIEXPORT void JNICALL Java_SampleHLRJni_Aspect_1Window_Aspect_1Window_1SetBackground_11 (JNIEnv *env, jobject theobj, jobject ABack)
{
jcas_Locking alock(env);
{
try {
Aspect_Background* the_ABack = (Aspect_Background*) jcas_GetHandle(env,ABack);
if ( the_ABack == NULL ) {
// The following assumes availability of the default constructor (what may not
// always be the case). Therefore explicit exception is thrown if the null
// object has been passed.
// the_ABack = new Aspect_Background ();
// jcas_SetHandle ( env, ABack, the_ABack );
jcas_ThrowException (env, "NULL object has been passed while expecting an object manipulated by value");
} // end if
Handle(Aspect_Window) the_this = *((Handle(Aspect_Window)*) jcas_GetHandle(env,theobj));
the_this->SetBackground(*the_ABack);
}
catch (Standard_Failure) {
Standard_SStream Err;
Err << Standard_Failure::Caught();
Err << (char) 0;
jcas_ThrowException(env,Err.str().c_str());
}
}
alock.Release();
}
JNIEXPORT void JNICALL Java_SampleHLRJni_Aspect_1Window_Aspect_1Window_1SetBackground_12 (JNIEnv *env, jobject theobj, jshort BackColor)
{
jcas_Locking alock(env);
{
try {
Handle(Aspect_Window) the_this = *((Handle(Aspect_Window)*) jcas_GetHandle(env,theobj));
the_this->SetBackground((Quantity_NameOfColor) BackColor);
}
catch (Standard_Failure) {
Standard_SStream Err;
Err << Standard_Failure::Caught();
Err << (char) 0;
jcas_ThrowException(env,Err.str().c_str());
}
}
alock.Release();
}
JNIEXPORT void JNICALL Java_SampleHLRJni_Aspect_1Window_Aspect_1Window_1SetBackground_13 (JNIEnv *env, jobject theobj, jobject color)
{
jcas_Locking alock(env);
{
try {
Quantity_Color* the_color = (Quantity_Color*) jcas_GetHandle(env,color);
if ( the_color == NULL ) {
// The following assumes availability of the default constructor (what may not
// always be the case). Therefore explicit exception is thrown if the null
// object has been passed.
// the_color = new Quantity_Color ();
// jcas_SetHandle ( env, color, the_color );
jcas_ThrowException (env, "NULL object has been passed while expecting an object manipulated by value");
} // end if
Handle(Aspect_Window) the_this = *((Handle(Aspect_Window)*) jcas_GetHandle(env,theobj));
the_this->SetBackground(*the_color);
}
catch (Standard_Failure) {
Standard_SStream Err;
Err << Standard_Failure::Caught();
Err << (char) 0;
jcas_ThrowException(env,Err.str().c_str());
}
}
alock.Release();
}
JNIEXPORT jboolean JNICALL Java_SampleHLRJni_Aspect_1Window_Aspect_1Window_1SetBackground_14 (JNIEnv *env, jobject theobj, jobject aName, jshort aMethod)
{
jboolean thejret;
jcas_Locking alock(env);
{
try {
Standard_CString the_aName = jcas_ConvertToCString(env,aName);
Handle(Aspect_Window) the_this = *((Handle(Aspect_Window)*) jcas_GetHandle(env,theobj));
thejret = the_this->SetBackground(the_aName,(Aspect_FillMethod) aMethod);
}
catch (Standard_Failure) {
Standard_SStream Err;
Err << Standard_Failure::Caught();
Err << (char) 0;
jcas_ThrowException(env,Err.str().c_str());
}
}
alock.Release();
return thejret;
}
JNIEXPORT void JNICALL Java_SampleHLRJni_Aspect_1Window_SetDoubleBuffer (JNIEnv *env, jobject theobj, jboolean DBmode)
{
jcas_Locking alock(env);
{
try {
Handle(Aspect_Window) the_this = *((Handle(Aspect_Window)*) jcas_GetHandle(env,theobj));
the_this->SetDoubleBuffer((Standard_Boolean) DBmode);
}
catch (Standard_Failure) {
Standard_SStream Err;
Err << Standard_Failure::Caught();
Err << (char) 0;
jcas_ThrowException(env,Err.str().c_str());
}
}
alock.Release();
}
JNIEXPORT void JNICALL Java_SampleHLRJni_Aspect_1Window_Flush (JNIEnv *env, jobject theobj)
{
jcas_Locking alock(env);
{
try {
Handle(Aspect_Window) the_this = *((Handle(Aspect_Window)*) jcas_GetHandle(env,theobj));
the_this->Flush();
}
catch (Standard_Failure) {
Standard_SStream Err;
Err << Standard_Failure::Caught();
Err << (char) 0;
jcas_ThrowException(env,Err.str().c_str());
}
}
alock.Release();
}
JNIEXPORT void JNICALL Java_SampleHLRJni_Aspect_1Window_Map (JNIEnv *env, jobject theobj)
{
jcas_Locking alock(env);
{
try {
Handle(Aspect_Window) the_this = *((Handle(Aspect_Window)*) jcas_GetHandle(env,theobj));
the_this->Map();
}
catch (Standard_Failure) {
Standard_SStream Err;
Err << Standard_Failure::Caught();
Err << (char) 0;
jcas_ThrowException(env,Err.str().c_str());
}
}
alock.Release();
}
JNIEXPORT void JNICALL Java_SampleHLRJni_Aspect_1Window_Unmap (JNIEnv *env, jobject theobj)
{
jcas_Locking alock(env);
{
try {
Handle(Aspect_Window) the_this = *((Handle(Aspect_Window)*) jcas_GetHandle(env,theobj));
the_this->Unmap();
}
catch (Standard_Failure) {
Standard_SStream Err;
Err << Standard_Failure::Caught();
Err << (char) 0;
jcas_ThrowException(env,Err.str().c_str());
}
}
alock.Release();
}
JNIEXPORT jshort JNICALL Java_SampleHLRJni_Aspect_1Window_DoResize (JNIEnv *env, jobject theobj)
{
jshort thejret;
jcas_Locking alock(env);
{
try {
Handle(Aspect_Window) the_this = *((Handle(Aspect_Window)*) jcas_GetHandle(env,theobj));
thejret = the_this->DoResize();
}
catch (Standard_Failure) {
Standard_SStream Err;
Err << Standard_Failure::Caught();
Err << (char) 0;
jcas_ThrowException(env,Err.str().c_str());
}
}
alock.Release();
return thejret;
}
JNIEXPORT jboolean JNICALL Java_SampleHLRJni_Aspect_1Window_DoMapping (JNIEnv *env, jobject theobj)
{
jboolean thejret;
jcas_Locking alock(env);
{
try {
Handle(Aspect_Window) the_this = *((Handle(Aspect_Window)*) jcas_GetHandle(env,theobj));
thejret = the_this->DoMapping();
}
catch (Standard_Failure) {
Standard_SStream Err;
Err << Standard_Failure::Caught();
Err << (char) 0;
jcas_ThrowException(env,Err.str().c_str());
}
}
alock.Release();
return thejret;
}
JNIEXPORT void JNICALL Java_SampleHLRJni_Aspect_1Window_Destroy (JNIEnv *env, jobject theobj)
{
jcas_Locking alock(env);
{
try {
Handle(Aspect_Window) the_this = *((Handle(Aspect_Window)*) jcas_GetHandle(env,theobj));
the_this->Destroy();
}
catch (Standard_Failure) {
Standard_SStream Err;
Err << Standard_Failure::Caught();
Err << (char) 0;
jcas_ThrowException(env,Err.str().c_str());
}
}
alock.Release();
}
JNIEXPORT void JNICALL Java_SampleHLRJni_Aspect_1Window_Clear (JNIEnv *env, jobject theobj)
{
jcas_Locking alock(env);
{
try {
Handle(Aspect_Window) the_this = *((Handle(Aspect_Window)*) jcas_GetHandle(env,theobj));
the_this->Clear();
}
catch (Standard_Failure) {
Standard_SStream Err;
Err << Standard_Failure::Caught();
Err << (char) 0;
jcas_ThrowException(env,Err.str().c_str());
}
}
alock.Release();
}
JNIEXPORT void JNICALL Java_SampleHLRJni_Aspect_1Window_ClearArea (JNIEnv *env, jobject theobj, jint XCenter, jint YCenter, jint Width, jint Height)
{
jcas_Locking alock(env);
{
try {
Handle(Aspect_Window) the_this = *((Handle(Aspect_Window)*) jcas_GetHandle(env,theobj));
the_this->ClearArea((Standard_Integer) XCenter,(Standard_Integer) YCenter,(Standard_Integer) Width,(Standard_Integer) Height);
}
catch (Standard_Failure) {
Standard_SStream Err;
Err << Standard_Failure::Caught();
Err << (char) 0;
jcas_ThrowException(env,Err.str().c_str());
}
}
alock.Release();
}
JNIEXPORT void JNICALL Java_SampleHLRJni_Aspect_1Window_Restore (JNIEnv *env, jobject theobj)
{
jcas_Locking alock(env);
{
try {
Handle(Aspect_Window) the_this = *((Handle(Aspect_Window)*) jcas_GetHandle(env,theobj));
the_this->Restore();
}
catch (Standard_Failure) {
Standard_SStream Err;
Err << Standard_Failure::Caught();
Err << (char) 0;
jcas_ThrowException(env,Err.str().c_str());
}
}
alock.Release();
}
JNIEXPORT void JNICALL Java_SampleHLRJni_Aspect_1Window_RestoreArea (JNIEnv *env, jobject theobj, jint XCenter, jint YCenter, jint Width, jint Height)
{
jcas_Locking alock(env);
{
try {
Handle(Aspect_Window) the_this = *((Handle(Aspect_Window)*) jcas_GetHandle(env,theobj));
the_this->RestoreArea((Standard_Integer) XCenter,(Standard_Integer) YCenter,(Standard_Integer) Width,(Standard_Integer) Height);
}
catch (Standard_Failure) {
Standard_SStream Err;
Err << Standard_Failure::Caught();
Err << (char) 0;
jcas_ThrowException(env,Err.str().c_str());
}
}
alock.Release();
}
JNIEXPORT jboolean JNICALL Java_SampleHLRJni_Aspect_1Window_Dump (JNIEnv *env, jobject theobj, jobject aFilename, jdouble aGammaValue)
{
jboolean thejret;
jcas_Locking alock(env);
{
try {
Standard_CString the_aFilename = jcas_ConvertToCString(env,aFilename);
Handle(Aspect_Window) the_this = *((Handle(Aspect_Window)*) jcas_GetHandle(env,theobj));
thejret = the_this->Dump(the_aFilename,(Standard_Real) aGammaValue);
}
catch (Standard_Failure) {
Standard_SStream Err;
Err << Standard_Failure::Caught();
Err << (char) 0;
jcas_ThrowException(env,Err.str().c_str());
}
}
alock.Release();
return thejret;
}
JNIEXPORT jboolean JNICALL Java_SampleHLRJni_Aspect_1Window_DumpArea (JNIEnv *env, jobject theobj, jobject aFilename, jint Xc, jint Yc, jint Width, jint Height, jdouble aGammaValue)
{
jboolean thejret;
jcas_Locking alock(env);
{
try {
Standard_CString the_aFilename = jcas_ConvertToCString(env,aFilename);
Handle(Aspect_Window) the_this = *((Handle(Aspect_Window)*) jcas_GetHandle(env,theobj));
thejret = the_this->DumpArea(the_aFilename,(Standard_Integer) Xc,(Standard_Integer) Yc,(Standard_Integer) Width,(Standard_Integer) Height,(Standard_Real) aGammaValue);
}
catch (Standard_Failure) {
Standard_SStream Err;
Err << Standard_Failure::Caught();
Err << (char) 0;
jcas_ThrowException(env,Err.str().c_str());
}
}
alock.Release();
return thejret;
}
JNIEXPORT jboolean JNICALL Java_SampleHLRJni_Aspect_1Window_Load (JNIEnv *env, jobject theobj, jobject aFilename)
{
jboolean thejret;
jcas_Locking alock(env);
{
try {
Standard_CString the_aFilename = jcas_ConvertToCString(env,aFilename);
Handle(Aspect_Window) the_this = *((Handle(Aspect_Window)*) jcas_GetHandle(env,theobj));
thejret = the_this->Load(the_aFilename);
}
catch (Standard_Failure) {
Standard_SStream Err;
Err << Standard_Failure::Caught();
Err << (char) 0;
jcas_ThrowException(env,Err.str().c_str());
}
}
alock.Release();
return thejret;
}
JNIEXPORT jboolean JNICALL Java_SampleHLRJni_Aspect_1Window_LoadArea (JNIEnv *env, jobject theobj, jobject aFilename, jint Xc, jint Yc, jint Width, jint Height)
{
jboolean thejret;
jcas_Locking alock(env);
{
try {
Standard_CString the_aFilename = jcas_ConvertToCString(env,aFilename);
Handle(Aspect_Window) the_this = *((Handle(Aspect_Window)*) jcas_GetHandle(env,theobj));
thejret = the_this->LoadArea(the_aFilename,(Standard_Integer) Xc,(Standard_Integer) Yc,(Standard_Integer) Width,(Standard_Integer) Height);
}
catch (Standard_Failure) {
Standard_SStream Err;
Err << Standard_Failure::Caught();
Err << (char) 0;
jcas_ThrowException(env,Err.str().c_str());
}
}
alock.Release();
return thejret;
}
JNIEXPORT jobject JNICALL Java_SampleHLRJni_Aspect_1Window_Background (JNIEnv *env, jobject theobj)
{
jobject thejret;
jcas_Locking alock(env);
{
try {
Handle(Aspect_Window) the_this = *((Handle(Aspect_Window)*) jcas_GetHandle(env,theobj));
Aspect_Background* theret = new Aspect_Background(the_this->Background());
thejret = jcas_CreateObject(env,"CASCADESamplesJni/Aspect_Background",theret);
}
catch (Standard_Failure) {
Standard_SStream Err;
Err << Standard_Failure::Caught();
Err << (char) 0;
jcas_ThrowException(env,Err.str().c_str());
}
}
alock.Release();
return thejret;
}
JNIEXPORT jobject JNICALL Java_SampleHLRJni_Aspect_1Window_BackgroundImage (JNIEnv *env, jobject theobj)
{
jobject thejret;
jcas_Locking alock(env);
{
try {
Handle(Aspect_Window) the_this = *((Handle(Aspect_Window)*) jcas_GetHandle(env,theobj));
Standard_CString sret = the_this->BackgroundImage();
jclass CLSret = env->FindClass("jcas/Standard_CString");
thejret = env->AllocObject(CLSret);
jcas_SetCStringValue(env,thejret,sret);
}
catch (Standard_Failure) {
Standard_SStream Err;
Err << Standard_Failure::Caught();
Err << (char) 0;
jcas_ThrowException(env,Err.str().c_str());
}
}
alock.Release();
return thejret;
}
JNIEXPORT jshort JNICALL Java_SampleHLRJni_Aspect_1Window_BackgroundFillMethod (JNIEnv *env, jobject theobj)
{
jshort thejret;
jcas_Locking alock(env);
{
try {
Handle(Aspect_Window) the_this = *((Handle(Aspect_Window)*) jcas_GetHandle(env,theobj));
thejret = the_this->BackgroundFillMethod();
}
catch (Standard_Failure) {
Standard_SStream Err;
Err << Standard_Failure::Caught();
Err << (char) 0;
jcas_ThrowException(env,Err.str().c_str());
}
}
alock.Release();
return thejret;
}
JNIEXPORT jobject JNICALL Java_SampleHLRJni_Aspect_1Window_GraphicDevice (JNIEnv *env, jobject theobj)
{
jobject thejret;
jcas_Locking alock(env);
{
try {
Handle(Aspect_Window) the_this = *((Handle(Aspect_Window)*) jcas_GetHandle(env,theobj));
Handle(Aspect_GraphicDevice)* theret = new Handle(Aspect_GraphicDevice);
*theret = the_this->GraphicDevice();
thejret = jcas_CreateObject(env,"CASCADESamplesJni/Aspect_GraphicDevice",theret);
}
catch (Standard_Failure) {
Standard_SStream Err;
Err << Standard_Failure::Caught();
Err << (char) 0;
jcas_ThrowException(env,Err.str().c_str());
}
}
alock.Release();
return thejret;
}
JNIEXPORT jboolean JNICALL Java_SampleHLRJni_Aspect_1Window_IsMapped (JNIEnv *env, jobject theobj)
{
jboolean thejret;
jcas_Locking alock(env);
{
try {
Handle(Aspect_Window) the_this = *((Handle(Aspect_Window)*) jcas_GetHandle(env,theobj));
thejret = the_this->IsMapped();
}
catch (Standard_Failure) {
Standard_SStream Err;
Err << Standard_Failure::Caught();
Err << (char) 0;
jcas_ThrowException(env,Err.str().c_str());
}
}
alock.Release();
return thejret;
}
JNIEXPORT jdouble JNICALL Java_SampleHLRJni_Aspect_1Window_Ratio (JNIEnv *env, jobject theobj)
{
jdouble thejret;
jcas_Locking alock(env);
{
try {
Handle(Aspect_Window) the_this = *((Handle(Aspect_Window)*) jcas_GetHandle(env,theobj));
thejret = the_this->Ratio();
}
catch (Standard_Failure) {
Standard_SStream Err;
Err << Standard_Failure::Caught();
Err << (char) 0;
jcas_ThrowException(env,Err.str().c_str());
}
}
alock.Release();
return thejret;
}
JNIEXPORT void JNICALL Java_SampleHLRJni_Aspect_1Window_Aspect_1Window_1Position_11 (JNIEnv *env, jobject theobj, jobject X1, jobject Y1, jobject X2, jobject Y2)
{
jcas_Locking alock(env);
{
try {
Standard_Real the_X1 = jcas_GetReal(env,X1);
Standard_Real the_Y1 = jcas_GetReal(env,Y1);
Standard_Real the_X2 = jcas_GetReal(env,X2);
Standard_Real the_Y2 = jcas_GetReal(env,Y2);
Handle(Aspect_Window) the_this = *((Handle(Aspect_Window)*) jcas_GetHandle(env,theobj));
the_this->Position(the_X1,the_Y1,the_X2,the_Y2);
jcas_SetReal(env,X1,the_X1);
jcas_SetReal(env,Y1,the_Y1);
jcas_SetReal(env,X2,the_X2);
jcas_SetReal(env,Y2,the_Y2);
}
catch (Standard_Failure) {
Standard_SStream Err;
Err << Standard_Failure::Caught();
Err << (char) 0;
jcas_ThrowException(env,Err.str().c_str());
}
}
alock.Release();
}
JNIEXPORT void JNICALL Java_SampleHLRJni_Aspect_1Window_Aspect_1Window_1Position_12 (JNIEnv *env, jobject theobj, jobject X1, jobject Y1, jobject X2, jobject Y2)
{
jcas_Locking alock(env);
{
try {
Standard_Integer the_X1 = jcas_GetInteger(env,X1);
Standard_Integer the_Y1 = jcas_GetInteger(env,Y1);
Standard_Integer the_X2 = jcas_GetInteger(env,X2);
Standard_Integer the_Y2 = jcas_GetInteger(env,Y2);
Handle(Aspect_Window) the_this = *((Handle(Aspect_Window)*) jcas_GetHandle(env,theobj));
the_this->Position(the_X1,the_Y1,the_X2,the_Y2);
jcas_SetInteger(env,X1,the_X1);
jcas_SetInteger(env,Y1,the_Y1);
jcas_SetInteger(env,X2,the_X2);
jcas_SetInteger(env,Y2,the_Y2);
}
catch (Standard_Failure) {
Standard_SStream Err;
Err << Standard_Failure::Caught();
Err << (char) 0;
jcas_ThrowException(env,Err.str().c_str());
}
}
alock.Release();
}
JNIEXPORT void JNICALL Java_SampleHLRJni_Aspect_1Window_Aspect_1Window_1Size_11 (JNIEnv *env, jobject theobj, jobject Width, jobject Height)
{
jcas_Locking alock(env);
{
try {
Standard_Real the_Width = jcas_GetReal(env,Width);
Standard_Real the_Height = jcas_GetReal(env,Height);
Handle(Aspect_Window) the_this = *((Handle(Aspect_Window)*) jcas_GetHandle(env,theobj));
the_this->Size(the_Width,the_Height);
jcas_SetReal(env,Width,the_Width);
jcas_SetReal(env,Height,the_Height);
}
catch (Standard_Failure) {
Standard_SStream Err;
Err << Standard_Failure::Caught();
Err << (char) 0;
jcas_ThrowException(env,Err.str().c_str());
}
}
alock.Release();
}
JNIEXPORT void JNICALL Java_SampleHLRJni_Aspect_1Window_Aspect_1Window_1Size_12 (JNIEnv *env, jobject theobj, jobject Width, jobject Height)
{
jcas_Locking alock(env);
{
try {
Standard_Integer the_Width = jcas_GetInteger(env,Width);
Standard_Integer the_Height = jcas_GetInteger(env,Height);
Handle(Aspect_Window) the_this = *((Handle(Aspect_Window)*) jcas_GetHandle(env,theobj));
the_this->Size(the_Width,the_Height);
jcas_SetInteger(env,Width,the_Width);
jcas_SetInteger(env,Height,the_Height);
}
catch (Standard_Failure) {
Standard_SStream Err;
Err << Standard_Failure::Caught();
Err << (char) 0;
jcas_ThrowException(env,Err.str().c_str());
}
}
alock.Release();
}
JNIEXPORT void JNICALL Java_SampleHLRJni_Aspect_1Window_MMSize (JNIEnv *env, jobject theobj, jobject Width, jobject Height)
{
jcas_Locking alock(env);
{
try {
Standard_Real the_Width = jcas_GetReal(env,Width);
Standard_Real the_Height = jcas_GetReal(env,Height);
Handle(Aspect_Window) the_this = *((Handle(Aspect_Window)*) jcas_GetHandle(env,theobj));
the_this->MMSize(the_Width,the_Height);
jcas_SetReal(env,Width,the_Width);
jcas_SetReal(env,Height,the_Height);
}
catch (Standard_Failure) {
Standard_SStream Err;
Err << Standard_Failure::Caught();
Err << (char) 0;
jcas_ThrowException(env,Err.str().c_str());
}
}
alock.Release();
}
JNIEXPORT jdouble JNICALL Java_SampleHLRJni_Aspect_1Window_Aspect_1Window_1Convert_11 (JNIEnv *env, jobject theobj, jint PV)
{
jdouble thejret;
jcas_Locking alock(env);
{
try {
Handle(Aspect_Window) the_this = *((Handle(Aspect_Window)*) jcas_GetHandle(env,theobj));
thejret = the_this->Convert((Standard_Integer) PV);
}
catch (Standard_Failure) {
Standard_SStream Err;
Err << Standard_Failure::Caught();
Err << (char) 0;
jcas_ThrowException(env,Err.str().c_str());
}
}
alock.Release();
return thejret;
}
JNIEXPORT jint JNICALL Java_SampleHLRJni_Aspect_1Window_Aspect_1Window_1Convert_12 (JNIEnv *env, jobject theobj, jdouble DV)
{
jint thejret;
jcas_Locking alock(env);
{
try {
Handle(Aspect_Window) the_this = *((Handle(Aspect_Window)*) jcas_GetHandle(env,theobj));
thejret = the_this->Convert((Quantity_Parameter) DV);
}
catch (Standard_Failure) {
Standard_SStream Err;
Err << Standard_Failure::Caught();
Err << (char) 0;
jcas_ThrowException(env,Err.str().c_str());
}
}
alock.Release();
return thejret;
}
JNIEXPORT void JNICALL Java_SampleHLRJni_Aspect_1Window_Aspect_1Window_1Convert_13 (JNIEnv *env, jobject theobj, jint PX, jint PY, jobject DX, jobject DY)
{
jcas_Locking alock(env);
{
try {
Standard_Real the_DX = jcas_GetReal(env,DX);
Standard_Real the_DY = jcas_GetReal(env,DY);
Handle(Aspect_Window) the_this = *((Handle(Aspect_Window)*) jcas_GetHandle(env,theobj));
the_this->Convert((Standard_Integer) PX,(Standard_Integer) PY,the_DX,the_DY);
jcas_SetReal(env,DX,the_DX);
jcas_SetReal(env,DY,the_DY);
}
catch (Standard_Failure) {
Standard_SStream Err;
Err << Standard_Failure::Caught();
Err << (char) 0;
jcas_ThrowException(env,Err.str().c_str());
}
}
alock.Release();
}
JNIEXPORT void JNICALL Java_SampleHLRJni_Aspect_1Window_Aspect_1Window_1Convert_14 (JNIEnv *env, jobject theobj, jdouble DX, jdouble DY, jobject PX, jobject PY)
{
jcas_Locking alock(env);
{
try {
Standard_Integer the_PX = jcas_GetInteger(env,PX);
Standard_Integer the_PY = jcas_GetInteger(env,PY);
Handle(Aspect_Window) the_this = *((Handle(Aspect_Window)*) jcas_GetHandle(env,theobj));
the_this->Convert((Quantity_Parameter) DX,(Quantity_Parameter) DY,the_PX,the_PY);
jcas_SetInteger(env,PX,the_PX);
jcas_SetInteger(env,PY,the_PY);
}
catch (Standard_Failure) {
Standard_SStream Err;
Err << Standard_Failure::Caught();
Err << (char) 0;
jcas_ThrowException(env,Err.str().c_str());
}
}
alock.Release();
}
JNIEXPORT jboolean JNICALL Java_SampleHLRJni_Aspect_1Window_BackingStore (JNIEnv *env, jobject theobj)
{
jboolean thejret;
jcas_Locking alock(env);
{
try {
Handle(Aspect_Window) the_this = *((Handle(Aspect_Window)*) jcas_GetHandle(env,theobj));
thejret = the_this->BackingStore();
}
catch (Standard_Failure) {
Standard_SStream Err;
Err << Standard_Failure::Caught();
Err << (char) 0;
jcas_ThrowException(env,Err.str().c_str());
}
}
alock.Release();
return thejret;
}
JNIEXPORT jboolean JNICALL Java_SampleHLRJni_Aspect_1Window_DoubleBuffer (JNIEnv *env, jobject theobj)
{
jboolean thejret;
jcas_Locking alock(env);
{
try {
Handle(Aspect_Window) the_this = *((Handle(Aspect_Window)*) jcas_GetHandle(env,theobj));
thejret = the_this->DoubleBuffer();
}
catch (Standard_Failure) {
Standard_SStream Err;
Err << Standard_Failure::Caught();
Err << (char) 0;
jcas_ThrowException(env,Err.str().c_str());
}
}
alock.Release();
return thejret;
}
}

View File

@@ -0,0 +1,33 @@
//
// Copyright (C) 1991 - 2000 by
// Matra Datavision SA. All rights reserved.
//
// Copyright (C) 2001 - 2004 by
// Open CASCADE SA. All rights reserved.
//
// This file is part of the Open CASCADE Technology software.
//
// This software may be distributed and/or modified under the terms and
// conditions of the Open CASCADE Public License as defined by Open CASCADE SA
// and appearing in the file LICENSE included in the packaging of this file.
//
// This software is distributed on an "AS IS" basis, without warranty of any
// kind, and Open CASCADE SA hereby disclaims all such warranties,
// including without limitation, any warranties of merchantability, fitness
// for a particular purpose or non-infringement. Please see the License for
// the specific terms and conditions governing rights and limitations under the
// License.
#include <SampleHLRJni_ISession2D_InteractiveContext.h>
#include <ISession2D_InteractiveContext.hxx>
#include <jcas.hxx>
#include <stdlib.h>
#include <Standard_ErrorHandler.hxx>
#include <Standard_Failure.hxx>
#include <Standard_SStream.hxx>
extern "C" {
}

View File

@@ -0,0 +1,43 @@
//
// Copyright (C) 1991 - 2000 by
// Matra Datavision SA. All rights reserved.
//
// Copyright (C) 2001 - 2004 by
// Open CASCADE SA. All rights reserved.
//
// This file is part of the Open CASCADE Technology software.
//
// This software may be distributed and/or modified under the terms and
// conditions of the Open CASCADE Public License as defined by Open CASCADE SA
// and appearing in the file LICENSE included in the packaging of this file.
//
// This software is distributed on an "AS IS" basis, without warranty of any
// kind, and Open CASCADE SA hereby disclaims all such warranties,
// including without limitation, any warranties of merchantability, fitness
// for a particular purpose or non-infringement. Please see the License for
// the specific terms and conditions governing rights and limitations under the
// License.
#include <SampleHLRJni_Quantity_Color.h>
#include <Quantity_Color.hxx>
#include <jcas.hxx>
#include <stdlib.h>
#include <Standard_ErrorHandler.hxx>
#include <Standard_Failure.hxx>
#include <Standard_SStream.hxx>
extern "C" {
JNIEXPORT void JNICALL Java_SampleHLRJni_Quantity_1Color_FinalizeValue(JNIEnv *, jclass, jlong theid)
{
if (theid) {
Quantity_Color* theobj = (Quantity_Color*) theid;
delete theobj;
}
}
}

View File

@@ -0,0 +1,434 @@
//
// Copyright (C) 1991 - 2000 by
// Matra Datavision SA. All rights reserved.
//
// Copyright (C) 2001 - 2004 by
// Open CASCADE SA. All rights reserved.
//
// This file is part of the Open CASCADE Technology software.
//
// This software may be distributed and/or modified under the terms and
// conditions of the Open CASCADE Public License as defined by Open CASCADE SA
// and appearing in the file LICENSE included in the packaging of this file.
//
// This software is distributed on an "AS IS" basis, without warranty of any
// kind, and Open CASCADE SA hereby disclaims all such warranties,
// including without limitation, any warranties of merchantability, fitness
// for a particular purpose or non-infringement. Please see the License for
// the specific terms and conditions governing rights and limitations under the
// License.
#include <SampleHLRJni_SampleHLRPackage.h>
#include <SampleHLRPackage.hxx>
#include <jcas.hxx>
#include <stdlib.h>
#include <Standard_ErrorHandler.hxx>
#include <Standard_Failure.hxx>
#include <Standard_SStream.hxx>
#include <V3d_Viewer.hxx>
#include <Standard_ExtString.hxx>
#include <V3d_View.hxx>
#include <Standard_Integer.hxx>
#include <V2d_Viewer.hxx>
#include <V2d_View.hxx>
#include <AIS_InteractiveContext.hxx>
#include <Standard_Boolean.hxx>
#include <ISession2D_InteractiveContext.hxx>
#include <Standard_CString.hxx>
extern "C" {
JNIEXPORT jobject JNICALL Java_SampleHLRJni_SampleHLRPackage_CreateViewer3d (JNIEnv *env, jclass, jstring aName)
{
jobject thejret;
jcas_Locking alock(env);
{
try {
Standard_ExtString the_aName = jcas_ConvertToExtString(env,aName);
Handle(V3d_Viewer)* theret = new Handle(V3d_Viewer);
*theret = SampleHLRPackage::CreateViewer3d(the_aName);
thejret = jcas_CreateObject(env,"CASCADESamplesJni/V3d_Viewer",theret);
}
catch (Standard_Failure) {
Standard_SStream Err;
Err << Standard_Failure::Caught();
Err << (char) 0;
jcas_ThrowException(env,Err.str().c_str());
}
}
alock.Release();
return thejret;
}
JNIEXPORT void JNICALL Java_SampleHLRJni_SampleHLRPackage_SetWindow3d (JNIEnv *env, jclass, jobject aView, jint hiwin, jint lowin)
{
jcas_Locking alock(env);
{
try {
Handle( V3d_View ) the_aView;
void* ptr_aView = jcas_GetHandle(env,aView);
if ( ptr_aView != NULL ) the_aView = *( ( Handle( V3d_View )* )ptr_aView );
SampleHLRPackage::SetWindow3d(the_aView,(Standard_Integer) hiwin,(Standard_Integer) lowin);
}
catch (Standard_Failure) {
Standard_SStream Err;
Err << Standard_Failure::Caught();
Err << (char) 0;
jcas_ThrowException(env,Err.str().c_str());
}
}
alock.Release();
}
JNIEXPORT jobject JNICALL Java_SampleHLRJni_SampleHLRPackage_CreateViewer2d (JNIEnv *env, jclass, jstring aName)
{
jobject thejret;
jcas_Locking alock(env);
{
try {
Standard_ExtString the_aName = jcas_ConvertToExtString(env,aName);
Handle(V2d_Viewer)* theret = new Handle(V2d_Viewer);
*theret = SampleHLRPackage::CreateViewer2d(the_aName);
thejret = jcas_CreateObject(env,"CASCADESamplesJni/V2d_Viewer",theret);
}
catch (Standard_Failure) {
Standard_SStream Err;
Err << Standard_Failure::Caught();
Err << (char) 0;
jcas_ThrowException(env,Err.str().c_str());
}
}
alock.Release();
return thejret;
}
JNIEXPORT jobject JNICALL Java_SampleHLRJni_SampleHLRPackage_CreateView2d (JNIEnv *env, jclass, jobject aViewer, jint hiwin, jint lowin)
{
jobject thejret;
jcas_Locking alock(env);
{
try {
Handle( V2d_Viewer ) the_aViewer;
void* ptr_aViewer = jcas_GetHandle(env,aViewer);
if ( ptr_aViewer != NULL ) the_aViewer = *( ( Handle( V2d_Viewer )* )ptr_aViewer );
Handle(V2d_View)* theret = new Handle(V2d_View);
*theret = SampleHLRPackage::CreateView2d(the_aViewer,(Standard_Integer) hiwin,(Standard_Integer) lowin);
thejret = jcas_CreateObject(env,"CASCADESamplesJni/V2d_View",theret);
}
catch (Standard_Failure) {
Standard_SStream Err;
Err << Standard_Failure::Caught();
Err << (char) 0;
jcas_ThrowException(env,Err.str().c_str());
}
}
alock.Release();
return thejret;
}
JNIEXPORT void JNICALL Java_SampleHLRJni_SampleHLRPackage_InitMaps (JNIEnv *env, jclass, jobject aViewer)
{
jcas_Locking alock(env);
{
try {
Handle( V2d_Viewer ) the_aViewer;
void* ptr_aViewer = jcas_GetHandle(env,aViewer);
if ( ptr_aViewer != NULL ) the_aViewer = *( ( Handle( V2d_Viewer )* )ptr_aViewer );
SampleHLRPackage::InitMaps(the_aViewer);
}
catch (Standard_Failure) {
Standard_SStream Err;
Err << Standard_Failure::Caught();
Err << (char) 0;
jcas_ThrowException(env,Err.str().c_str());
}
}
alock.Release();
}
JNIEXPORT void JNICALL Java_SampleHLRJni_SampleHLRPackage_DisplayTrihedron (JNIEnv *env, jclass, jobject aContext)
{
jcas_Locking alock(env);
{
try {
Handle( AIS_InteractiveContext ) the_aContext;
void* ptr_aContext = jcas_GetHandle(env,aContext);
if ( ptr_aContext != NULL ) the_aContext = *( ( Handle( AIS_InteractiveContext )* )ptr_aContext );
SampleHLRPackage::DisplayTrihedron(the_aContext);
}
catch (Standard_Failure) {
Standard_SStream Err;
Err << Standard_Failure::Caught();
Err << (char) 0;
jcas_ThrowException(env,Err.str().c_str());
}
}
alock.Release();
}
JNIEXPORT jboolean JNICALL Java_SampleHLRJni_SampleHLRPackage_GetShapes (JNIEnv *env, jclass, jobject aSrcContext, jobject aDestContext)
{
jboolean thejret;
jcas_Locking alock(env);
{
try {
Handle( AIS_InteractiveContext ) the_aSrcContext;
void* ptr_aSrcContext = jcas_GetHandle(env,aSrcContext);
if ( ptr_aSrcContext != NULL ) the_aSrcContext = *( ( Handle( AIS_InteractiveContext )* )ptr_aSrcContext );
Handle( AIS_InteractiveContext ) the_aDestContext;
void* ptr_aDestContext = jcas_GetHandle(env,aDestContext);
if ( ptr_aDestContext != NULL ) the_aDestContext = *( ( Handle( AIS_InteractiveContext )* )ptr_aDestContext );
thejret = SampleHLRPackage::GetShapes(the_aSrcContext,the_aDestContext);
}
catch (Standard_Failure) {
Standard_SStream Err;
Err << Standard_Failure::Caught();
Err << (char) 0;
jcas_ThrowException(env,Err.str().c_str());
}
}
alock.Release();
return thejret;
}
JNIEXPORT void JNICALL Java_SampleHLRJni_SampleHLRPackage_Apply (JNIEnv *env, jclass, jobject aContext2d, jint aDisplayMode)
{
jcas_Locking alock(env);
{
try {
Handle( ISession2D_InteractiveContext ) the_aContext2d;
void* ptr_aContext2d = jcas_GetHandle(env,aContext2d);
if ( ptr_aContext2d != NULL ) the_aContext2d = *( ( Handle( ISession2D_InteractiveContext )* )ptr_aContext2d );
SampleHLRPackage::Apply(the_aContext2d,(Standard_Integer) aDisplayMode);
}
catch (Standard_Failure) {
Standard_SStream Err;
Err << Standard_Failure::Caught();
Err << (char) 0;
jcas_ThrowException(env,Err.str().c_str());
}
}
alock.Release();
}
JNIEXPORT void JNICALL Java_SampleHLRJni_SampleHLRPackage_UpdateProjector (JNIEnv *env, jclass, jobject aView)
{
jcas_Locking alock(env);
{
try {
Handle( V3d_View ) the_aView;
void* ptr_aView = jcas_GetHandle(env,aView);
if ( ptr_aView != NULL ) the_aView = *( ( Handle( V3d_View )* )ptr_aView );
SampleHLRPackage::UpdateProjector(the_aView);
}
catch (Standard_Failure) {
Standard_SStream Err;
Err << Standard_Failure::Caught();
Err << (char) 0;
jcas_ThrowException(env,Err.str().c_str());
}
}
alock.Release();
}
JNIEXPORT void JNICALL Java_SampleHLRJni_SampleHLRPackage_SetNbIsos (JNIEnv *env, jclass, jint aNbIsos)
{
jcas_Locking alock(env);
{
try {
SampleHLRPackage::SetNbIsos((Standard_Integer) aNbIsos);
}
catch (Standard_Failure) {
Standard_SStream Err;
Err << Standard_Failure::Caught();
Err << (char) 0;
jcas_ThrowException(env,Err.str().c_str());
}
}
alock.Release();
}
JNIEXPORT jboolean JNICALL Java_SampleHLRJni_SampleHLRPackage_ReadBRep (JNIEnv *env, jclass, jobject aFileName, jobject aContext)
{
jboolean thejret;
jcas_Locking alock(env);
{
try {
Standard_CString the_aFileName = jcas_ConvertToCString(env,aFileName);
Handle( AIS_InteractiveContext ) the_aContext;
void* ptr_aContext = jcas_GetHandle(env,aContext);
if ( ptr_aContext != NULL ) the_aContext = *( ( Handle( AIS_InteractiveContext )* )ptr_aContext );
thejret = SampleHLRPackage::ReadBRep(the_aFileName,the_aContext);
}
catch (Standard_Failure) {
Standard_SStream Err;
Err << Standard_Failure::Caught();
Err << (char) 0;
jcas_ThrowException(env,Err.str().c_str());
}
}
alock.Release();
return thejret;
}
JNIEXPORT jboolean JNICALL Java_SampleHLRJni_SampleHLRPackage_SaveBRep (JNIEnv *env, jclass, jobject aFileName, jobject aContext)
{
jboolean thejret;
jcas_Locking alock(env);
{
try {
Standard_CString the_aFileName = jcas_ConvertToCString(env,aFileName);
Handle( AIS_InteractiveContext ) the_aContext;
void* ptr_aContext = jcas_GetHandle(env,aContext);
if ( ptr_aContext != NULL ) the_aContext = *( ( Handle( AIS_InteractiveContext )* )ptr_aContext );
thejret = SampleHLRPackage::SaveBRep(the_aFileName,the_aContext);
}
catch (Standard_Failure) {
Standard_SStream Err;
Err << Standard_Failure::Caught();
Err << (char) 0;
jcas_ThrowException(env,Err.str().c_str());
}
}
alock.Release();
return thejret;
}
JNIEXPORT jboolean JNICALL Java_SampleHLRJni_SampleHLRPackage_SampleHLRPackage_1SaveImage_11 (JNIEnv *env, jclass, jobject aFileName, jobject aFormat, jobject aView)
{
jboolean thejret;
jcas_Locking alock(env);
{
try {
Standard_CString the_aFileName = jcas_ConvertToCString(env,aFileName);
Standard_CString the_aFormat = jcas_ConvertToCString(env,aFormat);
Handle( V3d_View ) the_aView;
void* ptr_aView = jcas_GetHandle(env,aView);
if ( ptr_aView != NULL ) the_aView = *( ( Handle( V3d_View )* )ptr_aView );
thejret = SampleHLRPackage::SaveImage(the_aFileName,the_aFormat,the_aView);
}
catch (Standard_Failure) {
Standard_SStream Err;
Err << Standard_Failure::Caught();
Err << (char) 0;
jcas_ThrowException(env,Err.str().c_str());
}
}
alock.Release();
return thejret;
}
JNIEXPORT jboolean JNICALL Java_SampleHLRJni_SampleHLRPackage_SampleHLRPackage_1SaveImage_12 (JNIEnv *env, jclass, jobject aFileName, jobject aFormat, jobject aView)
{
jboolean thejret;
jcas_Locking alock(env);
{
try {
Standard_CString the_aFileName = jcas_ConvertToCString(env,aFileName);
Standard_CString the_aFormat = jcas_ConvertToCString(env,aFormat);
Handle( V2d_View ) the_aView;
void* ptr_aView = jcas_GetHandle(env,aView);
if ( ptr_aView != NULL ) the_aView = *( ( Handle( V2d_View )* )ptr_aView );
thejret = SampleHLRPackage::SaveImage(the_aFileName,the_aFormat,the_aView);
}
catch (Standard_Failure) {
Standard_SStream Err;
Err << Standard_Failure::Caught();
Err << (char) 0;
jcas_ThrowException(env,Err.str().c_str());
}
}
alock.Release();
return thejret;
}
}

View File

@@ -0,0 +1,33 @@
//
// Copyright (C) 1991 - 2000 by
// Matra Datavision SA. All rights reserved.
//
// Copyright (C) 2001 - 2004 by
// Open CASCADE SA. All rights reserved.
//
// This file is part of the Open CASCADE Technology software.
//
// This software may be distributed and/or modified under the terms and
// conditions of the Open CASCADE Public License as defined by Open CASCADE SA
// and appearing in the file LICENSE included in the packaging of this file.
//
// This software is distributed on an "AS IS" basis, without warranty of any
// kind, and Open CASCADE SA hereby disclaims all such warranties,
// including without limitation, any warranties of merchantability, fitness
// for a particular purpose or non-infringement. Please see the License for
// the specific terms and conditions governing rights and limitations under the
// License.
#include <SampleHLRJni_Standard_Type.h>
#include <Standard_Type.hxx>
#include <jcas.hxx>
#include <stdlib.h>
#include <Standard_ErrorHandler.hxx>
#include <Standard_Failure.hxx>
#include <Standard_SStream.hxx>
extern "C" {
}

View File

@@ -0,0 +1,341 @@
//
// Copyright (C) 1991 - 2000 by
// Matra Datavision SA. All rights reserved.
//
// Copyright (C) 2001 - 2004 by
// Open CASCADE SA. All rights reserved.
//
// This file is part of the Open CASCADE Technology software.
//
// This software may be distributed and/or modified under the terms and
// conditions of the Open CASCADE Public License as defined by Open CASCADE SA
// and appearing in the file LICENSE included in the packaging of this file.
//
// This software is distributed on an "AS IS" basis, without warranty of any
// kind, and Open CASCADE SA hereby disclaims all such warranties,
// including without limitation, any warranties of merchantability, fitness
// for a particular purpose or non-infringement. Please see the License for
// the specific terms and conditions governing rights and limitations under the
// License.
#include <SampleHLRJni_TColQuantity_Array1OfLength.h>
#include <TColQuantity_Array1OfLength.hxx>
#include <jcas.hxx>
#include <stdlib.h>
#include <Standard_ErrorHandler.hxx>
#include <Standard_Failure.hxx>
#include <Standard_SStream.hxx>
#include <Standard_Integer.hxx>
#include <Standard_Real.hxx>
#include <Standard_Boolean.hxx>
extern "C" {
JNIEXPORT void JNICALL Java_SampleHLRJni_TColQuantity_1Array1OfLength_TColQuantity_1Array1OfLength_1Create_11 (JNIEnv *env, jobject theobj, jint Low, jint Up)
{
jcas_Locking alock(env);
{
try {
TColQuantity_Array1OfLength* theret = new TColQuantity_Array1OfLength((Standard_Integer) Low,(Standard_Integer) Up);
jcas_SetHandle(env,theobj,theret);
}
catch (Standard_Failure) {
Standard_SStream Err;
Err << Standard_Failure::Caught();
Err << (char) 0;
jcas_ThrowException(env,Err.str().c_str());
}
}
alock.Release();
}
JNIEXPORT void JNICALL Java_SampleHLRJni_TColQuantity_1Array1OfLength_TColQuantity_1Array1OfLength_1Create_12 (JNIEnv *env, jobject theobj, jdouble Item, jint Low, jint Up)
{
jcas_Locking alock(env);
{
try {
TColQuantity_Array1OfLength* theret = new TColQuantity_Array1OfLength((Quantity_Length) Item,(Standard_Integer) Low,(Standard_Integer) Up);
jcas_SetHandle(env,theobj,theret);
}
catch (Standard_Failure) {
Standard_SStream Err;
Err << Standard_Failure::Caught();
Err << (char) 0;
jcas_ThrowException(env,Err.str().c_str());
}
}
alock.Release();
}
JNIEXPORT void JNICALL Java_SampleHLRJni_TColQuantity_1Array1OfLength_Init (JNIEnv *env, jobject theobj, jdouble V)
{
jcas_Locking alock(env);
{
try {
TColQuantity_Array1OfLength* the_this = (TColQuantity_Array1OfLength*) jcas_GetHandle(env,theobj);
the_this->Init((Quantity_Length) V);
}
catch (Standard_Failure) {
Standard_SStream Err;
Err << Standard_Failure::Caught();
Err << (char) 0;
jcas_ThrowException(env,Err.str().c_str());
}
}
alock.Release();
}
JNIEXPORT void JNICALL Java_SampleHLRJni_TColQuantity_1Array1OfLength_Destroy (JNIEnv *env, jobject theobj)
{
jcas_Locking alock(env);
{
try {
TColQuantity_Array1OfLength* the_this = (TColQuantity_Array1OfLength*) jcas_GetHandle(env,theobj);
the_this->Destroy();
}
catch (Standard_Failure) {
Standard_SStream Err;
Err << Standard_Failure::Caught();
Err << (char) 0;
jcas_ThrowException(env,Err.str().c_str());
}
}
alock.Release();
}
JNIEXPORT jboolean JNICALL Java_SampleHLRJni_TColQuantity_1Array1OfLength_IsAllocated (JNIEnv *env, jobject theobj)
{
jboolean thejret;
jcas_Locking alock(env);
{
try {
TColQuantity_Array1OfLength* the_this = (TColQuantity_Array1OfLength*) jcas_GetHandle(env,theobj);
thejret = the_this->IsAllocated();
}
catch (Standard_Failure) {
Standard_SStream Err;
Err << Standard_Failure::Caught();
Err << (char) 0;
jcas_ThrowException(env,Err.str().c_str());
}
}
alock.Release();
return thejret;
}
JNIEXPORT jobject JNICALL Java_SampleHLRJni_TColQuantity_1Array1OfLength_Assign (JNIEnv *env, jobject theobj, jobject Other)
{
jobject thejret;
jcas_Locking alock(env);
{
try {
TColQuantity_Array1OfLength* the_Other = (TColQuantity_Array1OfLength*) jcas_GetHandle(env,Other);
if ( the_Other == NULL ) {
// The following assumes availability of the default constructor (what may not
// always be the case). Therefore explicit exception is thrown if the null
// object has been passed.
// the_Other = new TColQuantity_Array1OfLength ();
// jcas_SetHandle ( env, Other, the_Other );
jcas_ThrowException (env, "NULL object has been passed while expecting an object manipulated by value");
} // end if
TColQuantity_Array1OfLength* the_this = (TColQuantity_Array1OfLength*) jcas_GetHandle(env,theobj);
const TColQuantity_Array1OfLength& theret = the_this->Assign(*the_Other);
thejret = jcas_CreateObject(env,"CASCADESamplesJni/TColQuantity_Array1OfLength",&theret,0);
}
catch (Standard_Failure) {
Standard_SStream Err;
Err << Standard_Failure::Caught();
Err << (char) 0;
jcas_ThrowException(env,Err.str().c_str());
}
}
alock.Release();
return thejret;
}
JNIEXPORT jint JNICALL Java_SampleHLRJni_TColQuantity_1Array1OfLength_Length (JNIEnv *env, jobject theobj)
{
jint thejret;
jcas_Locking alock(env);
{
try {
TColQuantity_Array1OfLength* the_this = (TColQuantity_Array1OfLength*) jcas_GetHandle(env,theobj);
thejret = the_this->Length();
}
catch (Standard_Failure) {
Standard_SStream Err;
Err << Standard_Failure::Caught();
Err << (char) 0;
jcas_ThrowException(env,Err.str().c_str());
}
}
alock.Release();
return thejret;
}
JNIEXPORT jint JNICALL Java_SampleHLRJni_TColQuantity_1Array1OfLength_Lower (JNIEnv *env, jobject theobj)
{
jint thejret;
jcas_Locking alock(env);
{
try {
TColQuantity_Array1OfLength* the_this = (TColQuantity_Array1OfLength*) jcas_GetHandle(env,theobj);
thejret = the_this->Lower();
}
catch (Standard_Failure) {
Standard_SStream Err;
Err << Standard_Failure::Caught();
Err << (char) 0;
jcas_ThrowException(env,Err.str().c_str());
}
}
alock.Release();
return thejret;
}
JNIEXPORT jint JNICALL Java_SampleHLRJni_TColQuantity_1Array1OfLength_Upper (JNIEnv *env, jobject theobj)
{
jint thejret;
jcas_Locking alock(env);
{
try {
TColQuantity_Array1OfLength* the_this = (TColQuantity_Array1OfLength*) jcas_GetHandle(env,theobj);
thejret = the_this->Upper();
}
catch (Standard_Failure) {
Standard_SStream Err;
Err << Standard_Failure::Caught();
Err << (char) 0;
jcas_ThrowException(env,Err.str().c_str());
}
}
alock.Release();
return thejret;
}
JNIEXPORT void JNICALL Java_SampleHLRJni_TColQuantity_1Array1OfLength_SetValue (JNIEnv *env, jobject theobj, jint Index, jdouble Value)
{
jcas_Locking alock(env);
{
try {
TColQuantity_Array1OfLength* the_this = (TColQuantity_Array1OfLength*) jcas_GetHandle(env,theobj);
the_this->SetValue((Standard_Integer) Index,(Quantity_Length) Value);
}
catch (Standard_Failure) {
Standard_SStream Err;
Err << Standard_Failure::Caught();
Err << (char) 0;
jcas_ThrowException(env,Err.str().c_str());
}
}
alock.Release();
}
JNIEXPORT jdouble JNICALL Java_SampleHLRJni_TColQuantity_1Array1OfLength_Value (JNIEnv *env, jobject theobj, jint Index)
{
jdouble thejret;
jcas_Locking alock(env);
{
try {
TColQuantity_Array1OfLength* the_this = (TColQuantity_Array1OfLength*) jcas_GetHandle(env,theobj);
thejret = the_this->Value((Standard_Integer) Index);
}
catch (Standard_Failure) {
Standard_SStream Err;
Err << Standard_Failure::Caught();
Err << (char) 0;
jcas_ThrowException(env,Err.str().c_str());
}
}
alock.Release();
return thejret;
}
JNIEXPORT jdouble JNICALL Java_SampleHLRJni_TColQuantity_1Array1OfLength_ChangeValue (JNIEnv *env, jobject theobj, jint Index)
{
jdouble thejret;
jcas_Locking alock(env);
{
try {
TColQuantity_Array1OfLength* the_this = (TColQuantity_Array1OfLength*) jcas_GetHandle(env,theobj);
thejret = the_this->ChangeValue((Standard_Integer) Index);
}
catch (Standard_Failure) {
Standard_SStream Err;
Err << Standard_Failure::Caught();
Err << (char) 0;
jcas_ThrowException(env,Err.str().c_str());
}
}
alock.Release();
return thejret;
}
JNIEXPORT void JNICALL Java_SampleHLRJni_TColQuantity_1Array1OfLength_FinalizeValue(JNIEnv *, jclass, jlong theid)
{
if (theid) {
TColQuantity_Array1OfLength* theobj = (TColQuantity_Array1OfLength*) theid;
delete theobj;
}
}
}

View File

@@ -0,0 +1,33 @@
//
// Copyright (C) 1991 - 2000 by
// Matra Datavision SA. All rights reserved.
//
// Copyright (C) 2001 - 2004 by
// Open CASCADE SA. All rights reserved.
//
// This file is part of the Open CASCADE Technology software.
//
// This software may be distributed and/or modified under the terms and
// conditions of the Open CASCADE Public License as defined by Open CASCADE SA
// and appearing in the file LICENSE included in the packaging of this file.
//
// This software is distributed on an "AS IS" basis, without warranty of any
// kind, and Open CASCADE SA hereby disclaims all such warranties,
// including without limitation, any warranties of merchantability, fitness
// for a particular purpose or non-infringement. Please see the License for
// the specific terms and conditions governing rights and limitations under the
// License.
#include <SampleHLRJni_TColQuantity_HArray1OfLength.h>
#include <TColQuantity_HArray1OfLength.hxx>
#include <jcas.hxx>
#include <stdlib.h>
#include <Standard_ErrorHandler.hxx>
#include <Standard_Failure.hxx>
#include <Standard_SStream.hxx>
extern "C" {
}

View File

@@ -0,0 +1,340 @@
//
// Copyright (C) 1991 - 2000 by
// Matra Datavision SA. All rights reserved.
//
// Copyright (C) 2001 - 2004 by
// Open CASCADE SA. All rights reserved.
//
// This file is part of the Open CASCADE Technology software.
//
// This software may be distributed and/or modified under the terms and
// conditions of the Open CASCADE Public License as defined by Open CASCADE SA
// and appearing in the file LICENSE included in the packaging of this file.
//
// This software is distributed on an "AS IS" basis, without warranty of any
// kind, and Open CASCADE SA hereby disclaims all such warranties,
// including without limitation, any warranties of merchantability, fitness
// for a particular purpose or non-infringement. Please see the License for
// the specific terms and conditions governing rights and limitations under the
// License.
#include <SampleHLRJni_TColStd_Array1OfBoolean.h>
#include <TColStd_Array1OfBoolean.hxx>
#include <jcas.hxx>
#include <stdlib.h>
#include <Standard_ErrorHandler.hxx>
#include <Standard_Failure.hxx>
#include <Standard_SStream.hxx>
#include <Standard_Integer.hxx>
#include <Standard_Boolean.hxx>
extern "C" {
JNIEXPORT void JNICALL Java_SampleHLRJni_TColStd_1Array1OfBoolean_TColStd_1Array1OfBoolean_1Create_11 (JNIEnv *env, jobject theobj, jint Low, jint Up)
{
jcas_Locking alock(env);
{
try {
TColStd_Array1OfBoolean* theret = new TColStd_Array1OfBoolean((Standard_Integer) Low,(Standard_Integer) Up);
jcas_SetHandle(env,theobj,theret);
}
catch (Standard_Failure) {
Standard_SStream Err;
Err << Standard_Failure::Caught();
Err << (char) 0;
jcas_ThrowException(env,Err.str().c_str());
}
}
alock.Release();
}
JNIEXPORT void JNICALL Java_SampleHLRJni_TColStd_1Array1OfBoolean_TColStd_1Array1OfBoolean_1Create_12 (JNIEnv *env, jobject theobj, jboolean Item, jint Low, jint Up)
{
jcas_Locking alock(env);
{
try {
TColStd_Array1OfBoolean* theret = new TColStd_Array1OfBoolean((Standard_Boolean) Item,(Standard_Integer) Low,(Standard_Integer) Up);
jcas_SetHandle(env,theobj,theret);
}
catch (Standard_Failure) {
Standard_SStream Err;
Err << Standard_Failure::Caught();
Err << (char) 0;
jcas_ThrowException(env,Err.str().c_str());
}
}
alock.Release();
}
JNIEXPORT void JNICALL Java_SampleHLRJni_TColStd_1Array1OfBoolean_Init (JNIEnv *env, jobject theobj, jboolean V)
{
jcas_Locking alock(env);
{
try {
TColStd_Array1OfBoolean* the_this = (TColStd_Array1OfBoolean*) jcas_GetHandle(env,theobj);
the_this->Init((Standard_Boolean) V);
}
catch (Standard_Failure) {
Standard_SStream Err;
Err << Standard_Failure::Caught();
Err << (char) 0;
jcas_ThrowException(env,Err.str().c_str());
}
}
alock.Release();
}
JNIEXPORT void JNICALL Java_SampleHLRJni_TColStd_1Array1OfBoolean_Destroy (JNIEnv *env, jobject theobj)
{
jcas_Locking alock(env);
{
try {
TColStd_Array1OfBoolean* the_this = (TColStd_Array1OfBoolean*) jcas_GetHandle(env,theobj);
the_this->Destroy();
}
catch (Standard_Failure) {
Standard_SStream Err;
Err << Standard_Failure::Caught();
Err << (char) 0;
jcas_ThrowException(env,Err.str().c_str());
}
}
alock.Release();
}
JNIEXPORT jboolean JNICALL Java_SampleHLRJni_TColStd_1Array1OfBoolean_IsAllocated (JNIEnv *env, jobject theobj)
{
jboolean thejret;
jcas_Locking alock(env);
{
try {
TColStd_Array1OfBoolean* the_this = (TColStd_Array1OfBoolean*) jcas_GetHandle(env,theobj);
thejret = the_this->IsAllocated();
}
catch (Standard_Failure) {
Standard_SStream Err;
Err << Standard_Failure::Caught();
Err << (char) 0;
jcas_ThrowException(env,Err.str().c_str());
}
}
alock.Release();
return thejret;
}
JNIEXPORT jobject JNICALL Java_SampleHLRJni_TColStd_1Array1OfBoolean_Assign (JNIEnv *env, jobject theobj, jobject Other)
{
jobject thejret;
jcas_Locking alock(env);
{
try {
TColStd_Array1OfBoolean* the_Other = (TColStd_Array1OfBoolean*) jcas_GetHandle(env,Other);
if ( the_Other == NULL ) {
// The following assumes availability of the default constructor (what may not
// always be the case). Therefore explicit exception is thrown if the null
// object has been passed.
// the_Other = new TColStd_Array1OfBoolean ();
// jcas_SetHandle ( env, Other, the_Other );
jcas_ThrowException (env, "NULL object has been passed while expecting an object manipulated by value");
} // end if
TColStd_Array1OfBoolean* the_this = (TColStd_Array1OfBoolean*) jcas_GetHandle(env,theobj);
const TColStd_Array1OfBoolean& theret = the_this->Assign(*the_Other);
thejret = jcas_CreateObject(env,"CASCADESamplesJni/TColStd_Array1OfBoolean",&theret,0);
}
catch (Standard_Failure) {
Standard_SStream Err;
Err << Standard_Failure::Caught();
Err << (char) 0;
jcas_ThrowException(env,Err.str().c_str());
}
}
alock.Release();
return thejret;
}
JNIEXPORT jint JNICALL Java_SampleHLRJni_TColStd_1Array1OfBoolean_Length (JNIEnv *env, jobject theobj)
{
jint thejret;
jcas_Locking alock(env);
{
try {
TColStd_Array1OfBoolean* the_this = (TColStd_Array1OfBoolean*) jcas_GetHandle(env,theobj);
thejret = the_this->Length();
}
catch (Standard_Failure) {
Standard_SStream Err;
Err << Standard_Failure::Caught();
Err << (char) 0;
jcas_ThrowException(env,Err.str().c_str());
}
}
alock.Release();
return thejret;
}
JNIEXPORT jint JNICALL Java_SampleHLRJni_TColStd_1Array1OfBoolean_Lower (JNIEnv *env, jobject theobj)
{
jint thejret;
jcas_Locking alock(env);
{
try {
TColStd_Array1OfBoolean* the_this = (TColStd_Array1OfBoolean*) jcas_GetHandle(env,theobj);
thejret = the_this->Lower();
}
catch (Standard_Failure) {
Standard_SStream Err;
Err << Standard_Failure::Caught();
Err << (char) 0;
jcas_ThrowException(env,Err.str().c_str());
}
}
alock.Release();
return thejret;
}
JNIEXPORT jint JNICALL Java_SampleHLRJni_TColStd_1Array1OfBoolean_Upper (JNIEnv *env, jobject theobj)
{
jint thejret;
jcas_Locking alock(env);
{
try {
TColStd_Array1OfBoolean* the_this = (TColStd_Array1OfBoolean*) jcas_GetHandle(env,theobj);
thejret = the_this->Upper();
}
catch (Standard_Failure) {
Standard_SStream Err;
Err << Standard_Failure::Caught();
Err << (char) 0;
jcas_ThrowException(env,Err.str().c_str());
}
}
alock.Release();
return thejret;
}
JNIEXPORT void JNICALL Java_SampleHLRJni_TColStd_1Array1OfBoolean_SetValue (JNIEnv *env, jobject theobj, jint Index, jboolean Value)
{
jcas_Locking alock(env);
{
try {
TColStd_Array1OfBoolean* the_this = (TColStd_Array1OfBoolean*) jcas_GetHandle(env,theobj);
the_this->SetValue((Standard_Integer) Index,(Standard_Boolean) Value);
}
catch (Standard_Failure) {
Standard_SStream Err;
Err << Standard_Failure::Caught();
Err << (char) 0;
jcas_ThrowException(env,Err.str().c_str());
}
}
alock.Release();
}
JNIEXPORT jboolean JNICALL Java_SampleHLRJni_TColStd_1Array1OfBoolean_Value (JNIEnv *env, jobject theobj, jint Index)
{
jboolean thejret;
jcas_Locking alock(env);
{
try {
TColStd_Array1OfBoolean* the_this = (TColStd_Array1OfBoolean*) jcas_GetHandle(env,theobj);
thejret = the_this->Value((Standard_Integer) Index);
}
catch (Standard_Failure) {
Standard_SStream Err;
Err << Standard_Failure::Caught();
Err << (char) 0;
jcas_ThrowException(env,Err.str().c_str());
}
}
alock.Release();
return thejret;
}
JNIEXPORT jboolean JNICALL Java_SampleHLRJni_TColStd_1Array1OfBoolean_ChangeValue (JNIEnv *env, jobject theobj, jint Index)
{
jboolean thejret;
jcas_Locking alock(env);
{
try {
TColStd_Array1OfBoolean* the_this = (TColStd_Array1OfBoolean*) jcas_GetHandle(env,theobj);
thejret = the_this->ChangeValue((Standard_Integer) Index);
}
catch (Standard_Failure) {
Standard_SStream Err;
Err << Standard_Failure::Caught();
Err << (char) 0;
jcas_ThrowException(env,Err.str().c_str());
}
}
alock.Release();
return thejret;
}
JNIEXPORT void JNICALL Java_SampleHLRJni_TColStd_1Array1OfBoolean_FinalizeValue(JNIEnv *, jclass, jlong theid)
{
if (theid) {
TColStd_Array1OfBoolean* theobj = (TColStd_Array1OfBoolean*) theid;
delete theobj;
}
}
}

View File

@@ -0,0 +1,43 @@
//
// Copyright (C) 1991 - 2000 by
// Matra Datavision SA. All rights reserved.
//
// Copyright (C) 2001 - 2004 by
// Open CASCADE SA. All rights reserved.
//
// This file is part of the Open CASCADE Technology software.
//
// This software may be distributed and/or modified under the terms and
// conditions of the Open CASCADE Public License as defined by Open CASCADE SA
// and appearing in the file LICENSE included in the packaging of this file.
//
// This software is distributed on an "AS IS" basis, without warranty of any
// kind, and Open CASCADE SA hereby disclaims all such warranties,
// including without limitation, any warranties of merchantability, fitness
// for a particular purpose or non-infringement. Please see the License for
// the specific terms and conditions governing rights and limitations under the
// License.
#include <SampleHLRJni_TColStd_Array1OfReal.h>
#include <TColStd_Array1OfReal.hxx>
#include <jcas.hxx>
#include <stdlib.h>
#include <Standard_ErrorHandler.hxx>
#include <Standard_Failure.hxx>
#include <Standard_SStream.hxx>
extern "C" {
JNIEXPORT void JNICALL Java_SampleHLRJni_TColStd_1Array1OfReal_FinalizeValue(JNIEnv *, jclass, jlong theid)
{
if (theid) {
TColStd_Array1OfReal* theobj = (TColStd_Array1OfReal*) theid;
delete theobj;
}
}
}

View File

@@ -0,0 +1,43 @@
//
// Copyright (C) 1991 - 2000 by
// Matra Datavision SA. All rights reserved.
//
// Copyright (C) 2001 - 2004 by
// Open CASCADE SA. All rights reserved.
//
// This file is part of the Open CASCADE Technology software.
//
// This software may be distributed and/or modified under the terms and
// conditions of the Open CASCADE Public License as defined by Open CASCADE SA
// and appearing in the file LICENSE included in the packaging of this file.
//
// This software is distributed on an "AS IS" basis, without warranty of any
// kind, and Open CASCADE SA hereby disclaims all such warranties,
// including without limitation, any warranties of merchantability, fitness
// for a particular purpose or non-infringement. Please see the License for
// the specific terms and conditions governing rights and limitations under the
// License.
#include <SampleHLRJni_TCollection_AsciiString.h>
#include <TCollection_AsciiString.hxx>
#include <jcas.hxx>
#include <stdlib.h>
#include <Standard_ErrorHandler.hxx>
#include <Standard_Failure.hxx>
#include <Standard_SStream.hxx>
extern "C" {
JNIEXPORT void JNICALL Java_SampleHLRJni_TCollection_1AsciiString_FinalizeValue(JNIEnv *, jclass, jlong theid)
{
if (theid) {
TCollection_AsciiString* theobj = (TCollection_AsciiString*) theid;
delete theobj;
}
}
}

View File

@@ -0,0 +1,43 @@
//
// Copyright (C) 1991 - 2000 by
// Matra Datavision SA. All rights reserved.
//
// Copyright (C) 2001 - 2004 by
// Open CASCADE SA. All rights reserved.
//
// This file is part of the Open CASCADE Technology software.
//
// This software may be distributed and/or modified under the terms and
// conditions of the Open CASCADE Public License as defined by Open CASCADE SA
// and appearing in the file LICENSE included in the packaging of this file.
//
// This software is distributed on an "AS IS" basis, without warranty of any
// kind, and Open CASCADE SA hereby disclaims all such warranties,
// including without limitation, any warranties of merchantability, fitness
// for a particular purpose or non-infringement. Please see the License for
// the specific terms and conditions governing rights and limitations under the
// License.
#include <SampleHLRJni_TCollection_ExtendedString.h>
#include <TCollection_ExtendedString.hxx>
#include <jcas.hxx>
#include <stdlib.h>
#include <Standard_ErrorHandler.hxx>
#include <Standard_Failure.hxx>
#include <Standard_SStream.hxx>
extern "C" {
JNIEXPORT void JNICALL Java_SampleHLRJni_TCollection_1ExtendedString_FinalizeValue(JNIEnv *, jclass, jlong theid)
{
if (theid) {
TCollection_ExtendedString* theobj = (TCollection_ExtendedString*) theid;
delete theobj;
}
}
}

View File

@@ -0,0 +1,341 @@
//
// Copyright (C) 1991 - 2000 by
// Matra Datavision SA. All rights reserved.
//
// Copyright (C) 2001 - 2004 by
// Open CASCADE SA. All rights reserved.
//
// This file is part of the Open CASCADE Technology software.
//
// This software may be distributed and/or modified under the terms and
// conditions of the Open CASCADE Public License as defined by Open CASCADE SA
// and appearing in the file LICENSE included in the packaging of this file.
//
// This software is distributed on an "AS IS" basis, without warranty of any
// kind, and Open CASCADE SA hereby disclaims all such warranties,
// including without limitation, any warranties of merchantability, fitness
// for a particular purpose or non-infringement. Please see the License for
// the specific terms and conditions governing rights and limitations under the
// License.
#include <SampleHLRJni_TShort_Array1OfShortReal.h>
#include <TShort_Array1OfShortReal.hxx>
#include <jcas.hxx>
#include <stdlib.h>
#include <Standard_ErrorHandler.hxx>
#include <Standard_Failure.hxx>
#include <Standard_SStream.hxx>
#include <Standard_Integer.hxx>
#include <Standard_ShortReal.hxx>
#include <Standard_Boolean.hxx>
extern "C" {
JNIEXPORT void JNICALL Java_SampleHLRJni_TShort_1Array1OfShortReal_TShort_1Array1OfShortReal_1Create_11 (JNIEnv *env, jobject theobj, jint Low, jint Up)
{
jcas_Locking alock(env);
{
try {
TShort_Array1OfShortReal* theret = new TShort_Array1OfShortReal((Standard_Integer) Low,(Standard_Integer) Up);
jcas_SetHandle(env,theobj,theret);
}
catch (Standard_Failure) {
Standard_SStream Err;
Err << Standard_Failure::Caught();
Err << (char) 0;
jcas_ThrowException(env,Err.str().c_str());
}
}
alock.Release();
}
JNIEXPORT void JNICALL Java_SampleHLRJni_TShort_1Array1OfShortReal_TShort_1Array1OfShortReal_1Create_12 (JNIEnv *env, jobject theobj, jfloat Item, jint Low, jint Up)
{
jcas_Locking alock(env);
{
try {
TShort_Array1OfShortReal* theret = new TShort_Array1OfShortReal((Standard_ShortReal) Item,(Standard_Integer) Low,(Standard_Integer) Up);
jcas_SetHandle(env,theobj,theret);
}
catch (Standard_Failure) {
Standard_SStream Err;
Err << Standard_Failure::Caught();
Err << (char) 0;
jcas_ThrowException(env,Err.str().c_str());
}
}
alock.Release();
}
JNIEXPORT void JNICALL Java_SampleHLRJni_TShort_1Array1OfShortReal_Init (JNIEnv *env, jobject theobj, jfloat V)
{
jcas_Locking alock(env);
{
try {
TShort_Array1OfShortReal* the_this = (TShort_Array1OfShortReal*) jcas_GetHandle(env,theobj);
the_this->Init((Standard_ShortReal) V);
}
catch (Standard_Failure) {
Standard_SStream Err;
Err << Standard_Failure::Caught();
Err << (char) 0;
jcas_ThrowException(env,Err.str().c_str());
}
}
alock.Release();
}
JNIEXPORT void JNICALL Java_SampleHLRJni_TShort_1Array1OfShortReal_Destroy (JNIEnv *env, jobject theobj)
{
jcas_Locking alock(env);
{
try {
TShort_Array1OfShortReal* the_this = (TShort_Array1OfShortReal*) jcas_GetHandle(env,theobj);
the_this->Destroy();
}
catch (Standard_Failure) {
Standard_SStream Err;
Err << Standard_Failure::Caught();
Err << (char) 0;
jcas_ThrowException(env,Err.str().c_str());
}
}
alock.Release();
}
JNIEXPORT jboolean JNICALL Java_SampleHLRJni_TShort_1Array1OfShortReal_IsAllocated (JNIEnv *env, jobject theobj)
{
jboolean thejret;
jcas_Locking alock(env);
{
try {
TShort_Array1OfShortReal* the_this = (TShort_Array1OfShortReal*) jcas_GetHandle(env,theobj);
thejret = the_this->IsAllocated();
}
catch (Standard_Failure) {
Standard_SStream Err;
Err << Standard_Failure::Caught();
Err << (char) 0;
jcas_ThrowException(env,Err.str().c_str());
}
}
alock.Release();
return thejret;
}
JNIEXPORT jobject JNICALL Java_SampleHLRJni_TShort_1Array1OfShortReal_Assign (JNIEnv *env, jobject theobj, jobject Other)
{
jobject thejret;
jcas_Locking alock(env);
{
try {
TShort_Array1OfShortReal* the_Other = (TShort_Array1OfShortReal*) jcas_GetHandle(env,Other);
if ( the_Other == NULL ) {
// The following assumes availability of the default constructor (what may not
// always be the case). Therefore explicit exception is thrown if the null
// object has been passed.
// the_Other = new TShort_Array1OfShortReal ();
// jcas_SetHandle ( env, Other, the_Other );
jcas_ThrowException (env, "NULL object has been passed while expecting an object manipulated by value");
} // end if
TShort_Array1OfShortReal* the_this = (TShort_Array1OfShortReal*) jcas_GetHandle(env,theobj);
const TShort_Array1OfShortReal& theret = the_this->Assign(*the_Other);
thejret = jcas_CreateObject(env,"CASCADESamplesJni/TShort_Array1OfShortReal",&theret,0);
}
catch (Standard_Failure) {
Standard_SStream Err;
Err << Standard_Failure::Caught();
Err << (char) 0;
jcas_ThrowException(env,Err.str().c_str());
}
}
alock.Release();
return thejret;
}
JNIEXPORT jint JNICALL Java_SampleHLRJni_TShort_1Array1OfShortReal_Length (JNIEnv *env, jobject theobj)
{
jint thejret;
jcas_Locking alock(env);
{
try {
TShort_Array1OfShortReal* the_this = (TShort_Array1OfShortReal*) jcas_GetHandle(env,theobj);
thejret = the_this->Length();
}
catch (Standard_Failure) {
Standard_SStream Err;
Err << Standard_Failure::Caught();
Err << (char) 0;
jcas_ThrowException(env,Err.str().c_str());
}
}
alock.Release();
return thejret;
}
JNIEXPORT jint JNICALL Java_SampleHLRJni_TShort_1Array1OfShortReal_Lower (JNIEnv *env, jobject theobj)
{
jint thejret;
jcas_Locking alock(env);
{
try {
TShort_Array1OfShortReal* the_this = (TShort_Array1OfShortReal*) jcas_GetHandle(env,theobj);
thejret = the_this->Lower();
}
catch (Standard_Failure) {
Standard_SStream Err;
Err << Standard_Failure::Caught();
Err << (char) 0;
jcas_ThrowException(env,Err.str().c_str());
}
}
alock.Release();
return thejret;
}
JNIEXPORT jint JNICALL Java_SampleHLRJni_TShort_1Array1OfShortReal_Upper (JNIEnv *env, jobject theobj)
{
jint thejret;
jcas_Locking alock(env);
{
try {
TShort_Array1OfShortReal* the_this = (TShort_Array1OfShortReal*) jcas_GetHandle(env,theobj);
thejret = the_this->Upper();
}
catch (Standard_Failure) {
Standard_SStream Err;
Err << Standard_Failure::Caught();
Err << (char) 0;
jcas_ThrowException(env,Err.str().c_str());
}
}
alock.Release();
return thejret;
}
JNIEXPORT void JNICALL Java_SampleHLRJni_TShort_1Array1OfShortReal_SetValue (JNIEnv *env, jobject theobj, jint Index, jfloat Value)
{
jcas_Locking alock(env);
{
try {
TShort_Array1OfShortReal* the_this = (TShort_Array1OfShortReal*) jcas_GetHandle(env,theobj);
the_this->SetValue((Standard_Integer) Index,(Standard_ShortReal) Value);
}
catch (Standard_Failure) {
Standard_SStream Err;
Err << Standard_Failure::Caught();
Err << (char) 0;
jcas_ThrowException(env,Err.str().c_str());
}
}
alock.Release();
}
JNIEXPORT jfloat JNICALL Java_SampleHLRJni_TShort_1Array1OfShortReal_Value (JNIEnv *env, jobject theobj, jint Index)
{
jfloat thejret;
jcas_Locking alock(env);
{
try {
TShort_Array1OfShortReal* the_this = (TShort_Array1OfShortReal*) jcas_GetHandle(env,theobj);
thejret = the_this->Value((Standard_Integer) Index);
}
catch (Standard_Failure) {
Standard_SStream Err;
Err << Standard_Failure::Caught();
Err << (char) 0;
jcas_ThrowException(env,Err.str().c_str());
}
}
alock.Release();
return thejret;
}
JNIEXPORT jfloat JNICALL Java_SampleHLRJni_TShort_1Array1OfShortReal_ChangeValue (JNIEnv *env, jobject theobj, jint Index)
{
jfloat thejret;
jcas_Locking alock(env);
{
try {
TShort_Array1OfShortReal* the_this = (TShort_Array1OfShortReal*) jcas_GetHandle(env,theobj);
thejret = the_this->ChangeValue((Standard_Integer) Index);
}
catch (Standard_Failure) {
Standard_SStream Err;
Err << Standard_Failure::Caught();
Err << (char) 0;
jcas_ThrowException(env,Err.str().c_str());
}
}
alock.Release();
return thejret;
}
JNIEXPORT void JNICALL Java_SampleHLRJni_TShort_1Array1OfShortReal_FinalizeValue(JNIEnv *, jclass, jlong theid)
{
if (theid) {
TShort_Array1OfShortReal* theobj = (TShort_Array1OfShortReal*) theid;
delete theobj;
}
}
}

View File

@@ -0,0 +1,173 @@
//
// Copyright (C) 1991 - 2000 by
// Matra Datavision SA. All rights reserved.
//
// Copyright (C) 2001 - 2004 by
// Open CASCADE SA. All rights reserved.
//
// This file is part of the Open CASCADE Technology software.
//
// This software may be distributed and/or modified under the terms and
// conditions of the Open CASCADE Public License as defined by Open CASCADE SA
// and appearing in the file LICENSE included in the packaging of this file.
//
// This software is distributed on an "AS IS" basis, without warranty of any
// kind, and Open CASCADE SA hereby disclaims all such warranties,
// including without limitation, any warranties of merchantability, fitness
// for a particular purpose or non-infringement. Please see the License for
// the specific terms and conditions governing rights and limitations under the
// License.
#include <SampleHLRJni_V2d_DefaultMap.h>
#include <V2d_DefaultMap.hxx>
#include <jcas.hxx>
#include <stdlib.h>
#include <Standard_ErrorHandler.hxx>
#include <Standard_Failure.hxx>
#include <Standard_SStream.hxx>
#include <Aspect_GenericColorMap.hxx>
#include <Aspect_TypeMap.hxx>
#include <Aspect_WidthMap.hxx>
#include <Aspect_FontMap.hxx>
#include <Aspect_MarkMap.hxx>
extern "C" {
JNIEXPORT jobject JNICALL Java_SampleHLRJni_V2d_1DefaultMap_ColorMap (JNIEnv *env, jclass)
{
jobject thejret;
jcas_Locking alock(env);
{
try {
Handle(Aspect_GenericColorMap)* theret = new Handle(Aspect_GenericColorMap);
*theret = V2d_DefaultMap::ColorMap();
thejret = jcas_CreateObject(env,"CASCADESamplesJni/Aspect_GenericColorMap",theret);
}
catch (Standard_Failure) {
Standard_SStream Err;
Err << Standard_Failure::Caught();
Err << (char) 0;
jcas_ThrowException(env,Err.str().c_str());
}
}
alock.Release();
return thejret;
}
JNIEXPORT jobject JNICALL Java_SampleHLRJni_V2d_1DefaultMap_TypeMap (JNIEnv *env, jclass)
{
jobject thejret;
jcas_Locking alock(env);
{
try {
Handle(Aspect_TypeMap)* theret = new Handle(Aspect_TypeMap);
*theret = V2d_DefaultMap::TypeMap();
thejret = jcas_CreateObject(env,"CASCADESamplesJni/Aspect_TypeMap",theret);
}
catch (Standard_Failure) {
Standard_SStream Err;
Err << Standard_Failure::Caught();
Err << (char) 0;
jcas_ThrowException(env,Err.str().c_str());
}
}
alock.Release();
return thejret;
}
JNIEXPORT jobject JNICALL Java_SampleHLRJni_V2d_1DefaultMap_WidthMap (JNIEnv *env, jclass)
{
jobject thejret;
jcas_Locking alock(env);
{
try {
Handle(Aspect_WidthMap)* theret = new Handle(Aspect_WidthMap);
*theret = V2d_DefaultMap::WidthMap();
thejret = jcas_CreateObject(env,"CASCADESamplesJni/Aspect_WidthMap",theret);
}
catch (Standard_Failure) {
Standard_SStream Err;
Err << Standard_Failure::Caught();
Err << (char) 0;
jcas_ThrowException(env,Err.str().c_str());
}
}
alock.Release();
return thejret;
}
JNIEXPORT jobject JNICALL Java_SampleHLRJni_V2d_1DefaultMap_FontMap (JNIEnv *env, jclass)
{
jobject thejret;
jcas_Locking alock(env);
{
try {
Handle(Aspect_FontMap)* theret = new Handle(Aspect_FontMap);
*theret = V2d_DefaultMap::FontMap();
thejret = jcas_CreateObject(env,"CASCADESamplesJni/Aspect_FontMap",theret);
}
catch (Standard_Failure) {
Standard_SStream Err;
Err << Standard_Failure::Caught();
Err << (char) 0;
jcas_ThrowException(env,Err.str().c_str());
}
}
alock.Release();
return thejret;
}
JNIEXPORT jobject JNICALL Java_SampleHLRJni_V2d_1DefaultMap_MarkMap (JNIEnv *env, jclass)
{
jobject thejret;
jcas_Locking alock(env);
{
try {
Handle(Aspect_MarkMap)* theret = new Handle(Aspect_MarkMap);
*theret = V2d_DefaultMap::MarkMap();
thejret = jcas_CreateObject(env,"CASCADESamplesJni/Aspect_MarkMap",theret);
}
catch (Standard_Failure) {
Standard_SStream Err;
Err << Standard_Failure::Caught();
Err << (char) 0;
jcas_ThrowException(env,Err.str().c_str());
}
}
alock.Release();
return thejret;
}
JNIEXPORT void JNICALL Java_SampleHLRJni_V2d_1DefaultMap_FinalizeValue(JNIEnv *, jclass, jlong theid)
{
if (theid) {
V2d_DefaultMap* theobj = (V2d_DefaultMap*) theid;
delete theobj;
}
}
}

View File

@@ -0,0 +1,33 @@
//
// Copyright (C) 1991 - 2000 by
// Matra Datavision SA. All rights reserved.
//
// Copyright (C) 2001 - 2004 by
// Open CASCADE SA. All rights reserved.
//
// This file is part of the Open CASCADE Technology software.
//
// This software may be distributed and/or modified under the terms and
// conditions of the Open CASCADE Public License as defined by Open CASCADE SA
// and appearing in the file LICENSE included in the packaging of this file.
//
// This software is distributed on an "AS IS" basis, without warranty of any
// kind, and Open CASCADE SA hereby disclaims all such warranties,
// including without limitation, any warranties of merchantability, fitness
// for a particular purpose or non-infringement. Please see the License for
// the specific terms and conditions governing rights and limitations under the
// License.
#include <SampleHLRJni_V2d_View.h>
#include <V2d_View.hxx>
#include <jcas.hxx>
#include <stdlib.h>
#include <Standard_ErrorHandler.hxx>
#include <Standard_Failure.hxx>
#include <Standard_SStream.hxx>
extern "C" {
}

View File

@@ -0,0 +1,33 @@
//
// Copyright (C) 1991 - 2000 by
// Matra Datavision SA. All rights reserved.
//
// Copyright (C) 2001 - 2004 by
// Open CASCADE SA. All rights reserved.
//
// This file is part of the Open CASCADE Technology software.
//
// This software may be distributed and/or modified under the terms and
// conditions of the Open CASCADE Public License as defined by Open CASCADE SA
// and appearing in the file LICENSE included in the packaging of this file.
//
// This software is distributed on an "AS IS" basis, without warranty of any
// kind, and Open CASCADE SA hereby disclaims all such warranties,
// including without limitation, any warranties of merchantability, fitness
// for a particular purpose or non-infringement. Please see the License for
// the specific terms and conditions governing rights and limitations under the
// License.
#include <SampleHLRJni_V2d_Viewer.h>
#include <V2d_Viewer.hxx>
#include <jcas.hxx>
#include <stdlib.h>
#include <Standard_ErrorHandler.hxx>
#include <Standard_Failure.hxx>
#include <Standard_SStream.hxx>
extern "C" {
}

View File

@@ -0,0 +1,33 @@
//
// Copyright (C) 1991 - 2000 by
// Matra Datavision SA. All rights reserved.
//
// Copyright (C) 2001 - 2004 by
// Open CASCADE SA. All rights reserved.
//
// This file is part of the Open CASCADE Technology software.
//
// This software may be distributed and/or modified under the terms and
// conditions of the Open CASCADE Public License as defined by Open CASCADE SA
// and appearing in the file LICENSE included in the packaging of this file.
//
// This software is distributed on an "AS IS" basis, without warranty of any
// kind, and Open CASCADE SA hereby disclaims all such warranties,
// including without limitation, any warranties of merchantability, fitness
// for a particular purpose or non-infringement. Please see the License for
// the specific terms and conditions governing rights and limitations under the
// License.
#include <SampleHLRJni_V3d_View.h>
#include <V3d_View.hxx>
#include <jcas.hxx>
#include <stdlib.h>
#include <Standard_ErrorHandler.hxx>
#include <Standard_Failure.hxx>
#include <Standard_SStream.hxx>
extern "C" {
}

View File

@@ -0,0 +1,33 @@
//
// Copyright (C) 1991 - 2000 by
// Matra Datavision SA. All rights reserved.
//
// Copyright (C) 2001 - 2004 by
// Open CASCADE SA. All rights reserved.
//
// This file is part of the Open CASCADE Technology software.
//
// This software may be distributed and/or modified under the terms and
// conditions of the Open CASCADE Public License as defined by Open CASCADE SA
// and appearing in the file LICENSE included in the packaging of this file.
//
// This software is distributed on an "AS IS" basis, without warranty of any
// kind, and Open CASCADE SA hereby disclaims all such warranties,
// including without limitation, any warranties of merchantability, fitness
// for a particular purpose or non-infringement. Please see the License for
// the specific terms and conditions governing rights and limitations under the
// License.
#include <SampleHLRJni_V3d_Viewer.h>
#include <V3d_Viewer.hxx>
#include <jcas.hxx>
#include <stdlib.h>
#include <Standard_ErrorHandler.hxx>
#include <Standard_Failure.hxx>
#include <Standard_SStream.hxx>
extern "C" {
}

View File

@@ -0,0 +1,33 @@
//
// Copyright (C) 1991 - 2000 by
// Matra Datavision SA. All rights reserved.
//
// Copyright (C) 2001 - 2004 by
// Open CASCADE SA. All rights reserved.
//
// This file is part of the Open CASCADE Technology software.
//
// This software may be distributed and/or modified under the terms and
// conditions of the Open CASCADE Public License as defined by Open CASCADE SA
// and appearing in the file LICENSE included in the packaging of this file.
//
// This software is distributed on an "AS IS" basis, without warranty of any
// kind, and Open CASCADE SA hereby disclaims all such warranties,
// including without limitation, any warranties of merchantability, fitness
// for a particular purpose or non-infringement. Please see the License for
// the specific terms and conditions governing rights and limitations under the
// License.
#include <SampleHLRJni_Viewer_View.h>
#include <Viewer_View.hxx>
#include <jcas.hxx>
#include <stdlib.h>
#include <Standard_ErrorHandler.hxx>
#include <Standard_Failure.hxx>
#include <Standard_SStream.hxx>
extern "C" {
}

View File

@@ -0,0 +1,33 @@
//
// Copyright (C) 1991 - 2000 by
// Matra Datavision SA. All rights reserved.
//
// Copyright (C) 2001 - 2004 by
// Open CASCADE SA. All rights reserved.
//
// This file is part of the Open CASCADE Technology software.
//
// This software may be distributed and/or modified under the terms and
// conditions of the Open CASCADE Public License as defined by Open CASCADE SA
// and appearing in the file LICENSE included in the packaging of this file.
//
// This software is distributed on an "AS IS" basis, without warranty of any
// kind, and Open CASCADE SA hereby disclaims all such warranties,
// including without limitation, any warranties of merchantability, fitness
// for a particular purpose or non-infringement. Please see the License for
// the specific terms and conditions governing rights and limitations under the
// License.
#include <SampleHLRJni_Viewer_Viewer.h>
#include <Viewer_Viewer.hxx>
#include <jcas.hxx>
#include <stdlib.h>
#include <Standard_ErrorHandler.hxx>
#include <Standard_Failure.hxx>
#include <Standard_SStream.hxx>
extern "C" {
}