1
0
mirror of https://git.dev.opencascade.org/repos/occt.git synced 2025-08-04 13:13:25 +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 <CASCADESamplesJni_AIS_Drawer.h>
#include <AIS_Drawer.hxx>
#include <jcas.hxx>
#include <stdlib.h>
#include <Standard_ErrorHandler.hxx>
#include <Standard_Failure.hxx>
#include <Standard_SStream.hxx>
extern "C" {
}

File diff suppressed because it is too large Load Diff

File diff suppressed because it is too large Load Diff

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 <CASCADESamplesJni_AIS_ListOfInteractive.h>
#include <AIS_ListOfInteractive.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_CASCADESamplesJni_AIS_1ListOfInteractive_FinalizeValue(JNIEnv *, jclass, jlong theid)
{
if (theid) {
AIS_ListOfInteractive* theobj = (AIS_ListOfInteractive*) theid;
delete theobj;
}
}
}

File diff suppressed because it is too large Load Diff

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 <CASCADESamplesJni_Aspect_AspectMarker.h>
#include <Aspect_AspectMarker.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 <CASCADESamplesJni_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>
extern "C" {
JNIEXPORT void JNICALL Java_CASCADESamplesJni_Aspect_1Background_FinalizeValue(JNIEnv *, jclass, jlong theid)
{
if (theid) {
Aspect_Background* theobj = (Aspect_Background*) theid;
delete theobj;
}
}
}

View File

@@ -0,0 +1,323 @@
// Copyright (C) 1991,1995 by
//
// MATRA DATAVISION, FRANCE
//
// This software is furnished in accordance with the terms and conditions
// of the contract and with the inclusion of the above copyright notice.
// This software or any other copy thereof may not be provided or otherwise
// be made available to any other person. No title to an ownership of the
// software is hereby transferred.
//
// At the termination of the contract, the software and all copies of this
// software must be deleted.
#include <CASCADESamplesJni_Aspect_ColorMapEntry.h>
#include <Aspect_ColorMapEntry.hxx>
#include <jcas.hxx>
#include <stdlib.h>
#include <Standard_ErrorHandler.hxx>
#include <Standard_SStream.hxx>
#include <Standard_Integer.hxx>
#include <Quantity_Color.hxx>
#include <Standard_Boolean.hxx>
extern "C" {
JNIEXPORT void JNICALL Java_CASCADESamplesJni_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,GetSString(Err));
}
}
alock.Release();
}
JNIEXPORT void JNICALL Java_CASCADESamplesJni_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);
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,GetSString(Err));
}
}
alock.Release();
}
JNIEXPORT void JNICALL Java_CASCADESamplesJni_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);
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,GetSString(Err));
}
}
alock.Release();
}
JNIEXPORT void JNICALL Java_CASCADESamplesJni_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);
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,GetSString(Err));
}
}
alock.Release();
}
JNIEXPORT void JNICALL Java_CASCADESamplesJni_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);
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,GetSString(Err));
}
}
alock.Release();
}
JNIEXPORT void JNICALL Java_CASCADESamplesJni_Aspect_1ColorMapEntry_SetColor (JNIEnv *env, jobject theobj, jobject rgb)
{
jcas_Locking alock(env);
{
try {
Quantity_Color* the_rgb = (Quantity_Color*) jcas_GetHandle(env,rgb);
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,GetSString(Err));
}
}
alock.Release();
}
JNIEXPORT jobject JNICALL Java_CASCADESamplesJni_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,GetSString(Err));
}
}
alock.Release();
return thejret;
}
JNIEXPORT void JNICALL Java_CASCADESamplesJni_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,GetSString(Err));
}
}
alock.Release();
}
JNIEXPORT jint JNICALL Java_CASCADESamplesJni_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,GetSString(Err));
}
}
alock.Release();
return thejret;
}
JNIEXPORT void JNICALL Java_CASCADESamplesJni_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,GetSString(Err));
}
}
alock.Release();
}
JNIEXPORT jboolean JNICALL Java_CASCADESamplesJni_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,GetSString(Err));
}
}
alock.Release();
return thejret;
}
JNIEXPORT void JNICALL Java_CASCADESamplesJni_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,GetSString(Err));
}
}
alock.Release();
}
JNIEXPORT void JNICALL Java_CASCADESamplesJni_Aspect_1ColorMapEntry_FinalizeValue(JNIEnv *, jclass, jlong theid)
{
if (theid) {
Aspect_ColorMapEntry* theobj = (Aspect_ColorMapEntry*) 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 <CASCADESamplesJni_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>
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 <CASCADESamplesJni_Aspect_ColorScale.h>
#include <Aspect_ColorScale.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 <CASCADESamplesJni_Aspect_Driver.h>
#include <Aspect_Driver.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,323 @@
// Copyright (C) 1991,1995 by
//
// MATRA DATAVISION, FRANCE
//
// This software is furnished in accordance with the terms and conditions
// of the contract and with the inclusion of the above copyright notice.
// This software or any other copy thereof may not be provided or otherwise
// be made available to any other person. No title to an ownership of the
// software is hereby transferred.
//
// At the termination of the contract, the software and all copies of this
// software must be deleted.
#include <CASCADESamplesJni_Aspect_FontMapEntry.h>
#include <Aspect_FontMapEntry.hxx>
#include <jcas.hxx>
#include <stdlib.h>
#include <Standard_ErrorHandler.hxx>
#include <Standard_SStream.hxx>
#include <Standard_Integer.hxx>
#include <Aspect_FontStyle.hxx>
#include <Standard_Boolean.hxx>
extern "C" {
JNIEXPORT void JNICALL Java_CASCADESamplesJni_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,GetSString(Err));
}
}
alock.Release();
}
JNIEXPORT void JNICALL Java_CASCADESamplesJni_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);
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,GetSString(Err));
}
}
alock.Release();
}
JNIEXPORT void JNICALL Java_CASCADESamplesJni_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);
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,GetSString(Err));
}
}
alock.Release();
}
JNIEXPORT void JNICALL Java_CASCADESamplesJni_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);
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,GetSString(Err));
}
}
alock.Release();
}
JNIEXPORT void JNICALL Java_CASCADESamplesJni_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);
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,GetSString(Err));
}
}
alock.Release();
}
JNIEXPORT void JNICALL Java_CASCADESamplesJni_Aspect_1FontMapEntry_SetType (JNIEnv *env, jobject theobj, jobject Style)
{
jcas_Locking alock(env);
{
try {
Aspect_FontStyle* the_Style = (Aspect_FontStyle*) jcas_GetHandle(env,Style);
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,GetSString(Err));
}
}
alock.Release();
}
JNIEXPORT jobject JNICALL Java_CASCADESamplesJni_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,GetSString(Err));
}
}
alock.Release();
return thejret;
}
JNIEXPORT void JNICALL Java_CASCADESamplesJni_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,GetSString(Err));
}
}
alock.Release();
}
JNIEXPORT jint JNICALL Java_CASCADESamplesJni_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,GetSString(Err));
}
}
alock.Release();
return thejret;
}
JNIEXPORT void JNICALL Java_CASCADESamplesJni_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,GetSString(Err));
}
}
alock.Release();
}
JNIEXPORT jboolean JNICALL Java_CASCADESamplesJni_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,GetSString(Err));
}
}
alock.Release();
return thejret;
}
JNIEXPORT void JNICALL Java_CASCADESamplesJni_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,GetSString(Err));
}
}
alock.Release();
}
JNIEXPORT void JNICALL Java_CASCADESamplesJni_Aspect_1FontMapEntry_FinalizeValue(JNIEnv *, jclass, jlong theid)
{
if (theid) {
Aspect_FontMapEntry* theobj = (Aspect_FontMapEntry*) 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 <CASCADESamplesJni_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>
extern "C" {
}

View File

@@ -0,0 +1,979 @@
// Copyright (C) 1991,1995 by
//
// MATRA DATAVISION, FRANCE
//
// This software is furnished in accordance with the terms and conditions
// of the contract and with the inclusion of the above copyright notice.
// This software or any other copy thereof may not be provided or otherwise
// be made available to any other person. No title to an ownership of the
// software is hereby transferred.
//
// At the termination of the contract, the software and all copies of this
// software must be deleted.
#include <CASCADESamplesJni_Aspect_FontStyle.h>
#include <Aspect_FontStyle.hxx>
#include <jcas.hxx>
#include <stdlib.h>
#include <Standard_ErrorHandler.hxx>
#include <Standard_SStream.hxx>
#include <Aspect_TypeOfFont.hxx>
#include <Standard_Real.hxx>
#include <Standard_Boolean.hxx>
#include <Standard_CString.hxx>
#include <Standard_Integer.hxx>
extern "C" {
JNIEXPORT void JNICALL Java_CASCADESamplesJni_Aspect_1FontStyle_Aspect_1FontStyle_1Create_11 (JNIEnv *env, jobject theobj)
{
jcas_Locking alock(env);
{
try {
Aspect_FontStyle* theret = new Aspect_FontStyle();
jcas_SetHandle(env,theobj,theret);
}
catch (Standard_Failure) {
Standard_SStream Err;
Err << Standard_Failure::Caught();
Err << (char) 0;
jcas_ThrowException(env,GetSString(Err));
}
}
alock.Release();
}
JNIEXPORT void JNICALL Java_CASCADESamplesJni_Aspect_1FontStyle_Aspect_1FontStyle_1Create_12 (JNIEnv *env, jobject theobj, jint Type, jdouble Size, jdouble Slant, jboolean CapsHeight)
{
jcas_Locking alock(env);
{
try {
Aspect_FontStyle* theret = new Aspect_FontStyle((Aspect_TypeOfFont) Type,(Quantity_Length) Size,(Quantity_PlaneAngle) Slant,(Standard_Boolean) CapsHeight);
jcas_SetHandle(env,theobj,theret);
}
catch (Standard_Failure) {
Standard_SStream Err;
Err << Standard_Failure::Caught();
Err << (char) 0;
jcas_ThrowException(env,GetSString(Err));
}
}
alock.Release();
}
JNIEXPORT void JNICALL Java_CASCADESamplesJni_Aspect_1FontStyle_Aspect_1FontStyle_1Create_13 (JNIEnv *env, jobject theobj, jobject Style, jdouble Size, jdouble Slant, jboolean CapsHeight)
{
jcas_Locking alock(env);
{
try {
Standard_CString the_Style = jcas_ConvertToCString(env,Style);
Aspect_FontStyle* theret = new Aspect_FontStyle(the_Style,(Quantity_Length) Size,(Quantity_PlaneAngle) Slant,(Standard_Boolean) CapsHeight);
jcas_SetHandle(env,theobj,theret);
}
catch (Standard_Failure) {
Standard_SStream Err;
Err << Standard_Failure::Caught();
Err << (char) 0;
jcas_ThrowException(env,GetSString(Err));
}
}
alock.Release();
}
JNIEXPORT void JNICALL Java_CASCADESamplesJni_Aspect_1FontStyle_Aspect_1FontStyle_1Create_14 (JNIEnv *env, jobject theobj, jobject Style)
{
jcas_Locking alock(env);
{
try {
Standard_CString the_Style = jcas_ConvertToCString(env,Style);
Aspect_FontStyle* theret = new Aspect_FontStyle(the_Style);
jcas_SetHandle(env,theobj,theret);
}
catch (Standard_Failure) {
Standard_SStream Err;
Err << Standard_Failure::Caught();
Err << (char) 0;
jcas_ThrowException(env,GetSString(Err));
}
}
alock.Release();
}
JNIEXPORT jobject JNICALL Java_CASCADESamplesJni_Aspect_1FontStyle_Assign (JNIEnv *env, jobject theobj, jobject Other)
{
jobject thejret;
jcas_Locking alock(env);
{
try {
Aspect_FontStyle* the_Other = (Aspect_FontStyle*) jcas_GetHandle(env,Other);
Aspect_FontStyle* the_this = (Aspect_FontStyle*) jcas_GetHandle(env,theobj);
const Aspect_FontStyle& theret = the_this->Assign(*the_Other);
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,GetSString(Err));
}
}
alock.Release();
return thejret;
}
JNIEXPORT void JNICALL Java_CASCADESamplesJni_Aspect_1FontStyle_Aspect_1FontStyle_1SetValues_11 (JNIEnv *env, jobject theobj, jint Type, jdouble Size, jdouble Slant, jboolean CapsHeight)
{
jcas_Locking alock(env);
{
try {
Aspect_FontStyle* the_this = (Aspect_FontStyle*) jcas_GetHandle(env,theobj);
the_this->SetValues((Aspect_TypeOfFont) Type,(Quantity_Length) Size,(Quantity_PlaneAngle) Slant,(Standard_Boolean) CapsHeight);
}
catch (Standard_Failure) {
Standard_SStream Err;
Err << Standard_Failure::Caught();
Err << (char) 0;
jcas_ThrowException(env,GetSString(Err));
}
}
alock.Release();
}
JNIEXPORT void JNICALL Java_CASCADESamplesJni_Aspect_1FontStyle_Aspect_1FontStyle_1SetValues_12 (JNIEnv *env, jobject theobj, jobject Style, jdouble Size, jdouble Slant, jboolean CapsHeight)
{
jcas_Locking alock(env);
{
try {
Standard_CString the_Style = jcas_ConvertToCString(env,Style);
Aspect_FontStyle* the_this = (Aspect_FontStyle*) jcas_GetHandle(env,theobj);
the_this->SetValues(the_Style,(Quantity_Length) Size,(Quantity_PlaneAngle) Slant,(Standard_Boolean) CapsHeight);
}
catch (Standard_Failure) {
Standard_SStream Err;
Err << Standard_Failure::Caught();
Err << (char) 0;
jcas_ThrowException(env,GetSString(Err));
}
}
alock.Release();
}
JNIEXPORT void JNICALL Java_CASCADESamplesJni_Aspect_1FontStyle_Aspect_1FontStyle_1SetValues_13 (JNIEnv *env, jobject theobj, jobject Style)
{
jcas_Locking alock(env);
{
try {
Standard_CString the_Style = jcas_ConvertToCString(env,Style);
Aspect_FontStyle* the_this = (Aspect_FontStyle*) 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,GetSString(Err));
}
}
alock.Release();
}
JNIEXPORT void JNICALL Java_CASCADESamplesJni_Aspect_1FontStyle_SetFamily (JNIEnv *env, jobject theobj, jobject aName)
{
jcas_Locking alock(env);
{
try {
Standard_CString the_aName = jcas_ConvertToCString(env,aName);
Aspect_FontStyle* the_this = (Aspect_FontStyle*) jcas_GetHandle(env,theobj);
the_this->SetFamily(the_aName);
}
catch (Standard_Failure) {
Standard_SStream Err;
Err << Standard_Failure::Caught();
Err << (char) 0;
jcas_ThrowException(env,GetSString(Err));
}
}
alock.Release();
}
JNIEXPORT void JNICALL Java_CASCADESamplesJni_Aspect_1FontStyle_SetWeight (JNIEnv *env, jobject theobj, jobject aName)
{
jcas_Locking alock(env);
{
try {
Standard_CString the_aName = jcas_ConvertToCString(env,aName);
Aspect_FontStyle* the_this = (Aspect_FontStyle*) jcas_GetHandle(env,theobj);
the_this->SetWeight(the_aName);
}
catch (Standard_Failure) {
Standard_SStream Err;
Err << Standard_Failure::Caught();
Err << (char) 0;
jcas_ThrowException(env,GetSString(Err));
}
}
alock.Release();
}
JNIEXPORT void JNICALL Java_CASCADESamplesJni_Aspect_1FontStyle_SetRegistry (JNIEnv *env, jobject theobj, jobject aName)
{
jcas_Locking alock(env);
{
try {
Standard_CString the_aName = jcas_ConvertToCString(env,aName);
Aspect_FontStyle* the_this = (Aspect_FontStyle*) jcas_GetHandle(env,theobj);
the_this->SetRegistry(the_aName);
}
catch (Standard_Failure) {
Standard_SStream Err;
Err << Standard_Failure::Caught();
Err << (char) 0;
jcas_ThrowException(env,GetSString(Err));
}
}
alock.Release();
}
JNIEXPORT void JNICALL Java_CASCADESamplesJni_Aspect_1FontStyle_SetEncoding (JNIEnv *env, jobject theobj, jobject aName)
{
jcas_Locking alock(env);
{
try {
Standard_CString the_aName = jcas_ConvertToCString(env,aName);
Aspect_FontStyle* the_this = (Aspect_FontStyle*) jcas_GetHandle(env,theobj);
the_this->SetEncoding(the_aName);
}
catch (Standard_Failure) {
Standard_SStream Err;
Err << Standard_Failure::Caught();
Err << (char) 0;
jcas_ThrowException(env,GetSString(Err));
}
}
alock.Release();
}
JNIEXPORT jint JNICALL Java_CASCADESamplesJni_Aspect_1FontStyle_Style (JNIEnv *env, jobject theobj)
{
jint thejret;
jcas_Locking alock(env);
{
try {
Aspect_FontStyle* the_this = (Aspect_FontStyle*) jcas_GetHandle(env,theobj);
thejret = the_this->Style();
}
catch (Standard_Failure) {
Standard_SStream Err;
Err << Standard_Failure::Caught();
Err << (char) 0;
jcas_ThrowException(env,GetSString(Err));
}
}
alock.Release();
return thejret;
}
JNIEXPORT jint JNICALL Java_CASCADESamplesJni_Aspect_1FontStyle_Length (JNIEnv *env, jobject theobj)
{
jint thejret;
jcas_Locking alock(env);
{
try {
Aspect_FontStyle* the_this = (Aspect_FontStyle*) jcas_GetHandle(env,theobj);
thejret = the_this->Length();
}
catch (Standard_Failure) {
Standard_SStream Err;
Err << Standard_Failure::Caught();
Err << (char) 0;
jcas_ThrowException(env,GetSString(Err));
}
}
alock.Release();
return thejret;
}
JNIEXPORT jobject JNICALL Java_CASCADESamplesJni_Aspect_1FontStyle_Value (JNIEnv *env, jobject theobj)
{
jobject thejret;
jcas_Locking alock(env);
{
try {
Aspect_FontStyle* the_this = (Aspect_FontStyle*) jcas_GetHandle(env,theobj);
Standard_CString sret = the_this->Value();
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,GetSString(Err));
}
}
alock.Release();
return thejret;
}
JNIEXPORT jdouble JNICALL Java_CASCADESamplesJni_Aspect_1FontStyle_Size (JNIEnv *env, jobject theobj)
{
jdouble thejret;
jcas_Locking alock(env);
{
try {
Aspect_FontStyle* the_this = (Aspect_FontStyle*) jcas_GetHandle(env,theobj);
thejret = the_this->Size();
}
catch (Standard_Failure) {
Standard_SStream Err;
Err << Standard_Failure::Caught();
Err << (char) 0;
jcas_ThrowException(env,GetSString(Err));
}
}
alock.Release();
return thejret;
}
JNIEXPORT jdouble JNICALL Java_CASCADESamplesJni_Aspect_1FontStyle_Slant (JNIEnv *env, jobject theobj)
{
jdouble thejret;
jcas_Locking alock(env);
{
try {
Aspect_FontStyle* the_this = (Aspect_FontStyle*) jcas_GetHandle(env,theobj);
thejret = the_this->Slant();
}
catch (Standard_Failure) {
Standard_SStream Err;
Err << Standard_Failure::Caught();
Err << (char) 0;
jcas_ThrowException(env,GetSString(Err));
}
}
alock.Release();
return thejret;
}
JNIEXPORT jboolean JNICALL Java_CASCADESamplesJni_Aspect_1FontStyle_CapsHeight (JNIEnv *env, jobject theobj)
{
jboolean thejret;
jcas_Locking alock(env);
{
try {
Aspect_FontStyle* the_this = (Aspect_FontStyle*) jcas_GetHandle(env,theobj);
thejret = the_this->CapsHeight();
}
catch (Standard_Failure) {
Standard_SStream Err;
Err << Standard_Failure::Caught();
Err << (char) 0;
jcas_ThrowException(env,GetSString(Err));
}
}
alock.Release();
return thejret;
}
JNIEXPORT jobject JNICALL Java_CASCADESamplesJni_Aspect_1FontStyle_AliasName (JNIEnv *env, jobject theobj)
{
jobject thejret;
jcas_Locking alock(env);
{
try {
Aspect_FontStyle* the_this = (Aspect_FontStyle*) jcas_GetHandle(env,theobj);
Standard_CString sret = the_this->AliasName();
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,GetSString(Err));
}
}
alock.Release();
return thejret;
}
JNIEXPORT jobject JNICALL Java_CASCADESamplesJni_Aspect_1FontStyle_FullName (JNIEnv *env, jobject theobj)
{
jobject thejret;
jcas_Locking alock(env);
{
try {
Aspect_FontStyle* the_this = (Aspect_FontStyle*) jcas_GetHandle(env,theobj);
Standard_CString sret = the_this->FullName();
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,GetSString(Err));
}
}
alock.Release();
return thejret;
}
JNIEXPORT jobject JNICALL Java_CASCADESamplesJni_Aspect_1FontStyle_Foundry (JNIEnv *env, jobject theobj)
{
jobject thejret;
jcas_Locking alock(env);
{
try {
Aspect_FontStyle* the_this = (Aspect_FontStyle*) jcas_GetHandle(env,theobj);
Standard_CString sret = the_this->Foundry();
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,GetSString(Err));
}
}
alock.Release();
return thejret;
}
JNIEXPORT jobject JNICALL Java_CASCADESamplesJni_Aspect_1FontStyle_Family (JNIEnv *env, jobject theobj)
{
jobject thejret;
jcas_Locking alock(env);
{
try {
Aspect_FontStyle* the_this = (Aspect_FontStyle*) jcas_GetHandle(env,theobj);
Standard_CString sret = the_this->Family();
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,GetSString(Err));
}
}
alock.Release();
return thejret;
}
JNIEXPORT jobject JNICALL Java_CASCADESamplesJni_Aspect_1FontStyle_Weight (JNIEnv *env, jobject theobj)
{
jobject thejret;
jcas_Locking alock(env);
{
try {
Aspect_FontStyle* the_this = (Aspect_FontStyle*) jcas_GetHandle(env,theobj);
Standard_CString sret = the_this->Weight();
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,GetSString(Err));
}
}
alock.Release();
return thejret;
}
JNIEXPORT jobject JNICALL Java_CASCADESamplesJni_Aspect_1FontStyle_Registry (JNIEnv *env, jobject theobj)
{
jobject thejret;
jcas_Locking alock(env);
{
try {
Aspect_FontStyle* the_this = (Aspect_FontStyle*) jcas_GetHandle(env,theobj);
Standard_CString sret = the_this->Registry();
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,GetSString(Err));
}
}
alock.Release();
return thejret;
}
JNIEXPORT jobject JNICALL Java_CASCADESamplesJni_Aspect_1FontStyle_Encoding (JNIEnv *env, jobject theobj)
{
jobject thejret;
jcas_Locking alock(env);
{
try {
Aspect_FontStyle* the_this = (Aspect_FontStyle*) jcas_GetHandle(env,theobj);
Standard_CString sret = the_this->Encoding();
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,GetSString(Err));
}
}
alock.Release();
return thejret;
}
JNIEXPORT jobject JNICALL Java_CASCADESamplesJni_Aspect_1FontStyle_SSlant (JNIEnv *env, jobject theobj)
{
jobject thejret;
jcas_Locking alock(env);
{
try {
Aspect_FontStyle* the_this = (Aspect_FontStyle*) jcas_GetHandle(env,theobj);
Standard_CString sret = the_this->SSlant();
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,GetSString(Err));
}
}
alock.Release();
return thejret;
}
JNIEXPORT jobject JNICALL Java_CASCADESamplesJni_Aspect_1FontStyle_SWidth (JNIEnv *env, jobject theobj)
{
jobject thejret;
jcas_Locking alock(env);
{
try {
Aspect_FontStyle* the_this = (Aspect_FontStyle*) jcas_GetHandle(env,theobj);
Standard_CString sret = the_this->SWidth();
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,GetSString(Err));
}
}
alock.Release();
return thejret;
}
JNIEXPORT jobject JNICALL Java_CASCADESamplesJni_Aspect_1FontStyle_SStyle (JNIEnv *env, jobject theobj)
{
jobject thejret;
jcas_Locking alock(env);
{
try {
Aspect_FontStyle* the_this = (Aspect_FontStyle*) jcas_GetHandle(env,theobj);
Standard_CString sret = the_this->SStyle();
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,GetSString(Err));
}
}
alock.Release();
return thejret;
}
JNIEXPORT jobject JNICALL Java_CASCADESamplesJni_Aspect_1FontStyle_SPixelSize (JNIEnv *env, jobject theobj)
{
jobject thejret;
jcas_Locking alock(env);
{
try {
Aspect_FontStyle* the_this = (Aspect_FontStyle*) jcas_GetHandle(env,theobj);
Standard_CString sret = the_this->SPixelSize();
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,GetSString(Err));
}
}
alock.Release();
return thejret;
}
JNIEXPORT jobject JNICALL Java_CASCADESamplesJni_Aspect_1FontStyle_SPointSize (JNIEnv *env, jobject theobj)
{
jobject thejret;
jcas_Locking alock(env);
{
try {
Aspect_FontStyle* the_this = (Aspect_FontStyle*) jcas_GetHandle(env,theobj);
Standard_CString sret = the_this->SPointSize();
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,GetSString(Err));
}
}
alock.Release();
return thejret;
}
JNIEXPORT jobject JNICALL Java_CASCADESamplesJni_Aspect_1FontStyle_SResolutionX (JNIEnv *env, jobject theobj)
{
jobject thejret;
jcas_Locking alock(env);
{
try {
Aspect_FontStyle* the_this = (Aspect_FontStyle*) jcas_GetHandle(env,theobj);
Standard_CString sret = the_this->SResolutionX();
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,GetSString(Err));
}
}
alock.Release();
return thejret;
}
JNIEXPORT jobject JNICALL Java_CASCADESamplesJni_Aspect_1FontStyle_SResolutionY (JNIEnv *env, jobject theobj)
{
jobject thejret;
jcas_Locking alock(env);
{
try {
Aspect_FontStyle* the_this = (Aspect_FontStyle*) jcas_GetHandle(env,theobj);
Standard_CString sret = the_this->SResolutionY();
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,GetSString(Err));
}
}
alock.Release();
return thejret;
}
JNIEXPORT jobject JNICALL Java_CASCADESamplesJni_Aspect_1FontStyle_SSpacing (JNIEnv *env, jobject theobj)
{
jobject thejret;
jcas_Locking alock(env);
{
try {
Aspect_FontStyle* the_this = (Aspect_FontStyle*) jcas_GetHandle(env,theobj);
Standard_CString sret = the_this->SSpacing();
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,GetSString(Err));
}
}
alock.Release();
return thejret;
}
JNIEXPORT jobject JNICALL Java_CASCADESamplesJni_Aspect_1FontStyle_SAverageWidth (JNIEnv *env, jobject theobj)
{
jobject thejret;
jcas_Locking alock(env);
{
try {
Aspect_FontStyle* the_this = (Aspect_FontStyle*) jcas_GetHandle(env,theobj);
Standard_CString sret = the_this->SAverageWidth();
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,GetSString(Err));
}
}
alock.Release();
return thejret;
}
JNIEXPORT void JNICALL Java_CASCADESamplesJni_Aspect_1FontStyle_Dump (JNIEnv *env, jobject theobj)
{
jcas_Locking alock(env);
{
try {
Aspect_FontStyle* the_this = (Aspect_FontStyle*) jcas_GetHandle(env,theobj);
the_this->Dump();
}
catch (Standard_Failure) {
Standard_SStream Err;
Err << Standard_Failure::Caught();
Err << (char) 0;
jcas_ThrowException(env,GetSString(Err));
}
}
alock.Release();
}
JNIEXPORT jboolean JNICALL Java_CASCADESamplesJni_Aspect_1FontStyle_IsEqual (JNIEnv *env, jobject theobj, jobject Other)
{
jboolean thejret;
jcas_Locking alock(env);
{
try {
Aspect_FontStyle* the_Other = (Aspect_FontStyle*) jcas_GetHandle(env,Other);
Aspect_FontStyle* the_this = (Aspect_FontStyle*) 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,GetSString(Err));
}
}
alock.Release();
return thejret;
}
JNIEXPORT jboolean JNICALL Java_CASCADESamplesJni_Aspect_1FontStyle_IsNotEqual (JNIEnv *env, jobject theobj, jobject Other)
{
jboolean thejret;
jcas_Locking alock(env);
{
try {
Aspect_FontStyle* the_Other = (Aspect_FontStyle*) jcas_GetHandle(env,Other);
Aspect_FontStyle* the_this = (Aspect_FontStyle*) 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,GetSString(Err));
}
}
alock.Release();
return thejret;
}
JNIEXPORT void JNICALL Java_CASCADESamplesJni_Aspect_1FontStyle_FinalizeValue(JNIEnv *, jclass, jlong theid)
{
if (theid) {
Aspect_FontStyle* theobj = (Aspect_FontStyle*) theid;
delete theobj;
}
}
}

View File

@@ -0,0 +1,224 @@
// Copyright (C) 1991,1995 by
//
// MATRA DATAVISION, FRANCE
//
// This software is furnished in accordance with the terms and conditions
// of the contract and with the inclusion of the above copyright notice.
// This software or any other copy thereof may not be provided or otherwise
// be made available to any other person. No title to an ownership of the
// software is hereby transferred.
//
// At the termination of the contract, the software and all copies of this
// software must be deleted.
#include <CASCADESamplesJni_Aspect_GenericColorMap.h>
#include <Aspect_GenericColorMap.hxx>
#include <jcas.hxx>
#include <stdlib.h>
#include <Standard_ErrorHandler.hxx>
#include <Standard_SStream.hxx>
#include <Aspect_ColorMapEntry.hxx>
#include <Standard_Integer.hxx>
#include <Quantity_Color.hxx>
extern "C" {
JNIEXPORT void JNICALL Java_CASCADESamplesJni_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,GetSString(Err));
}
}
alock.Release();
}
JNIEXPORT void JNICALL Java_CASCADESamplesJni_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);
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,GetSString(Err));
}
}
alock.Release();
}
JNIEXPORT jint JNICALL Java_CASCADESamplesJni_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);
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,GetSString(Err));
}
}
alock.Release();
return thejret;
}
JNIEXPORT void JNICALL Java_CASCADESamplesJni_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,GetSString(Err));
}
}
alock.Release();
}
JNIEXPORT jint JNICALL Java_CASCADESamplesJni_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,GetSString(Err));
}
}
alock.Release();
return thejret;
}
JNIEXPORT jobject JNICALL Java_CASCADESamplesJni_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,GetSString(Err));
}
}
alock.Release();
return thejret;
}
JNIEXPORT jint JNICALL Java_CASCADESamplesJni_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);
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,GetSString(Err));
}
}
alock.Release();
return thejret;
}
JNIEXPORT jobject JNICALL Java_CASCADESamplesJni_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);
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,GetSString(Err));
}
}
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 <CASCADESamplesJni_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,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 <CASCADESamplesJni_Aspect_Grid.h>
#include <Aspect_Grid.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,305 @@
// Copyright (C) 1991,1995 by
//
// MATRA DATAVISION, FRANCE
//
// This software is furnished in accordance with the terms and conditions
// of the contract and with the inclusion of the above copyright notice.
// This software or any other copy thereof may not be provided or otherwise
// be made available to any other person. No title to an ownership of the
// software is hereby transferred.
//
// At the termination of the contract, the software and all copies of this
// software must be deleted.
#include <CASCADESamplesJni_Aspect_LineStyle.h>
#include <Aspect_LineStyle.hxx>
#include <jcas.hxx>
#include <stdlib.h>
#include <Standard_ErrorHandler.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_CASCADESamplesJni_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,GetSString(Err));
}
}
alock.Release();
}
JNIEXPORT void JNICALL Java_CASCADESamplesJni_Aspect_1LineStyle_Aspect_1LineStyle_1Create_12 (JNIEnv *env, jobject theobj, jint 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,GetSString(Err));
}
}
alock.Release();
}
JNIEXPORT void JNICALL Java_CASCADESamplesJni_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);
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,GetSString(Err));
}
}
alock.Release();
}
JNIEXPORT jobject JNICALL Java_CASCADESamplesJni_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);
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,GetSString(Err));
}
}
alock.Release();
return thejret;
}
JNIEXPORT void JNICALL Java_CASCADESamplesJni_Aspect_1LineStyle_Aspect_1LineStyle_1SetValues_11 (JNIEnv *env, jobject theobj, jint 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,GetSString(Err));
}
}
alock.Release();
}
JNIEXPORT void JNICALL Java_CASCADESamplesJni_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);
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,GetSString(Err));
}
}
alock.Release();
}
JNIEXPORT jint JNICALL Java_CASCADESamplesJni_Aspect_1LineStyle_Style (JNIEnv *env, jobject theobj)
{
jint 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,GetSString(Err));
}
}
alock.Release();
return thejret;
}
JNIEXPORT jint JNICALL Java_CASCADESamplesJni_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,GetSString(Err));
}
}
alock.Release();
return thejret;
}
JNIEXPORT jobject JNICALL Java_CASCADESamplesJni_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,GetSString(Err));
}
}
alock.Release();
return thejret;
}
JNIEXPORT jboolean JNICALL Java_CASCADESamplesJni_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);
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,GetSString(Err));
}
}
alock.Release();
return thejret;
}
JNIEXPORT jboolean JNICALL Java_CASCADESamplesJni_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);
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,GetSString(Err));
}
}
alock.Release();
return thejret;
}
JNIEXPORT void JNICALL Java_CASCADESamplesJni_Aspect_1LineStyle_FinalizeValue(JNIEnv *, jclass, jlong theid)
{
if (theid) {
Aspect_LineStyle* theobj = (Aspect_LineStyle*) theid;
delete theobj;
}
}
}

View File

@@ -0,0 +1,323 @@
// Copyright (C) 1991,1995 by
//
// MATRA DATAVISION, FRANCE
//
// This software is furnished in accordance with the terms and conditions
// of the contract and with the inclusion of the above copyright notice.
// This software or any other copy thereof may not be provided or otherwise
// be made available to any other person. No title to an ownership of the
// software is hereby transferred.
//
// At the termination of the contract, the software and all copies of this
// software must be deleted.
#include <CASCADESamplesJni_Aspect_MarkMapEntry.h>
#include <Aspect_MarkMapEntry.hxx>
#include <jcas.hxx>
#include <stdlib.h>
#include <Standard_ErrorHandler.hxx>
#include <Standard_SStream.hxx>
#include <Standard_Integer.hxx>
#include <Aspect_MarkerStyle.hxx>
#include <Standard_Boolean.hxx>
extern "C" {
JNIEXPORT void JNICALL Java_CASCADESamplesJni_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,GetSString(Err));
}
}
alock.Release();
}
JNIEXPORT void JNICALL Java_CASCADESamplesJni_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);
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,GetSString(Err));
}
}
alock.Release();
}
JNIEXPORT void JNICALL Java_CASCADESamplesJni_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);
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,GetSString(Err));
}
}
alock.Release();
}
JNIEXPORT void JNICALL Java_CASCADESamplesJni_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);
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,GetSString(Err));
}
}
alock.Release();
}
JNIEXPORT void JNICALL Java_CASCADESamplesJni_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);
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,GetSString(Err));
}
}
alock.Release();
}
JNIEXPORT void JNICALL Java_CASCADESamplesJni_Aspect_1MarkMapEntry_SetStyle (JNIEnv *env, jobject theobj, jobject Style)
{
jcas_Locking alock(env);
{
try {
Aspect_MarkerStyle* the_Style = (Aspect_MarkerStyle*) jcas_GetHandle(env,Style);
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,GetSString(Err));
}
}
alock.Release();
}
JNIEXPORT jobject JNICALL Java_CASCADESamplesJni_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,GetSString(Err));
}
}
alock.Release();
return thejret;
}
JNIEXPORT void JNICALL Java_CASCADESamplesJni_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,GetSString(Err));
}
}
alock.Release();
}
JNIEXPORT jint JNICALL Java_CASCADESamplesJni_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,GetSString(Err));
}
}
alock.Release();
return thejret;
}
JNIEXPORT void JNICALL Java_CASCADESamplesJni_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,GetSString(Err));
}
}
alock.Release();
}
JNIEXPORT jboolean JNICALL Java_CASCADESamplesJni_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,GetSString(Err));
}
}
alock.Release();
return thejret;
}
JNIEXPORT void JNICALL Java_CASCADESamplesJni_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,GetSString(Err));
}
}
alock.Release();
}
JNIEXPORT void JNICALL Java_CASCADESamplesJni_Aspect_1MarkMapEntry_FinalizeValue(JNIEnv *, jclass, jlong theid)
{
if (theid) {
Aspect_MarkMapEntry* theobj = (Aspect_MarkMapEntry*) 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 <CASCADESamplesJni_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>
extern "C" {
}

View File

@@ -0,0 +1,366 @@
// Copyright (C) 1991,1995 by
//
// MATRA DATAVISION, FRANCE
//
// This software is furnished in accordance with the terms and conditions
// of the contract and with the inclusion of the above copyright notice.
// This software or any other copy thereof may not be provided or otherwise
// be made available to any other person. No title to an ownership of the
// software is hereby transferred.
//
// At the termination of the contract, the software and all copies of this
// software must be deleted.
#include <CASCADESamplesJni_Aspect_MarkerStyle.h>
#include <Aspect_MarkerStyle.hxx>
#include <jcas.hxx>
#include <stdlib.h>
#include <Standard_ErrorHandler.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_CASCADESamplesJni_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,GetSString(Err));
}
}
alock.Release();
}
JNIEXPORT void JNICALL Java_CASCADESamplesJni_Aspect_1MarkerStyle_Aspect_1MarkerStyle_1Create_12 (JNIEnv *env, jobject theobj, jint 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,GetSString(Err));
}
}
alock.Release();
}
JNIEXPORT void JNICALL Java_CASCADESamplesJni_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);
TColStd_Array1OfReal* the_aYpoint = (TColStd_Array1OfReal*) jcas_GetHandle(env,aYpoint);
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,GetSString(Err));
}
}
alock.Release();
}
JNIEXPORT void JNICALL Java_CASCADESamplesJni_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);
TColStd_Array1OfReal* the_aYpoint = (TColStd_Array1OfReal*) jcas_GetHandle(env,aYpoint);
TColStd_Array1OfBoolean* the_aSpoint = (TColStd_Array1OfBoolean*) jcas_GetHandle(env,aSpoint);
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,GetSString(Err));
}
}
alock.Release();
}
JNIEXPORT jobject JNICALL Java_CASCADESamplesJni_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);
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,GetSString(Err));
}
}
alock.Release();
return thejret;
}
JNIEXPORT jint JNICALL Java_CASCADESamplesJni_Aspect_1MarkerStyle_Type (JNIEnv *env, jobject theobj)
{
jint 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,GetSString(Err));
}
}
alock.Release();
return thejret;
}
JNIEXPORT jint JNICALL Java_CASCADESamplesJni_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,GetSString(Err));
}
}
alock.Release();
return thejret;
}
JNIEXPORT jboolean JNICALL Java_CASCADESamplesJni_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,GetSString(Err));
}
}
alock.Release();
return thejret;
}
JNIEXPORT jobject JNICALL Java_CASCADESamplesJni_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,GetSString(Err));
}
}
alock.Release();
return thejret;
}
JNIEXPORT jobject JNICALL Java_CASCADESamplesJni_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,GetSString(Err));
}
}
alock.Release();
return thejret;
}
JNIEXPORT jobject JNICALL Java_CASCADESamplesJni_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,GetSString(Err));
}
}
alock.Release();
return thejret;
}
JNIEXPORT jboolean JNICALL Java_CASCADESamplesJni_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);
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,GetSString(Err));
}
}
alock.Release();
return thejret;
}
JNIEXPORT jboolean JNICALL Java_CASCADESamplesJni_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);
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,GetSString(Err));
}
}
alock.Release();
return thejret;
}
JNIEXPORT void JNICALL Java_CASCADESamplesJni_Aspect_1MarkerStyle_FinalizeValue(JNIEnv *, jclass, jlong theid)
{
if (theid) {
Aspect_MarkerStyle* theobj = (Aspect_MarkerStyle*) 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 <CASCADESamplesJni_Aspect_PixMap.h>
#include <Aspect_PixMap.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,323 @@
// Copyright (C) 1991,1995 by
//
// MATRA DATAVISION, FRANCE
//
// This software is furnished in accordance with the terms and conditions
// of the contract and with the inclusion of the above copyright notice.
// This software or any other copy thereof may not be provided or otherwise
// be made available to any other person. No title to an ownership of the
// software is hereby transferred.
//
// At the termination of the contract, the software and all copies of this
// software must be deleted.
#include <CASCADESamplesJni_Aspect_TypeMapEntry.h>
#include <Aspect_TypeMapEntry.hxx>
#include <jcas.hxx>
#include <stdlib.h>
#include <Standard_ErrorHandler.hxx>
#include <Standard_SStream.hxx>
#include <Standard_Integer.hxx>
#include <Aspect_LineStyle.hxx>
#include <Standard_Boolean.hxx>
extern "C" {
JNIEXPORT void JNICALL Java_CASCADESamplesJni_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,GetSString(Err));
}
}
alock.Release();
}
JNIEXPORT void JNICALL Java_CASCADESamplesJni_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);
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,GetSString(Err));
}
}
alock.Release();
}
JNIEXPORT void JNICALL Java_CASCADESamplesJni_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);
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,GetSString(Err));
}
}
alock.Release();
}
JNIEXPORT void JNICALL Java_CASCADESamplesJni_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);
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,GetSString(Err));
}
}
alock.Release();
}
JNIEXPORT void JNICALL Java_CASCADESamplesJni_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);
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,GetSString(Err));
}
}
alock.Release();
}
JNIEXPORT void JNICALL Java_CASCADESamplesJni_Aspect_1TypeMapEntry_SetType (JNIEnv *env, jobject theobj, jobject Style)
{
jcas_Locking alock(env);
{
try {
Aspect_LineStyle* the_Style = (Aspect_LineStyle*) jcas_GetHandle(env,Style);
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,GetSString(Err));
}
}
alock.Release();
}
JNIEXPORT jobject JNICALL Java_CASCADESamplesJni_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,GetSString(Err));
}
}
alock.Release();
return thejret;
}
JNIEXPORT void JNICALL Java_CASCADESamplesJni_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,GetSString(Err));
}
}
alock.Release();
}
JNIEXPORT jint JNICALL Java_CASCADESamplesJni_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,GetSString(Err));
}
}
alock.Release();
return thejret;
}
JNIEXPORT void JNICALL Java_CASCADESamplesJni_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,GetSString(Err));
}
}
alock.Release();
}
JNIEXPORT jboolean JNICALL Java_CASCADESamplesJni_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,GetSString(Err));
}
}
alock.Release();
return thejret;
}
JNIEXPORT void JNICALL Java_CASCADESamplesJni_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,GetSString(Err));
}
}
alock.Release();
}
JNIEXPORT void JNICALL Java_CASCADESamplesJni_Aspect_1TypeMapEntry_FinalizeValue(JNIEnv *, jclass, jlong theid)
{
if (theid) {
Aspect_TypeMapEntry* theobj = (Aspect_TypeMapEntry*) 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 <CASCADESamplesJni_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>
extern "C" {
}

View File

@@ -0,0 +1,413 @@
// Copyright (C) 1991,1995 by
//
// MATRA DATAVISION, FRANCE
//
// This software is furnished in accordance with the terms and conditions
// of the contract and with the inclusion of the above copyright notice.
// This software or any other copy thereof may not be provided or otherwise
// be made available to any other person. No title to an ownership of the
// software is hereby transferred.
//
// At the termination of the contract, the software and all copies of this
// software must be deleted.
#include <CASCADESamplesJni_Aspect_WidthMapEntry.h>
#include <Aspect_WidthMapEntry.hxx>
#include <jcas.hxx>
#include <stdlib.h>
#include <Standard_ErrorHandler.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_CASCADESamplesJni_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,GetSString(Err));
}
}
alock.Release();
}
JNIEXPORT void JNICALL Java_CASCADESamplesJni_Aspect_1WidthMapEntry_Aspect_1WidthMapEntry_1Create_12 (JNIEnv *env, jobject theobj, jint index, jint 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,GetSString(Err));
}
}
alock.Release();
}
JNIEXPORT void JNICALL Java_CASCADESamplesJni_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,GetSString(Err));
}
}
alock.Release();
}
JNIEXPORT void JNICALL Java_CASCADESamplesJni_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);
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,GetSString(Err));
}
}
alock.Release();
}
JNIEXPORT void JNICALL Java_CASCADESamplesJni_Aspect_1WidthMapEntry_Aspect_1WidthMapEntry_1SetValue_11 (JNIEnv *env, jobject theobj, jint index, jint 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,GetSString(Err));
}
}
alock.Release();
}
JNIEXPORT void JNICALL Java_CASCADESamplesJni_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,GetSString(Err));
}
}
alock.Release();
}
JNIEXPORT void JNICALL Java_CASCADESamplesJni_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);
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,GetSString(Err));
}
}
alock.Release();
}
JNIEXPORT void JNICALL Java_CASCADESamplesJni_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,GetSString(Err));
}
}
alock.Release();
}
JNIEXPORT void JNICALL Java_CASCADESamplesJni_Aspect_1WidthMapEntry_SetType (JNIEnv *env, jobject theobj, jint 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,GetSString(Err));
}
}
alock.Release();
}
JNIEXPORT void JNICALL Java_CASCADESamplesJni_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,GetSString(Err));
}
}
alock.Release();
}
JNIEXPORT jint JNICALL Java_CASCADESamplesJni_Aspect_1WidthMapEntry_Type (JNIEnv *env, jobject theobj)
{
jint 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,GetSString(Err));
}
}
alock.Release();
return thejret;
}
JNIEXPORT jdouble JNICALL Java_CASCADESamplesJni_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,GetSString(Err));
}
}
alock.Release();
return thejret;
}
JNIEXPORT jint JNICALL Java_CASCADESamplesJni_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,GetSString(Err));
}
}
alock.Release();
return thejret;
}
JNIEXPORT void JNICALL Java_CASCADESamplesJni_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,GetSString(Err));
}
}
alock.Release();
}
JNIEXPORT jboolean JNICALL Java_CASCADESamplesJni_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,GetSString(Err));
}
}
alock.Release();
return thejret;
}
JNIEXPORT void JNICALL Java_CASCADESamplesJni_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,GetSString(Err));
}
}
alock.Release();
}
JNIEXPORT void JNICALL Java_CASCADESamplesJni_Aspect_1WidthMapEntry_FinalizeValue(JNIEnv *, jclass, jlong theid)
{
if (theid) {
Aspect_WidthMapEntry* theobj = (Aspect_WidthMapEntry*) 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 <CASCADESamplesJni_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>
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 <CASCADESamplesJni_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>
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 <CASCADESamplesJni_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>
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 <CASCADESamplesJni_Bnd_Box.h>
#include <Bnd_Box.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_CASCADESamplesJni_Bnd_1Box_FinalizeValue(JNIEnv *, jclass, jlong theid)
{
if (theid) {
Bnd_Box* theobj = (Bnd_Box*) 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 <CASCADESamplesJni_Geom_Transformation.h>
#include <Geom_Transformation.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 <CASCADESamplesJni_Graphic2d_DisplayList.h>
#include <Graphic2d_DisplayList.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 <CASCADESamplesJni_Graphic2d_GraphicObject.h>
#include <Graphic2d_GraphicObject.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 <CASCADESamplesJni_Graphic2d_View.h>
#include <Graphic2d_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 <CASCADESamplesJni_Graphic3d_AspectMarker3d.h>
#include <Graphic3d_AspectMarker3d.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 <CASCADESamplesJni_Graphic3d_DataStructureManager.h>
#include <Graphic3d_DataStructureManager.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 <CASCADESamplesJni_Graphic3d_MaterialAspect.h>
#include <Graphic3d_MaterialAspect.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_CASCADESamplesJni_Graphic3d_1MaterialAspect_FinalizeValue(JNIEnv *, jclass, jlong theid)
{
if (theid) {
Graphic3d_MaterialAspect* theobj = (Graphic3d_MaterialAspect*) 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 <CASCADESamplesJni_Graphic3d_Plotter.h>
#include <Graphic3d_Plotter.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 <CASCADESamplesJni_Graphic3d_StructureManager.h>
#include <Graphic3d_StructureManager.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 <CASCADESamplesJni_Graphic3d_Structure.h>
#include <Graphic3d_Structure.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 <CASCADESamplesJni_Graphic3d_TextureEnv.h>
#include <Graphic3d_TextureEnv.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 <CASCADESamplesJni_Graphic3d_TextureRoot.h>
#include <Graphic3d_TextureRoot.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 <CASCADESamplesJni_Graphic3d_Vector.h>
#include <Graphic3d_Vector.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_CASCADESamplesJni_Graphic3d_1Vector_FinalizeValue(JNIEnv *, jclass, jlong theid)
{
if (theid) {
Graphic3d_Vector* theobj = (Graphic3d_Vector*) 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 <CASCADESamplesJni_Graphic3d_Vertex.h>
#include <Graphic3d_Vertex.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_CASCADESamplesJni_Graphic3d_1Vertex_FinalizeValue(JNIEnv *, jclass, jlong theid)
{
if (theid) {
Graphic3d_Vertex* theobj = (Graphic3d_Vertex*) theid;
delete theobj;
}
}
}

View File

@@ -0,0 +1,572 @@
//
// 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 <CASCADESamplesJni_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>
#include <V2d_Viewer.hxx>
#include <AIS_InteractiveObject.hxx>
#include <Standard_Boolean.hxx>
#include <Standard_Integer.hxx>
#include <V2d_View.hxx>
extern "C" {
JNIEXPORT void JNICALL Java_CASCADESamplesJni_ISession2D_1InteractiveContext_ISession2D_1InteractiveContext_1Create_11 (JNIEnv *env, jobject theobj)
{
jcas_Locking alock(env);
{
try {
Handle(ISession2D_InteractiveContext)* theret = new Handle(ISession2D_InteractiveContext);
*theret = new ISession2D_InteractiveContext();
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_CASCADESamplesJni_ISession2D_1InteractiveContext_ISession2D_1InteractiveContext_1Create_12 (JNIEnv *env, jobject theobj, 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 );
Handle(ISession2D_InteractiveContext)* theret = new Handle(ISession2D_InteractiveContext);
*theret = new ISession2D_InteractiveContext(the_aViewer);
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_CASCADESamplesJni_ISession2D_1InteractiveContext_Initialize (JNIEnv *env, jobject theobj, 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 );
Handle(ISession2D_InteractiveContext) the_this = *((Handle(ISession2D_InteractiveContext)*) jcas_GetHandle(env,theobj));
the_this->Initialize(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_CASCADESamplesJni_ISession2D_1InteractiveContext_ISession2D_1InteractiveContext_1Display_11 (JNIEnv *env, jobject theobj, jobject anObject, jboolean Redraw)
{
jcas_Locking alock(env);
{
try {
Handle( AIS_InteractiveObject ) the_anObject;
void* ptr_anObject = jcas_GetHandle(env,anObject);
if ( ptr_anObject != NULL ) the_anObject = *( ( Handle( AIS_InteractiveObject )* )ptr_anObject );
Handle(ISession2D_InteractiveContext) the_this = *((Handle(ISession2D_InteractiveContext)*) jcas_GetHandle(env,theobj));
the_this->Display(the_anObject,(Standard_Boolean) Redraw);
}
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_CASCADESamplesJni_ISession2D_1InteractiveContext_ISession2D_1InteractiveContext_1Display_12 (JNIEnv *env, jobject theobj, jobject anObject, jint aDisplayMode, jint aSelectionMode, jboolean Redraw)
{
jcas_Locking alock(env);
{
try {
Handle( AIS_InteractiveObject ) the_anObject;
void* ptr_anObject = jcas_GetHandle(env,anObject);
if ( ptr_anObject != NULL ) the_anObject = *( ( Handle( AIS_InteractiveObject )* )ptr_anObject );
Handle(ISession2D_InteractiveContext) the_this = *((Handle(ISession2D_InteractiveContext)*) jcas_GetHandle(env,theobj));
the_this->Display(the_anObject,(Standard_Integer) aDisplayMode,(Standard_Integer) aSelectionMode,(Standard_Boolean) Redraw);
}
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_CASCADESamplesJni_ISession2D_1InteractiveContext_Erase (JNIEnv *env, jobject theobj, jobject anObject, jboolean Redraw)
{
jcas_Locking alock(env);
{
try {
Handle( AIS_InteractiveObject ) the_anObject;
void* ptr_anObject = jcas_GetHandle(env,anObject);
if ( ptr_anObject != NULL ) the_anObject = *( ( Handle( AIS_InteractiveObject )* )ptr_anObject );
Handle(ISession2D_InteractiveContext) the_this = *((Handle(ISession2D_InteractiveContext)*) jcas_GetHandle(env,theobj));
the_this->Erase(the_anObject,(Standard_Boolean) Redraw);
}
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_CASCADESamplesJni_ISession2D_1InteractiveContext_DisplayAll (JNIEnv *env, jobject theobj, jboolean Redraw)
{
jcas_Locking alock(env);
{
try {
Handle(ISession2D_InteractiveContext) the_this = *((Handle(ISession2D_InteractiveContext)*) jcas_GetHandle(env,theobj));
the_this->DisplayAll((Standard_Boolean) Redraw);
}
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_CASCADESamplesJni_ISession2D_1InteractiveContext_EraseAll (JNIEnv *env, jobject theobj, jboolean Redraw)
{
jcas_Locking alock(env);
{
try {
Handle(ISession2D_InteractiveContext) the_this = *((Handle(ISession2D_InteractiveContext)*) jcas_GetHandle(env,theobj));
the_this->EraseAll((Standard_Boolean) Redraw);
}
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_CASCADESamplesJni_ISession2D_1InteractiveContext_IsDisplayed (JNIEnv *env, jobject theobj, jobject anObject, jint aMode)
{
jboolean thejret;
jcas_Locking alock(env);
{
try {
Handle( AIS_InteractiveObject ) the_anObject;
void* ptr_anObject = jcas_GetHandle(env,anObject);
if ( ptr_anObject != NULL ) the_anObject = *( ( Handle( AIS_InteractiveObject )* )ptr_anObject );
Handle(ISession2D_InteractiveContext) the_this = *((Handle(ISession2D_InteractiveContext)*) jcas_GetHandle(env,theobj));
thejret = the_this->IsDisplayed(the_anObject,(Standard_Integer) aMode);
}
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_CASCADESamplesJni_ISession2D_1InteractiveContext_Redisplay (JNIEnv *env, jobject theobj, jobject anObject, jboolean Redraw, jboolean allmodes)
{
jcas_Locking alock(env);
{
try {
Handle( AIS_InteractiveObject ) the_anObject;
void* ptr_anObject = jcas_GetHandle(env,anObject);
if ( ptr_anObject != NULL ) the_anObject = *( ( Handle( AIS_InteractiveObject )* )ptr_anObject );
Handle(ISession2D_InteractiveContext) the_this = *((Handle(ISession2D_InteractiveContext)*) jcas_GetHandle(env,theobj));
the_this->Redisplay(the_anObject,(Standard_Boolean) Redraw,(Standard_Boolean) allmodes);
}
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_CASCADESamplesJni_ISession2D_1InteractiveContext_Clear (JNIEnv *env, jobject theobj, jobject anObject, jboolean Redraw)
{
jcas_Locking alock(env);
{
try {
Handle( AIS_InteractiveObject ) the_anObject;
void* ptr_anObject = jcas_GetHandle(env,anObject);
if ( ptr_anObject != NULL ) the_anObject = *( ( Handle( AIS_InteractiveObject )* )ptr_anObject );
Handle(ISession2D_InteractiveContext) the_this = *((Handle(ISession2D_InteractiveContext)*) jcas_GetHandle(env,theobj));
the_this->Clear(the_anObject,(Standard_Boolean) Redraw);
}
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_CASCADESamplesJni_ISession2D_1InteractiveContext_Remove (JNIEnv *env, jobject theobj, jobject anObject, jboolean Redraw)
{
jcas_Locking alock(env);
{
try {
Handle( AIS_InteractiveObject ) the_anObject;
void* ptr_anObject = jcas_GetHandle(env,anObject);
if ( ptr_anObject != NULL ) the_anObject = *( ( Handle( AIS_InteractiveObject )* )ptr_anObject );
Handle(ISession2D_InteractiveContext) the_this = *((Handle(ISession2D_InteractiveContext)*) jcas_GetHandle(env,theobj));
the_this->Remove(the_anObject,(Standard_Boolean) Redraw);
}
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_CASCADESamplesJni_ISession2D_1InteractiveContext_Highlight (JNIEnv *env, jobject theobj, jobject anObject, jboolean Redraw)
{
jcas_Locking alock(env);
{
try {
Handle( AIS_InteractiveObject ) the_anObject;
void* ptr_anObject = jcas_GetHandle(env,anObject);
if ( ptr_anObject != NULL ) the_anObject = *( ( Handle( AIS_InteractiveObject )* )ptr_anObject );
Handle(ISession2D_InteractiveContext) the_this = *((Handle(ISession2D_InteractiveContext)*) jcas_GetHandle(env,theobj));
the_this->Highlight(the_anObject,(Standard_Boolean) Redraw);
}
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_CASCADESamplesJni_ISession2D_1InteractiveContext_Unhighlight (JNIEnv *env, jobject theobj, jobject anObject, jboolean Redraw)
{
jcas_Locking alock(env);
{
try {
Handle( AIS_InteractiveObject ) the_anObject;
void* ptr_anObject = jcas_GetHandle(env,anObject);
if ( ptr_anObject != NULL ) the_anObject = *( ( Handle( AIS_InteractiveObject )* )ptr_anObject );
Handle(ISession2D_InteractiveContext) the_this = *((Handle(ISession2D_InteractiveContext)*) jcas_GetHandle(env,theobj));
the_this->Unhighlight(the_anObject,(Standard_Boolean) Redraw);
}
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_CASCADESamplesJni_ISession2D_1InteractiveContext_IsHilighted (JNIEnv *env, jobject theobj, jobject anObject)
{
jboolean thejret;
jcas_Locking alock(env);
{
try {
Handle( AIS_InteractiveObject ) the_anObject;
void* ptr_anObject = jcas_GetHandle(env,anObject);
if ( ptr_anObject != NULL ) the_anObject = *( ( Handle( AIS_InteractiveObject )* )ptr_anObject );
Handle(ISession2D_InteractiveContext) the_this = *((Handle(ISession2D_InteractiveContext)*) jcas_GetHandle(env,theobj));
thejret = the_this->IsHilighted(the_anObject);
}
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_CASCADESamplesJni_ISession2D_1InteractiveContext_ISession2D_1InteractiveContext_1Move_11 (JNIEnv *env, jobject theobj, jint x1, jint y1, jobject aView)
{
jcas_Locking alock(env);
{
try {
Handle( V2d_View ) the_aView;
void* ptr_aView = jcas_GetHandle(env,aView);
if ( ptr_aView != NULL ) the_aView = *( ( Handle( V2d_View )* )ptr_aView );
Handle(ISession2D_InteractiveContext) the_this = *((Handle(ISession2D_InteractiveContext)*) jcas_GetHandle(env,theobj));
the_this->Move((Standard_Integer) x1,(Standard_Integer) y1,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_CASCADESamplesJni_ISession2D_1InteractiveContext_ISession2D_1InteractiveContext_1Move_12 (JNIEnv *env, jobject theobj, jint x1, jint y1, jint x2, jint y2, jobject aView)
{
jcas_Locking alock(env);
{
try {
Handle( V2d_View ) the_aView;
void* ptr_aView = jcas_GetHandle(env,aView);
if ( ptr_aView != NULL ) the_aView = *( ( Handle( V2d_View )* )ptr_aView );
Handle(ISession2D_InteractiveContext) the_this = *((Handle(ISession2D_InteractiveContext)*) jcas_GetHandle(env,theobj));
the_this->Move((Standard_Integer) x1,(Standard_Integer) y1,(Standard_Integer) x2,(Standard_Integer) y2,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_CASCADESamplesJni_ISession2D_1InteractiveContext_Pick (JNIEnv *env, jobject theobj, jboolean MultiSelection)
{
jcas_Locking alock(env);
{
try {
Handle(ISession2D_InteractiveContext) the_this = *((Handle(ISession2D_InteractiveContext)*) jcas_GetHandle(env,theobj));
the_this->Pick((Standard_Boolean) MultiSelection);
}
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_CASCADESamplesJni_ISession2D_1InteractiveContext_DisplayAreas (JNIEnv *env, jobject theobj)
{
jcas_Locking alock(env);
{
try {
Handle(ISession2D_InteractiveContext) the_this = *((Handle(ISession2D_InteractiveContext)*) jcas_GetHandle(env,theobj));
the_this->DisplayAreas();
}
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_CASCADESamplesJni_ISession2D_1InteractiveContext_ClearAreas (JNIEnv *env, jobject theobj)
{
jcas_Locking alock(env);
{
try {
Handle(ISession2D_InteractiveContext) the_this = *((Handle(ISession2D_InteractiveContext)*) jcas_GetHandle(env,theobj));
the_this->ClearAreas();
}
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,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 <CASCADESamplesJni_PlotMgt_PlotterDriver.h>
#include <PlotMgt_PlotterDriver.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 <CASCADESamplesJni_Prs3d_BasicAspect.h>
#include <Prs3d_BasicAspect.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 <CASCADESamplesJni_Prs3d_Drawer.h>
#include <Prs3d_Drawer.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 <CASCADESamplesJni_Prs3d_LineAspect.h>
#include <Prs3d_LineAspect.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 <CASCADESamplesJni_Prs3d_Presentation.h>
#include <Prs3d_Presentation.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 <CASCADESamplesJni_Prs3d_Projector.h>
#include <Prs3d_Projector.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,349 @@
//
// 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 <CASCADESamplesJni_PrsMgr_PresentableObject.h>
#include <PrsMgr_PresentableObject.hxx>
#include <jcas.hxx>
#include <stdlib.h>
#include <Standard_ErrorHandler.hxx>
#include <Standard_Failure.hxx>
#include <Standard_SStream.hxx>
#include <PrsMgr_TypeOfPresentation3d.hxx>
#include <gp_Pnt.hxx>
#include <Standard_Integer.hxx>
#include <TColStd_ListOfInteger.hxx>
#include <TopLoc_Location.hxx>
#include <Standard_Boolean.hxx>
#include <Prs3d_Presentation.hxx>
extern "C" {
JNIEXPORT jshort JNICALL Java_CASCADESamplesJni_PrsMgr_1PresentableObject_TypeOfPresentation3d (JNIEnv *env, jobject theobj)
{
jshort thejret;
jcas_Locking alock(env);
{
try {
Handle(PrsMgr_PresentableObject) the_this = *((Handle(PrsMgr_PresentableObject)*) jcas_GetHandle(env,theobj));
thejret = the_this->TypeOfPresentation3d();
}
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_CASCADESamplesJni_PrsMgr_1PresentableObject_GetTransformPersistencePoint (JNIEnv *env, jobject theobj)
{
jobject thejret;
jcas_Locking alock(env);
{
try {
Handle(PrsMgr_PresentableObject) the_this = *((Handle(PrsMgr_PresentableObject)*) jcas_GetHandle(env,theobj));
gp_Pnt* theret = new gp_Pnt(the_this->GetTransformPersistencePoint());
thejret = jcas_CreateObject(env,"CASCADESamplesJni/gp_Pnt",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_CASCADESamplesJni_PrsMgr_1PresentableObject_SetTypeOfPresentation (JNIEnv *env, jobject theobj, jshort aType)
{
jcas_Locking alock(env);
{
try {
Handle(PrsMgr_PresentableObject) the_this = *((Handle(PrsMgr_PresentableObject)*) jcas_GetHandle(env,theobj));
the_this->SetTypeOfPresentation((PrsMgr_TypeOfPresentation3d) aType);
}
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_CASCADESamplesJni_PrsMgr_1PresentableObject_PrsMgr_1PresentableObject_1SetToUpdate_11 (JNIEnv *env, jobject theobj, jint aMode)
{
jcas_Locking alock(env);
{
try {
Handle(PrsMgr_PresentableObject) the_this = *((Handle(PrsMgr_PresentableObject)*) jcas_GetHandle(env,theobj));
the_this->SetToUpdate((Standard_Integer) aMode);
}
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_CASCADESamplesJni_PrsMgr_1PresentableObject_PrsMgr_1PresentableObject_1SetToUpdate_12 (JNIEnv *env, jobject theobj)
{
jcas_Locking alock(env);
{
try {
Handle(PrsMgr_PresentableObject) the_this = *((Handle(PrsMgr_PresentableObject)*) jcas_GetHandle(env,theobj));
the_this->SetToUpdate();
}
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_CASCADESamplesJni_PrsMgr_1PresentableObject_ToBeUpdated (JNIEnv *env, jobject theobj, jobject ListOfMode)
{
jcas_Locking alock(env);
{
try {
TColStd_ListOfInteger* the_ListOfMode = (TColStd_ListOfInteger*) jcas_GetHandle(env,ListOfMode);
if ( the_ListOfMode == 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_ListOfMode = new TColStd_ListOfInteger ();
// jcas_SetHandle ( env, ListOfMode, the_ListOfMode );
jcas_ThrowException (env, "NULL object has been passed while expecting an object manipulated by value");
} // end if
Handle(PrsMgr_PresentableObject) the_this = *((Handle(PrsMgr_PresentableObject)*) jcas_GetHandle(env,theobj));
the_this->ToBeUpdated(*the_ListOfMode);
}
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_CASCADESamplesJni_PrsMgr_1PresentableObject_SetLocation (JNIEnv *env, jobject theobj, jobject aLoc)
{
jcas_Locking alock(env);
{
try {
TopLoc_Location* the_aLoc = (TopLoc_Location*) jcas_GetHandle(env,aLoc);
if ( the_aLoc == 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_aLoc = new TopLoc_Location ();
// jcas_SetHandle ( env, aLoc, the_aLoc );
jcas_ThrowException (env, "NULL object has been passed while expecting an object manipulated by value");
} // end if
Handle(PrsMgr_PresentableObject) the_this = *((Handle(PrsMgr_PresentableObject)*) jcas_GetHandle(env,theobj));
the_this->SetLocation(*the_aLoc);
}
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_CASCADESamplesJni_PrsMgr_1PresentableObject_HasLocation (JNIEnv *env, jobject theobj)
{
jboolean thejret;
jcas_Locking alock(env);
{
try {
Handle(PrsMgr_PresentableObject) the_this = *((Handle(PrsMgr_PresentableObject)*) jcas_GetHandle(env,theobj));
thejret = the_this->HasLocation();
}
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_CASCADESamplesJni_PrsMgr_1PresentableObject_Location (JNIEnv *env, jobject theobj)
{
jobject thejret;
jcas_Locking alock(env);
{
try {
Handle(PrsMgr_PresentableObject) the_this = *((Handle(PrsMgr_PresentableObject)*) jcas_GetHandle(env,theobj));
const TopLoc_Location& theret = the_this->Location();
thejret = jcas_CreateObject(env,"CASCADESamplesJni/TopLoc_Location",&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_CASCADESamplesJni_PrsMgr_1PresentableObject_ResetLocation (JNIEnv *env, jobject theobj)
{
jcas_Locking alock(env);
{
try {
Handle(PrsMgr_PresentableObject) the_this = *((Handle(PrsMgr_PresentableObject)*) jcas_GetHandle(env,theobj));
the_this->ResetLocation();
}
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_CASCADESamplesJni_PrsMgr_1PresentableObject_PrsMgr_1PresentableObject_1UpdateLocation_11 (JNIEnv *env, jobject theobj)
{
jcas_Locking alock(env);
{
try {
Handle(PrsMgr_PresentableObject) the_this = *((Handle(PrsMgr_PresentableObject)*) jcas_GetHandle(env,theobj));
the_this->UpdateLocation();
}
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_CASCADESamplesJni_PrsMgr_1PresentableObject_PrsMgr_1PresentableObject_1UpdateLocation_12 (JNIEnv *env, jobject theobj, jobject P)
{
jcas_Locking alock(env);
{
try {
Handle( Prs3d_Presentation ) the_P;
void* ptr_P = jcas_GetHandle(env,P);
if ( ptr_P != NULL ) the_P = *( ( Handle( Prs3d_Presentation )* )ptr_P );
Handle(PrsMgr_PresentableObject) the_this = *((Handle(PrsMgr_PresentableObject)*) jcas_GetHandle(env,theobj));
the_this->UpdateLocation(the_P);
}
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,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 <CASCADESamplesJni_PrsMgr_PresentationManager2d.h>
#include <PrsMgr_PresentationManager2d.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 <CASCADESamplesJni_PrsMgr_PresentationManager3d.h>
#include <PrsMgr_PresentationManager3d.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 <CASCADESamplesJni_PrsMgr_PresentationManager.h>
#include <PrsMgr_PresentationManager.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 <CASCADESamplesJni_PrsMgr_Presentation.h>
#include <PrsMgr_Presentation.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 <CASCADESamplesJni_PrsMgr_Presentations.h>
#include <PrsMgr_Presentations.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_CASCADESamplesJni_PrsMgr_1Presentations_FinalizeValue(JNIEnv *, jclass, jlong theid)
{
if (theid) {
PrsMgr_Presentations* theobj = (PrsMgr_Presentations*) theid;
delete theobj;
}
}
}

View File

@@ -0,0 +1,792 @@
//
// 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 <CASCADESamplesJni_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>
#include <Quantity_NameOfColor.hxx>
#include <Standard_Real.hxx>
#include <Quantity_TypeOfColor.hxx>
#include <Standard_Boolean.hxx>
#include <Standard_CString.hxx>
extern "C" {
JNIEXPORT void JNICALL Java_CASCADESamplesJni_Quantity_1Color_Quantity_1Color_1Create_11 (JNIEnv *env, jobject theobj)
{
jcas_Locking alock(env);
{
try {
Quantity_Color* theret = new Quantity_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_CASCADESamplesJni_Quantity_1Color_Quantity_1Color_1Create_12 (JNIEnv *env, jobject theobj, jshort AName)
{
jcas_Locking alock(env);
{
try {
Quantity_Color* theret = new Quantity_Color((Quantity_NameOfColor) AName);
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_CASCADESamplesJni_Quantity_1Color_Quantity_1Color_1Create_13 (JNIEnv *env, jobject theobj, jdouble R1, jdouble R2, jdouble R3, jshort AType)
{
jcas_Locking alock(env);
{
try {
Quantity_Color* theret = new Quantity_Color((Quantity_Parameter) R1,(Quantity_Parameter) R2,(Quantity_Parameter) R3,(Quantity_TypeOfColor) 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 jobject JNICALL Java_CASCADESamplesJni_Quantity_1Color_Assign (JNIEnv *env, jobject theobj, jobject Other)
{
jobject thejret;
jcas_Locking alock(env);
{
try {
Quantity_Color* the_Other = (Quantity_Color*) 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 Quantity_Color ();
// jcas_SetHandle ( env, Other, the_Other );
jcas_ThrowException (env, "NULL object has been passed while expecting an object manipulated by value");
} // end if
Quantity_Color* the_this = (Quantity_Color*) jcas_GetHandle(env,theobj);
const Quantity_Color& theret = the_this->Assign(*the_Other);
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_CASCADESamplesJni_Quantity_1Color_ChangeContrast (JNIEnv *env, jobject theobj, jdouble ADelta)
{
jcas_Locking alock(env);
{
try {
Quantity_Color* the_this = (Quantity_Color*) jcas_GetHandle(env,theobj);
the_this->ChangeContrast((Quantity_Rate) ADelta);
}
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_CASCADESamplesJni_Quantity_1Color_ChangeIntensity (JNIEnv *env, jobject theobj, jdouble ADelta)
{
jcas_Locking alock(env);
{
try {
Quantity_Color* the_this = (Quantity_Color*) jcas_GetHandle(env,theobj);
the_this->ChangeIntensity((Quantity_Rate) ADelta);
}
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_CASCADESamplesJni_Quantity_1Color_Quantity_1Color_1SetValues_11 (JNIEnv *env, jobject theobj, jshort AName)
{
jcas_Locking alock(env);
{
try {
Quantity_Color* the_this = (Quantity_Color*) jcas_GetHandle(env,theobj);
the_this->SetValues((Quantity_NameOfColor) AName);
}
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_CASCADESamplesJni_Quantity_1Color_Quantity_1Color_1SetValues_12 (JNIEnv *env, jobject theobj, jdouble R1, jdouble R2, jdouble R3, jshort AType)
{
jcas_Locking alock(env);
{
try {
Quantity_Color* the_this = (Quantity_Color*) jcas_GetHandle(env,theobj);
the_this->SetValues((Quantity_Parameter) R1,(Quantity_Parameter) R2,(Quantity_Parameter) R3,(Quantity_TypeOfColor) AType);
}
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_CASCADESamplesJni_Quantity_1Color_Delta (JNIEnv *env, jobject theobj, jobject AColor, jobject DC, jobject DI)
{
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
Standard_Real the_DC = jcas_GetReal(env,DC);
Standard_Real the_DI = jcas_GetReal(env,DI);
Quantity_Color* the_this = (Quantity_Color*) jcas_GetHandle(env,theobj);
the_this->Delta(*the_AColor,the_DC,the_DI);
jcas_SetReal(env,DC,the_DC);
jcas_SetReal(env,DI,the_DI);
}
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_CASCADESamplesJni_Quantity_1Color_Distance (JNIEnv *env, jobject theobj, jobject AColor)
{
jdouble 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
Quantity_Color* the_this = (Quantity_Color*) jcas_GetHandle(env,theobj);
thejret = the_this->Distance(*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 jdouble JNICALL Java_CASCADESamplesJni_Quantity_1Color_SquareDistance (JNIEnv *env, jobject theobj, jobject AColor)
{
jdouble 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
Quantity_Color* the_this = (Quantity_Color*) jcas_GetHandle(env,theobj);
thejret = the_this->SquareDistance(*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 jdouble JNICALL Java_CASCADESamplesJni_Quantity_1Color_Blue (JNIEnv *env, jobject theobj)
{
jdouble thejret;
jcas_Locking alock(env);
{
try {
Quantity_Color* the_this = (Quantity_Color*) jcas_GetHandle(env,theobj);
thejret = the_this->Blue();
}
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_CASCADESamplesJni_Quantity_1Color_Green (JNIEnv *env, jobject theobj)
{
jdouble thejret;
jcas_Locking alock(env);
{
try {
Quantity_Color* the_this = (Quantity_Color*) jcas_GetHandle(env,theobj);
thejret = the_this->Green();
}
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_CASCADESamplesJni_Quantity_1Color_Hue (JNIEnv *env, jobject theobj)
{
jdouble thejret;
jcas_Locking alock(env);
{
try {
Quantity_Color* the_this = (Quantity_Color*) jcas_GetHandle(env,theobj);
thejret = the_this->Hue();
}
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_CASCADESamplesJni_Quantity_1Color_IsDifferent (JNIEnv *env, jobject theobj, jobject Other)
{
jboolean thejret;
jcas_Locking alock(env);
{
try {
Quantity_Color* the_Other = (Quantity_Color*) 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 Quantity_Color ();
// jcas_SetHandle ( env, Other, the_Other );
jcas_ThrowException (env, "NULL object has been passed while expecting an object manipulated by value");
} // end if
Quantity_Color* the_this = (Quantity_Color*) jcas_GetHandle(env,theobj);
thejret = the_this->IsDifferent(*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_CASCADESamplesJni_Quantity_1Color_IsEqual (JNIEnv *env, jobject theobj, jobject Other)
{
jboolean thejret;
jcas_Locking alock(env);
{
try {
Quantity_Color* the_Other = (Quantity_Color*) 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 Quantity_Color ();
// jcas_SetHandle ( env, Other, the_Other );
jcas_ThrowException (env, "NULL object has been passed while expecting an object manipulated by value");
} // end if
Quantity_Color* the_this = (Quantity_Color*) 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 jdouble JNICALL Java_CASCADESamplesJni_Quantity_1Color_Light (JNIEnv *env, jobject theobj)
{
jdouble thejret;
jcas_Locking alock(env);
{
try {
Quantity_Color* the_this = (Quantity_Color*) jcas_GetHandle(env,theobj);
thejret = the_this->Light();
}
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_CASCADESamplesJni_Quantity_1Color_Quantity_1Color_1Name_11 (JNIEnv *env, jobject theobj)
{
jshort thejret;
jcas_Locking alock(env);
{
try {
Quantity_Color* the_this = (Quantity_Color*) jcas_GetHandle(env,theobj);
thejret = the_this->Name();
}
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_CASCADESamplesJni_Quantity_1Color_Red (JNIEnv *env, jobject theobj)
{
jdouble thejret;
jcas_Locking alock(env);
{
try {
Quantity_Color* the_this = (Quantity_Color*) jcas_GetHandle(env,theobj);
thejret = the_this->Red();
}
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_CASCADESamplesJni_Quantity_1Color_Saturation (JNIEnv *env, jobject theobj)
{
jdouble thejret;
jcas_Locking alock(env);
{
try {
Quantity_Color* the_this = (Quantity_Color*) jcas_GetHandle(env,theobj);
thejret = the_this->Saturation();
}
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_CASCADESamplesJni_Quantity_1Color_Values (JNIEnv *env, jobject theobj, jobject R1, jobject R2, jobject R3, jshort AType)
{
jcas_Locking alock(env);
{
try {
Standard_Real the_R1 = jcas_GetReal(env,R1);
Standard_Real the_R2 = jcas_GetReal(env,R2);
Standard_Real the_R3 = jcas_GetReal(env,R3);
Quantity_Color* the_this = (Quantity_Color*) jcas_GetHandle(env,theobj);
the_this->Values(the_R1,the_R2,the_R3,(Quantity_TypeOfColor) AType);
jcas_SetReal(env,R1,the_R1);
jcas_SetReal(env,R2,the_R2);
jcas_SetReal(env,R3,the_R3);
}
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_CASCADESamplesJni_Quantity_1Color_SetEpsilon (JNIEnv *env, jclass, jdouble AnEpsilon)
{
jcas_Locking alock(env);
{
try {
Quantity_Color::SetEpsilon((Quantity_Parameter) AnEpsilon);
}
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_CASCADESamplesJni_Quantity_1Color_Epsilon (JNIEnv *env, jclass)
{
jdouble thejret;
jcas_Locking alock(env);
{
try {
thejret = Quantity_Color::Epsilon();
}
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_CASCADESamplesJni_Quantity_1Color_Quantity_1Color_1Name_12 (JNIEnv *env, jclass, jdouble R, jdouble G, jdouble B)
{
jshort thejret;
jcas_Locking alock(env);
{
try {
thejret = Quantity_Color::Name((Quantity_Parameter) R,(Quantity_Parameter) G,(Quantity_Parameter) B);
}
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_CASCADESamplesJni_Quantity_1Color_StringName (JNIEnv *env, jclass, jshort AColor)
{
jobject thejret;
jcas_Locking alock(env);
{
try {
Standard_CString sret = Quantity_Color::StringName((Quantity_NameOfColor) AColor);
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 void JNICALL Java_CASCADESamplesJni_Quantity_1Color_HlsRgb (JNIEnv *env, jclass, jdouble H, jdouble L, jdouble S, jobject R, jobject G, jobject B)
{
jcas_Locking alock(env);
{
try {
Standard_Real the_R = jcas_GetReal(env,R);
Standard_Real the_G = jcas_GetReal(env,G);
Standard_Real the_B = jcas_GetReal(env,B);
Quantity_Color::HlsRgb((Quantity_Parameter) H,(Quantity_Parameter) L,(Quantity_Parameter) S,the_R,the_G,the_B);
jcas_SetReal(env,R,the_R);
jcas_SetReal(env,G,the_G);
jcas_SetReal(env,B,the_B);
}
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_CASCADESamplesJni_Quantity_1Color_RgbHls (JNIEnv *env, jclass, jdouble R, jdouble G, jdouble B, jobject H, jobject L, jobject S)
{
jcas_Locking alock(env);
{
try {
Standard_Real the_H = jcas_GetReal(env,H);
Standard_Real the_L = jcas_GetReal(env,L);
Standard_Real the_S = jcas_GetReal(env,S);
Quantity_Color::RgbHls((Quantity_Parameter) R,(Quantity_Parameter) G,(Quantity_Parameter) B,the_H,the_L,the_S);
jcas_SetReal(env,H,the_H);
jcas_SetReal(env,L,the_L);
jcas_SetReal(env,S,the_S);
}
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_CASCADESamplesJni_Quantity_1Color_Test (JNIEnv *env, jclass)
{
jcas_Locking alock(env);
{
try {
Quantity_Color::Test();
}
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_CASCADESamplesJni_Quantity_1Color_FinalizeValue(JNIEnv *, jclass, jlong theid)
{
if (theid) {
Quantity_Color* theobj = (Quantity_Color*) 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 <CASCADESamplesJni_Select2D_Projector.h>
#include <Select2D_Projector.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 <CASCADESamplesJni_SelectBasics_EntityOwner.h>
#include <SelectBasics_EntityOwner.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 <CASCADESamplesJni_SelectMgr_EntityOwner.h>
#include <SelectMgr_EntityOwner.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 <CASCADESamplesJni_SelectMgr_Filter.h>
#include <SelectMgr_Filter.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 <CASCADESamplesJni_SelectMgr_ListOfFilter.h>
#include <SelectMgr_ListOfFilter.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_CASCADESamplesJni_SelectMgr_1ListOfFilter_FinalizeValue(JNIEnv *, jclass, jlong theid)
{
if (theid) {
SelectMgr_ListOfFilter* theobj = (SelectMgr_ListOfFilter*) theid;
delete theobj;
}
}
}

View File

@@ -0,0 +1,558 @@
//
// 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 <CASCADESamplesJni_SelectMgr_SelectableObject.h>
#include <SelectMgr_SelectableObject.hxx>
#include <jcas.hxx>
#include <stdlib.h>
#include <Standard_ErrorHandler.hxx>
#include <Standard_Failure.hxx>
#include <Standard_SStream.hxx>
#include <Standard_Integer.hxx>
#include <SelectMgr_Selection.hxx>
#include <Standard_Boolean.hxx>
#include <PrsMgr_PresentationManager3d.hxx>
#include <SelectMgr_SequenceOfOwner.hxx>
#include <Quantity_NameOfColor.hxx>
#include <SelectMgr_EntityOwner.hxx>
#include <Prs3d_Presentation.hxx>
extern "C" {
JNIEXPORT jint JNICALL Java_CASCADESamplesJni_SelectMgr_1SelectableObject_NbPossibleSelection (JNIEnv *env, jobject theobj)
{
jint thejret;
jcas_Locking alock(env);
{
try {
Handle(SelectMgr_SelectableObject) the_this = *((Handle(SelectMgr_SelectableObject)*) jcas_GetHandle(env,theobj));
thejret = the_this->NbPossibleSelection();
}
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_CASCADESamplesJni_SelectMgr_1SelectableObject_SelectMgr_1SelectableObject_1UpdateSelection_11 (JNIEnv *env, jobject theobj)
{
jcas_Locking alock(env);
{
try {
Handle(SelectMgr_SelectableObject) the_this = *((Handle(SelectMgr_SelectableObject)*) jcas_GetHandle(env,theobj));
the_this->UpdateSelection();
}
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_CASCADESamplesJni_SelectMgr_1SelectableObject_SelectMgr_1SelectableObject_1UpdateSelection_12 (JNIEnv *env, jobject theobj, jint aMode)
{
jcas_Locking alock(env);
{
try {
Handle(SelectMgr_SelectableObject) the_this = *((Handle(SelectMgr_SelectableObject)*) jcas_GetHandle(env,theobj));
the_this->UpdateSelection((Standard_Integer) aMode);
}
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_CASCADESamplesJni_SelectMgr_1SelectableObject_AddSelection (JNIEnv *env, jobject theobj, jobject aSelection, jint aMode)
{
jcas_Locking alock(env);
{
try {
Handle( SelectMgr_Selection ) the_aSelection;
void* ptr_aSelection = jcas_GetHandle(env,aSelection);
if ( ptr_aSelection != NULL ) the_aSelection = *( ( Handle( SelectMgr_Selection )* )ptr_aSelection );
Handle(SelectMgr_SelectableObject) the_this = *((Handle(SelectMgr_SelectableObject)*) jcas_GetHandle(env,theobj));
the_this->AddSelection(the_aSelection,(Standard_Integer) aMode);
}
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_CASCADESamplesJni_SelectMgr_1SelectableObject_ClearSelections (JNIEnv *env, jobject theobj, jboolean update)
{
jcas_Locking alock(env);
{
try {
Handle(SelectMgr_SelectableObject) the_this = *((Handle(SelectMgr_SelectableObject)*) jcas_GetHandle(env,theobj));
the_this->ClearSelections((Standard_Boolean) update);
}
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_CASCADESamplesJni_SelectMgr_1SelectableObject_Selection (JNIEnv *env, jobject theobj, jint aMode)
{
jobject thejret;
jcas_Locking alock(env);
{
try {
Handle(SelectMgr_SelectableObject) the_this = *((Handle(SelectMgr_SelectableObject)*) jcas_GetHandle(env,theobj));
Handle(SelectMgr_Selection)* theret = new Handle(SelectMgr_Selection);
*theret = the_this->Selection((Standard_Integer) aMode);
thejret = jcas_CreateObject(env,"CASCADESamplesJni/SelectMgr_Selection",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_CASCADESamplesJni_SelectMgr_1SelectableObject_HasSelection (JNIEnv *env, jobject theobj, jint aMode)
{
jboolean thejret;
jcas_Locking alock(env);
{
try {
Handle(SelectMgr_SelectableObject) the_this = *((Handle(SelectMgr_SelectableObject)*) jcas_GetHandle(env,theobj));
thejret = the_this->HasSelection((Standard_Integer) aMode);
}
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_CASCADESamplesJni_SelectMgr_1SelectableObject_Init (JNIEnv *env, jobject theobj)
{
jcas_Locking alock(env);
{
try {
Handle(SelectMgr_SelectableObject) the_this = *((Handle(SelectMgr_SelectableObject)*) jcas_GetHandle(env,theobj));
the_this->Init();
}
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_CASCADESamplesJni_SelectMgr_1SelectableObject_More (JNIEnv *env, jobject theobj)
{
jboolean thejret;
jcas_Locking alock(env);
{
try {
Handle(SelectMgr_SelectableObject) the_this = *((Handle(SelectMgr_SelectableObject)*) jcas_GetHandle(env,theobj));
thejret = the_this->More();
}
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_CASCADESamplesJni_SelectMgr_1SelectableObject_Next (JNIEnv *env, jobject theobj)
{
jcas_Locking alock(env);
{
try {
Handle(SelectMgr_SelectableObject) the_this = *((Handle(SelectMgr_SelectableObject)*) jcas_GetHandle(env,theobj));
the_this->Next();
}
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_CASCADESamplesJni_SelectMgr_1SelectableObject_CurrentSelection (JNIEnv *env, jobject theobj)
{
jobject thejret;
jcas_Locking alock(env);
{
try {
Handle(SelectMgr_SelectableObject) the_this = *((Handle(SelectMgr_SelectableObject)*) jcas_GetHandle(env,theobj));
Handle(SelectMgr_Selection)* theret = new Handle(SelectMgr_Selection);
*theret = the_this->CurrentSelection();
thejret = jcas_CreateObject(env,"CASCADESamplesJni/SelectMgr_Selection",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_CASCADESamplesJni_SelectMgr_1SelectableObject_ResetLocation (JNIEnv *env, jobject theobj)
{
jcas_Locking alock(env);
{
try {
Handle(SelectMgr_SelectableObject) the_this = *((Handle(SelectMgr_SelectableObject)*) jcas_GetHandle(env,theobj));
the_this->ResetLocation();
}
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_CASCADESamplesJni_SelectMgr_1SelectableObject_SelectMgr_1SelectableObject_1UpdateLocation_11 (JNIEnv *env, jobject theobj)
{
jcas_Locking alock(env);
{
try {
Handle(SelectMgr_SelectableObject) the_this = *((Handle(SelectMgr_SelectableObject)*) jcas_GetHandle(env,theobj));
the_this->UpdateLocation();
}
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_CASCADESamplesJni_SelectMgr_1SelectableObject_HilightSelected (JNIEnv *env, jobject theobj, jobject PM, jobject Seq)
{
jcas_Locking alock(env);
{
try {
Handle( PrsMgr_PresentationManager3d ) the_PM;
void* ptr_PM = jcas_GetHandle(env,PM);
if ( ptr_PM != NULL ) the_PM = *( ( Handle( PrsMgr_PresentationManager3d )* )ptr_PM );
SelectMgr_SequenceOfOwner* the_Seq = (SelectMgr_SequenceOfOwner*) jcas_GetHandle(env,Seq);
if ( the_Seq == 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_Seq = new SelectMgr_SequenceOfOwner ();
// jcas_SetHandle ( env, Seq, the_Seq );
jcas_ThrowException (env, "NULL object has been passed while expecting an object manipulated by value");
} // end if
Handle(SelectMgr_SelectableObject) the_this = *((Handle(SelectMgr_SelectableObject)*) jcas_GetHandle(env,theobj));
the_this->HilightSelected(the_PM,*the_Seq);
}
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_CASCADESamplesJni_SelectMgr_1SelectableObject_ClearSelected (JNIEnv *env, jobject theobj)
{
jcas_Locking alock(env);
{
try {
Handle(SelectMgr_SelectableObject) the_this = *((Handle(SelectMgr_SelectableObject)*) jcas_GetHandle(env,theobj));
the_this->ClearSelected();
}
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_CASCADESamplesJni_SelectMgr_1SelectableObject_HilightOwnerWithColor (JNIEnv *env, jobject theobj, jobject thePM, jshort theColor, jobject theOwner)
{
jcas_Locking alock(env);
{
try {
Handle( PrsMgr_PresentationManager3d ) the_thePM;
void* ptr_thePM = jcas_GetHandle(env,thePM);
if ( ptr_thePM != NULL ) the_thePM = *( ( Handle( PrsMgr_PresentationManager3d )* )ptr_thePM );
Handle( SelectMgr_EntityOwner ) the_theOwner;
void* ptr_theOwner = jcas_GetHandle(env,theOwner);
if ( ptr_theOwner != NULL ) the_theOwner = *( ( Handle( SelectMgr_EntityOwner )* )ptr_theOwner );
Handle(SelectMgr_SelectableObject) the_this = *((Handle(SelectMgr_SelectableObject)*) jcas_GetHandle(env,theobj));
the_this->HilightOwnerWithColor(the_thePM,(Quantity_NameOfColor) theColor,the_theOwner);
}
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_CASCADESamplesJni_SelectMgr_1SelectableObject_IsAutoHilight (JNIEnv *env, jobject theobj)
{
jboolean thejret;
jcas_Locking alock(env);
{
try {
Handle(SelectMgr_SelectableObject) the_this = *((Handle(SelectMgr_SelectableObject)*) jcas_GetHandle(env,theobj));
thejret = the_this->IsAutoHilight();
}
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_CASCADESamplesJni_SelectMgr_1SelectableObject_SetAutoHilight (JNIEnv *env, jobject theobj, jboolean newAutoHilight)
{
jcas_Locking alock(env);
{
try {
Handle(SelectMgr_SelectableObject) the_this = *((Handle(SelectMgr_SelectableObject)*) jcas_GetHandle(env,theobj));
the_this->SetAutoHilight((Standard_Boolean) newAutoHilight);
}
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_CASCADESamplesJni_SelectMgr_1SelectableObject_GetHilightPresentation (JNIEnv *env, jobject theobj, jobject TheMgr)
{
jobject thejret;
jcas_Locking alock(env);
{
try {
Handle( PrsMgr_PresentationManager3d ) the_TheMgr;
void* ptr_TheMgr = jcas_GetHandle(env,TheMgr);
if ( ptr_TheMgr != NULL ) the_TheMgr = *( ( Handle( PrsMgr_PresentationManager3d )* )ptr_TheMgr );
Handle(SelectMgr_SelectableObject) the_this = *((Handle(SelectMgr_SelectableObject)*) jcas_GetHandle(env,theobj));
Handle(Prs3d_Presentation)* theret = new Handle(Prs3d_Presentation);
*theret = the_this->GetHilightPresentation(the_TheMgr);
thejret = jcas_CreateObject(env,"CASCADESamplesJni/Prs3d_Presentation",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_CASCADESamplesJni_SelectMgr_1SelectableObject_GetSelectPresentation (JNIEnv *env, jobject theobj, jobject TheMgr)
{
jobject thejret;
jcas_Locking alock(env);
{
try {
Handle( PrsMgr_PresentationManager3d ) the_TheMgr;
void* ptr_TheMgr = jcas_GetHandle(env,TheMgr);
if ( ptr_TheMgr != NULL ) the_TheMgr = *( ( Handle( PrsMgr_PresentationManager3d )* )ptr_TheMgr );
Handle(SelectMgr_SelectableObject) the_this = *((Handle(SelectMgr_SelectableObject)*) jcas_GetHandle(env,theobj));
Handle(Prs3d_Presentation)* theret = new Handle(Prs3d_Presentation);
*theret = the_this->GetSelectPresentation(the_TheMgr);
thejret = jcas_CreateObject(env,"CASCADESamplesJni/Prs3d_Presentation",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,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 <CASCADESamplesJni_SelectMgr_SelectionManager.h>
#include <SelectMgr_SelectionManager.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 <CASCADESamplesJni_SelectMgr_Selection.h>
#include <SelectMgr_Selection.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 <CASCADESamplesJni_SelectMgr_SequenceOfOwner.h>
#include <SelectMgr_SequenceOfOwner.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_CASCADESamplesJni_SelectMgr_1SequenceOfOwner_FinalizeValue(JNIEnv *, jclass, jlong theid)
{
if (theid) {
SelectMgr_SequenceOfOwner* theobj = (SelectMgr_SequenceOfOwner*) 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 <CASCADESamplesJni_SelectMgr_ViewerSelector.h>
#include <SelectMgr_ViewerSelector.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 <CASCADESamplesJni_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,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 <CASCADESamplesJni_StdSelect_ViewerSelector3d.h>
#include <StdSelect_ViewerSelector3d.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,323 @@
// Copyright (C) 1991,1995 by
//
// MATRA DATAVISION, FRANCE
//
// This software is furnished in accordance with the terms and conditions
// of the contract and with the inclusion of the above copyright notice.
// This software or any other copy thereof may not be provided or otherwise
// be made available to any other person. No title to an ownership of the
// software is hereby transferred.
//
// At the termination of the contract, the software and all copies of this
// software must be deleted.
#include <CASCADESamplesJni_TColQuantity_Array1OfLength.h>
#include <TColQuantity_Array1OfLength.hxx>
#include <jcas.hxx>
#include <stdlib.h>
#include <Standard_ErrorHandler.hxx>
#include <Standard_SStream.hxx>
#include <Standard_Integer.hxx>
#include <Standard_Real.hxx>
#include <Standard_Boolean.hxx>
extern "C" {
JNIEXPORT void JNICALL Java_CASCADESamplesJni_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,GetSString(Err));
}
}
alock.Release();
}
JNIEXPORT void JNICALL Java_CASCADESamplesJni_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,GetSString(Err));
}
}
alock.Release();
}
JNIEXPORT void JNICALL Java_CASCADESamplesJni_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,GetSString(Err));
}
}
alock.Release();
}
JNIEXPORT void JNICALL Java_CASCADESamplesJni_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,GetSString(Err));
}
}
alock.Release();
}
JNIEXPORT jboolean JNICALL Java_CASCADESamplesJni_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,GetSString(Err));
}
}
alock.Release();
return thejret;
}
JNIEXPORT jobject JNICALL Java_CASCADESamplesJni_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);
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,GetSString(Err));
}
}
alock.Release();
return thejret;
}
JNIEXPORT jint JNICALL Java_CASCADESamplesJni_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,GetSString(Err));
}
}
alock.Release();
return thejret;
}
JNIEXPORT jint JNICALL Java_CASCADESamplesJni_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,GetSString(Err));
}
}
alock.Release();
return thejret;
}
JNIEXPORT jint JNICALL Java_CASCADESamplesJni_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,GetSString(Err));
}
}
alock.Release();
return thejret;
}
JNIEXPORT void JNICALL Java_CASCADESamplesJni_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,GetSString(Err));
}
}
alock.Release();
}
JNIEXPORT jdouble JNICALL Java_CASCADESamplesJni_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,GetSString(Err));
}
}
alock.Release();
return thejret;
}
JNIEXPORT jdouble JNICALL Java_CASCADESamplesJni_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,GetSString(Err));
}
}
alock.Release();
return thejret;
}
JNIEXPORT void JNICALL Java_CASCADESamplesJni_TColQuantity_1Array1OfLength_FinalizeValue(JNIEnv *, jclass, jlong theid)
{
if (theid) {
TColQuantity_Array1OfLength* theobj = (TColQuantity_Array1OfLength*) theid;
delete theobj;
}
}
}

View File

@@ -0,0 +1,25 @@
// Copyright (C) 1991,1995 by
//
// MATRA DATAVISION, FRANCE
//
// This software is furnished in accordance with the terms and conditions
// of the contract and with the inclusion of the above copyright notice.
// This software or any other copy thereof may not be provided or otherwise
// be made available to any other person. No title to an ownership of the
// software is hereby transferred.
//
// At the termination of the contract, the software and all copies of this
// software must be deleted.
#include <CASCADESamplesJni_TColQuantity_HArray1OfLength.h>
#include <TColQuantity_HArray1OfLength.hxx>
#include <jcas.hxx>
#include <stdlib.h>
#include <Standard_ErrorHandler.hxx>
#include <Standard_SStream.hxx>
extern "C" {
}

View File

@@ -0,0 +1,322 @@
// Copyright (C) 1991,1995 by
//
// MATRA DATAVISION, FRANCE
//
// This software is furnished in accordance with the terms and conditions
// of the contract and with the inclusion of the above copyright notice.
// This software or any other copy thereof may not be provided or otherwise
// be made available to any other person. No title to an ownership of the
// software is hereby transferred.
//
// At the termination of the contract, the software and all copies of this
// software must be deleted.
#include <CASCADESamplesJni_TColStd_Array1OfBoolean.h>
#include <TColStd_Array1OfBoolean.hxx>
#include <jcas.hxx>
#include <stdlib.h>
#include <Standard_ErrorHandler.hxx>
#include <Standard_SStream.hxx>
#include <Standard_Integer.hxx>
#include <Standard_Boolean.hxx>
extern "C" {
JNIEXPORT void JNICALL Java_CASCADESamplesJni_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,GetSString(Err));
}
}
alock.Release();
}
JNIEXPORT void JNICALL Java_CASCADESamplesJni_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,GetSString(Err));
}
}
alock.Release();
}
JNIEXPORT void JNICALL Java_CASCADESamplesJni_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,GetSString(Err));
}
}
alock.Release();
}
JNIEXPORT void JNICALL Java_CASCADESamplesJni_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,GetSString(Err));
}
}
alock.Release();
}
JNIEXPORT jboolean JNICALL Java_CASCADESamplesJni_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,GetSString(Err));
}
}
alock.Release();
return thejret;
}
JNIEXPORT jobject JNICALL Java_CASCADESamplesJni_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);
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,GetSString(Err));
}
}
alock.Release();
return thejret;
}
JNIEXPORT jint JNICALL Java_CASCADESamplesJni_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,GetSString(Err));
}
}
alock.Release();
return thejret;
}
JNIEXPORT jint JNICALL Java_CASCADESamplesJni_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,GetSString(Err));
}
}
alock.Release();
return thejret;
}
JNIEXPORT jint JNICALL Java_CASCADESamplesJni_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,GetSString(Err));
}
}
alock.Release();
return thejret;
}
JNIEXPORT void JNICALL Java_CASCADESamplesJni_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,GetSString(Err));
}
}
alock.Release();
}
JNIEXPORT jboolean JNICALL Java_CASCADESamplesJni_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,GetSString(Err));
}
}
alock.Release();
return thejret;
}
JNIEXPORT jboolean JNICALL Java_CASCADESamplesJni_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,GetSString(Err));
}
}
alock.Release();
return thejret;
}
JNIEXPORT void JNICALL Java_CASCADESamplesJni_TColStd_1Array1OfBoolean_FinalizeValue(JNIEnv *, jclass, jlong theid)
{
if (theid) {
TColStd_Array1OfBoolean* theobj = (TColStd_Array1OfBoolean*) theid;
delete theobj;
}
}
}

View File

@@ -0,0 +1,35 @@
// Copyright (C) 1991,1995 by
//
// MATRA DATAVISION, FRANCE
//
// This software is furnished in accordance with the terms and conditions
// of the contract and with the inclusion of the above copyright notice.
// This software or any other copy thereof may not be provided or otherwise
// be made available to any other person. No title to an ownership of the
// software is hereby transferred.
//
// At the termination of the contract, the software and all copies of this
// software must be deleted.
#include <CASCADESamplesJni_TColStd_Array1OfReal.h>
#include <TColStd_Array1OfReal.hxx>
#include <jcas.hxx>
#include <stdlib.h>
#include <Standard_ErrorHandler.hxx>
#include <Standard_SStream.hxx>
extern "C" {
JNIEXPORT void JNICALL Java_CASCADESamplesJni_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 <CASCADESamplesJni_TColStd_Array2OfReal.h>
#include <TColStd_Array2OfReal.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_CASCADESamplesJni_TColStd_1Array2OfReal_FinalizeValue(JNIEnv *, jclass, jlong theid)
{
if (theid) {
TColStd_Array2OfReal* theobj = (TColStd_Array2OfReal*) 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 <CASCADESamplesJni_TColStd_ListOfInteger.h>
#include <TColStd_ListOfInteger.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_CASCADESamplesJni_TColStd_1ListOfInteger_FinalizeValue(JNIEnv *, jclass, jlong theid)
{
if (theid) {
TColStd_ListOfInteger* theobj = (TColStd_ListOfInteger*) 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 <CASCADESamplesJni_TColStd_ListOfTransient.h>
#include <TColStd_ListOfTransient.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_CASCADESamplesJni_TColStd_1ListOfTransient_FinalizeValue(JNIEnv *, jclass, jlong theid)
{
if (theid) {
TColStd_ListOfTransient* theobj = (TColStd_ListOfTransient*) 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 <CASCADESamplesJni_TColStd_MapOfTransient.h>
#include <TColStd_MapOfTransient.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_CASCADESamplesJni_TColStd_1MapOfTransient_FinalizeValue(JNIEnv *, jclass, jlong theid)
{
if (theid) {
TColStd_MapOfTransient* theobj = (TColStd_MapOfTransient*) 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 <CASCADESamplesJni_TColgp_Array1OfPnt2d.h>
#include <TColgp_Array1OfPnt2d.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_CASCADESamplesJni_TColgp_1Array1OfPnt2d_FinalizeValue(JNIEnv *, jclass, jlong theid)
{
if (theid) {
TColgp_Array1OfPnt2d* theobj = (TColgp_Array1OfPnt2d*) theid;
delete theobj;
}
}
}

File diff suppressed because it is too large Load Diff

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 <CASCADESamplesJni_TCollection_BaseSequence.h>
#include <TCollection_BaseSequence.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_CASCADESamplesJni_TCollection_1BaseSequence_FinalizeValue(JNIEnv *, jclass, jlong theid)
{
if (theid) {
TCollection_BaseSequence* theobj = (TCollection_BaseSequence*) 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 <CASCADESamplesJni_TCollection_BasicMap.h>
#include <TCollection_BasicMap.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_CASCADESamplesJni_TCollection_1BasicMap_FinalizeValue(JNIEnv *, jclass, jlong theid)
{
if (theid) {
TCollection_BasicMap* theobj = (TCollection_BasicMap*) 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 <CASCADESamplesJni_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_CASCADESamplesJni_TCollection_1ExtendedString_FinalizeValue(JNIEnv *, jclass, jlong theid)
{
if (theid) {
TCollection_ExtendedString* theobj = (TCollection_ExtendedString*) theid;
delete theobj;
}
}
}

View File

@@ -0,0 +1,323 @@
// Copyright (C) 1991,1995 by
//
// MATRA DATAVISION, FRANCE
//
// This software is furnished in accordance with the terms and conditions
// of the contract and with the inclusion of the above copyright notice.
// This software or any other copy thereof may not be provided or otherwise
// be made available to any other person. No title to an ownership of the
// software is hereby transferred.
//
// At the termination of the contract, the software and all copies of this
// software must be deleted.
#include <CASCADESamplesJni_TShort_Array1OfShortReal.h>
#include <TShort_Array1OfShortReal.hxx>
#include <jcas.hxx>
#include <stdlib.h>
#include <Standard_ErrorHandler.hxx>
#include <Standard_SStream.hxx>
#include <Standard_Integer.hxx>
#include <Standard_ShortReal.hxx>
#include <Standard_Boolean.hxx>
extern "C" {
JNIEXPORT void JNICALL Java_CASCADESamplesJni_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,GetSString(Err));
}
}
alock.Release();
}
JNIEXPORT void JNICALL Java_CASCADESamplesJni_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,GetSString(Err));
}
}
alock.Release();
}
JNIEXPORT void JNICALL Java_CASCADESamplesJni_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,GetSString(Err));
}
}
alock.Release();
}
JNIEXPORT void JNICALL Java_CASCADESamplesJni_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,GetSString(Err));
}
}
alock.Release();
}
JNIEXPORT jboolean JNICALL Java_CASCADESamplesJni_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,GetSString(Err));
}
}
alock.Release();
return thejret;
}
JNIEXPORT jobject JNICALL Java_CASCADESamplesJni_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);
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,GetSString(Err));
}
}
alock.Release();
return thejret;
}
JNIEXPORT jint JNICALL Java_CASCADESamplesJni_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,GetSString(Err));
}
}
alock.Release();
return thejret;
}
JNIEXPORT jint JNICALL Java_CASCADESamplesJni_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,GetSString(Err));
}
}
alock.Release();
return thejret;
}
JNIEXPORT jint JNICALL Java_CASCADESamplesJni_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,GetSString(Err));
}
}
alock.Release();
return thejret;
}
JNIEXPORT void JNICALL Java_CASCADESamplesJni_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,GetSString(Err));
}
}
alock.Release();
}
JNIEXPORT jfloat JNICALL Java_CASCADESamplesJni_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,GetSString(Err));
}
}
alock.Release();
return thejret;
}
JNIEXPORT jfloat JNICALL Java_CASCADESamplesJni_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,GetSString(Err));
}
}
alock.Release();
return thejret;
}
JNIEXPORT void JNICALL Java_CASCADESamplesJni_TShort_1Array1OfShortReal_FinalizeValue(JNIEnv *, jclass, jlong theid)
{
if (theid) {
TShort_Array1OfShortReal* theobj = (TShort_Array1OfShortReal*) 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 <CASCADESamplesJni_TopLoc_Location.h>
#include <TopLoc_Location.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_CASCADESamplesJni_TopLoc_1Location_FinalizeValue(JNIEnv *, jclass, jlong theid)
{
if (theid) {
TopLoc_Location* theobj = (TopLoc_Location*) theid;
delete theobj;
}
}
}

File diff suppressed because it is too large Load Diff

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 <CASCADESamplesJni_TopoDS_TShape.h>
#include <TopoDS_TShape.hxx>
#include <jcas.hxx>
#include <stdlib.h>
#include <Standard_ErrorHandler.hxx>
#include <Standard_Failure.hxx>
#include <Standard_SStream.hxx>
extern "C" {
}

File diff suppressed because it is too large Load Diff

View File

@@ -0,0 +1,961 @@
//
// 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 <CASCADESamplesJni_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>
#include <Aspect_GraphicDevice.hxx>
#include <Standard_ExtString.hxx>
#include <Standard_CString.hxx>
#include <Graphic2d_View.hxx>
#include <V2d_View.hxx>
#include <Aspect_ColorMap.hxx>
#include <Aspect_TypeMap.hxx>
#include <Aspect_WidthMap.hxx>
#include <Aspect_FontMap.hxx>
#include <Standard_Boolean.hxx>
#include <Aspect_MarkMap.hxx>
#include <Standard_Integer.hxx>
#include <Quantity_NameOfColor.hxx>
#include <Aspect_GridType.hxx>
#include <Standard_Real.hxx>
#include <Aspect_GridDrawMode.hxx>
#include <Quantity_Color.hxx>
extern "C" {
JNIEXPORT void JNICALL Java_CASCADESamplesJni_V2d_1Viewer_V2d_1Viewer_1Create_11 (JNIEnv *env, jobject theobj, jobject aGraphicDevice, jstring aName, jobject aDomain)
{
jcas_Locking alock(env);
{
try {
Handle( Aspect_GraphicDevice ) the_aGraphicDevice;
void* ptr_aGraphicDevice = jcas_GetHandle(env,aGraphicDevice);
if ( ptr_aGraphicDevice != NULL ) the_aGraphicDevice = *( ( Handle( Aspect_GraphicDevice )* )ptr_aGraphicDevice );
Standard_ExtString the_aName = jcas_ConvertToExtString(env,aName);
Standard_CString the_aDomain = jcas_ConvertToCString(env,aDomain);
Handle(V2d_Viewer)* theret = new Handle(V2d_Viewer);
*theret = new V2d_Viewer(the_aGraphicDevice,the_aName,the_aDomain);
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_CASCADESamplesJni_V2d_1Viewer_V2d_1Viewer_1Create_12 (JNIEnv *env, jobject theobj, jobject aGraphicDevice, jobject aView, jstring aName, jobject aDomain)
{
jcas_Locking alock(env);
{
try {
Handle( Aspect_GraphicDevice ) the_aGraphicDevice;
void* ptr_aGraphicDevice = jcas_GetHandle(env,aGraphicDevice);
if ( ptr_aGraphicDevice != NULL ) the_aGraphicDevice = *( ( Handle( Aspect_GraphicDevice )* )ptr_aGraphicDevice );
Handle( Graphic2d_View ) the_aView;
void* ptr_aView = jcas_GetHandle(env,aView);
if ( ptr_aView != NULL ) the_aView = *( ( Handle( Graphic2d_View )* )ptr_aView );
Standard_ExtString the_aName = jcas_ConvertToExtString(env,aName);
Standard_CString the_aDomain = jcas_ConvertToCString(env,aDomain);
Handle(V2d_Viewer)* theret = new Handle(V2d_Viewer);
*theret = new V2d_Viewer(the_aGraphicDevice,the_aView,the_aName,the_aDomain);
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_CASCADESamplesJni_V2d_1Viewer_AddView (JNIEnv *env, jobject theobj, jobject aView)
{
jcas_Locking alock(env);
{
try {
Handle( V2d_View ) the_aView;
void* ptr_aView = jcas_GetHandle(env,aView);
if ( ptr_aView != NULL ) the_aView = *( ( Handle( V2d_View )* )ptr_aView );
Handle(V2d_Viewer) the_this = *((Handle(V2d_Viewer)*) jcas_GetHandle(env,theobj));
the_this->AddView(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_CASCADESamplesJni_V2d_1Viewer_RemoveView (JNIEnv *env, jobject theobj, jobject aView)
{
jcas_Locking alock(env);
{
try {
Handle( V2d_View ) the_aView;
void* ptr_aView = jcas_GetHandle(env,aView);
if ( ptr_aView != NULL ) the_aView = *( ( Handle( V2d_View )* )ptr_aView );
Handle(V2d_Viewer) the_this = *((Handle(V2d_Viewer)*) jcas_GetHandle(env,theobj));
the_this->RemoveView(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_CASCADESamplesJni_V2d_1Viewer_Update (JNIEnv *env, jobject theobj)
{
jcas_Locking alock(env);
{
try {
Handle(V2d_Viewer) the_this = *((Handle(V2d_Viewer)*) jcas_GetHandle(env,theobj));
the_this->Update();
}
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_CASCADESamplesJni_V2d_1Viewer_UpdateNew (JNIEnv *env, jobject theobj)
{
jcas_Locking alock(env);
{
try {
Handle(V2d_Viewer) the_this = *((Handle(V2d_Viewer)*) jcas_GetHandle(env,theobj));
the_this->UpdateNew();
}
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_CASCADESamplesJni_V2d_1Viewer_SetColorMap (JNIEnv *env, jobject theobj, jobject aColorMap)
{
jcas_Locking alock(env);
{
try {
Handle( Aspect_ColorMap ) the_aColorMap;
void* ptr_aColorMap = jcas_GetHandle(env,aColorMap);
if ( ptr_aColorMap != NULL ) the_aColorMap = *( ( Handle( Aspect_ColorMap )* )ptr_aColorMap );
Handle(V2d_Viewer) the_this = *((Handle(V2d_Viewer)*) jcas_GetHandle(env,theobj));
the_this->SetColorMap(the_aColorMap);
}
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_CASCADESamplesJni_V2d_1Viewer_SetTypeMap (JNIEnv *env, jobject theobj, jobject aTypeMap)
{
jcas_Locking alock(env);
{
try {
Handle( Aspect_TypeMap ) the_aTypeMap;
void* ptr_aTypeMap = jcas_GetHandle(env,aTypeMap);
if ( ptr_aTypeMap != NULL ) the_aTypeMap = *( ( Handle( Aspect_TypeMap )* )ptr_aTypeMap );
Handle(V2d_Viewer) the_this = *((Handle(V2d_Viewer)*) jcas_GetHandle(env,theobj));
the_this->SetTypeMap(the_aTypeMap);
}
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_CASCADESamplesJni_V2d_1Viewer_SetWidthMap (JNIEnv *env, jobject theobj, jobject aWidthMap)
{
jcas_Locking alock(env);
{
try {
Handle( Aspect_WidthMap ) the_aWidthMap;
void* ptr_aWidthMap = jcas_GetHandle(env,aWidthMap);
if ( ptr_aWidthMap != NULL ) the_aWidthMap = *( ( Handle( Aspect_WidthMap )* )ptr_aWidthMap );
Handle(V2d_Viewer) the_this = *((Handle(V2d_Viewer)*) jcas_GetHandle(env,theobj));
the_this->SetWidthMap(the_aWidthMap);
}
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_CASCADESamplesJni_V2d_1Viewer_SetFontMap (JNIEnv *env, jobject theobj, jobject aFontMap, jboolean useMFT)
{
jcas_Locking alock(env);
{
try {
Handle( Aspect_FontMap ) the_aFontMap;
void* ptr_aFontMap = jcas_GetHandle(env,aFontMap);
if ( ptr_aFontMap != NULL ) the_aFontMap = *( ( Handle( Aspect_FontMap )* )ptr_aFontMap );
Handle(V2d_Viewer) the_this = *((Handle(V2d_Viewer)*) jcas_GetHandle(env,theobj));
the_this->SetFontMap(the_aFontMap,(Standard_Boolean) useMFT);
}
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_CASCADESamplesJni_V2d_1Viewer_SetMarkMap (JNIEnv *env, jobject theobj, jobject aMarkMap)
{
jcas_Locking alock(env);
{
try {
Handle( Aspect_MarkMap ) the_aMarkMap;
void* ptr_aMarkMap = jcas_GetHandle(env,aMarkMap);
if ( ptr_aMarkMap != NULL ) the_aMarkMap = *( ( Handle( Aspect_MarkMap )* )ptr_aMarkMap );
Handle(V2d_Viewer) the_this = *((Handle(V2d_Viewer)*) jcas_GetHandle(env,theobj));
the_this->SetMarkMap(the_aMarkMap);
}
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_CASCADESamplesJni_V2d_1Viewer_ColorMap (JNIEnv *env, jobject theobj)
{
jobject thejret;
jcas_Locking alock(env);
{
try {
Handle(V2d_Viewer) the_this = *((Handle(V2d_Viewer)*) jcas_GetHandle(env,theobj));
Handle(Aspect_ColorMap)* theret = new Handle(Aspect_ColorMap);
*theret = the_this->ColorMap();
thejret = jcas_CreateObject(env,"CASCADESamplesJni/Aspect_ColorMap",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_CASCADESamplesJni_V2d_1Viewer_TypeMap (JNIEnv *env, jobject theobj)
{
jobject thejret;
jcas_Locking alock(env);
{
try {
Handle(V2d_Viewer) the_this = *((Handle(V2d_Viewer)*) jcas_GetHandle(env,theobj));
Handle(Aspect_TypeMap)* theret = new Handle(Aspect_TypeMap);
*theret = the_this->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_CASCADESamplesJni_V2d_1Viewer_WidthMap (JNIEnv *env, jobject theobj)
{
jobject thejret;
jcas_Locking alock(env);
{
try {
Handle(V2d_Viewer) the_this = *((Handle(V2d_Viewer)*) jcas_GetHandle(env,theobj));
Handle(Aspect_WidthMap)* theret = new Handle(Aspect_WidthMap);
*theret = the_this->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_CASCADESamplesJni_V2d_1Viewer_FontMap (JNIEnv *env, jobject theobj)
{
jobject thejret;
jcas_Locking alock(env);
{
try {
Handle(V2d_Viewer) the_this = *((Handle(V2d_Viewer)*) jcas_GetHandle(env,theobj));
Handle(Aspect_FontMap)* theret = new Handle(Aspect_FontMap);
*theret = the_this->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_CASCADESamplesJni_V2d_1Viewer_MarkMap (JNIEnv *env, jobject theobj)
{
jobject thejret;
jcas_Locking alock(env);
{
try {
Handle(V2d_Viewer) the_this = *((Handle(V2d_Viewer)*) jcas_GetHandle(env,theobj));
Handle(Aspect_MarkMap)* theret = new Handle(Aspect_MarkMap);
*theret = the_this->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 jboolean JNICALL Java_CASCADESamplesJni_V2d_1Viewer_UseMFT (JNIEnv *env, jobject theobj)
{
jboolean thejret;
jcas_Locking alock(env);
{
try {
Handle(V2d_Viewer) the_this = *((Handle(V2d_Viewer)*) jcas_GetHandle(env,theobj));
thejret = the_this->UseMFT();
}
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_CASCADESamplesJni_V2d_1Viewer_View (JNIEnv *env, jobject theobj)
{
jobject thejret;
jcas_Locking alock(env);
{
try {
Handle(V2d_Viewer) the_this = *((Handle(V2d_Viewer)*) jcas_GetHandle(env,theobj));
Handle(Graphic2d_View)* theret = new Handle(Graphic2d_View);
*theret = the_this->View();
thejret = jcas_CreateObject(env,"CASCADESamplesJni/Graphic2d_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 jint JNICALL Java_CASCADESamplesJni_V2d_1Viewer_InitializeColor (JNIEnv *env, jobject theobj, jshort aColor)
{
jint thejret;
jcas_Locking alock(env);
{
try {
Handle(V2d_Viewer) the_this = *((Handle(V2d_Viewer)*) jcas_GetHandle(env,theobj));
thejret = the_this->InitializeColor((Quantity_NameOfColor) 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_CASCADESamplesJni_V2d_1Viewer_InitActiveViews (JNIEnv *env, jobject theobj)
{
jcas_Locking alock(env);
{
try {
Handle(V2d_Viewer) the_this = *((Handle(V2d_Viewer)*) jcas_GetHandle(env,theobj));
the_this->InitActiveViews();
}
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_CASCADESamplesJni_V2d_1Viewer_MoreActiveViews (JNIEnv *env, jobject theobj)
{
jboolean thejret;
jcas_Locking alock(env);
{
try {
Handle(V2d_Viewer) the_this = *((Handle(V2d_Viewer)*) jcas_GetHandle(env,theobj));
thejret = the_this->MoreActiveViews();
}
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_CASCADESamplesJni_V2d_1Viewer_NextActiveViews (JNIEnv *env, jobject theobj)
{
jcas_Locking alock(env);
{
try {
Handle(V2d_Viewer) the_this = *((Handle(V2d_Viewer)*) jcas_GetHandle(env,theobj));
the_this->NextActiveViews();
}
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_CASCADESamplesJni_V2d_1Viewer_ActiveView (JNIEnv *env, jobject theobj)
{
jobject thejret;
jcas_Locking alock(env);
{
try {
Handle(V2d_Viewer) the_this = *((Handle(V2d_Viewer)*) jcas_GetHandle(env,theobj));
Handle(V2d_View)* theret = new Handle(V2d_View);
*theret = the_this->ActiveView();
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 jboolean JNICALL Java_CASCADESamplesJni_V2d_1Viewer_IsEmpty (JNIEnv *env, jobject theobj)
{
jboolean thejret;
jcas_Locking alock(env);
{
try {
Handle(V2d_Viewer) the_this = *((Handle(V2d_Viewer)*) jcas_GetHandle(env,theobj));
thejret = the_this->IsEmpty();
}
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_CASCADESamplesJni_V2d_1Viewer_GridType (JNIEnv *env, jobject theobj)
{
jshort thejret;
jcas_Locking alock(env);
{
try {
Handle(V2d_Viewer) the_this = *((Handle(V2d_Viewer)*) jcas_GetHandle(env,theobj));
thejret = the_this->GridType();
}
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_CASCADESamplesJni_V2d_1Viewer_Hit (JNIEnv *env, jobject theobj, jdouble X, jdouble Y, jobject gx, jobject gy)
{
jcas_Locking alock(env);
{
try {
Standard_Real the_gx = jcas_GetReal(env,gx);
Standard_Real the_gy = jcas_GetReal(env,gy);
Handle(V2d_Viewer) the_this = *((Handle(V2d_Viewer)*) jcas_GetHandle(env,theobj));
the_this->Hit((Quantity_Length) X,(Quantity_Length) Y,the_gx,the_gy);
jcas_SetReal(env,gx,the_gx);
jcas_SetReal(env,gy,the_gy);
}
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_CASCADESamplesJni_V2d_1Viewer_ActivateGrid (JNIEnv *env, jobject theobj, jshort aGridType, jshort aGridDrawMode)
{
jcas_Locking alock(env);
{
try {
Handle(V2d_Viewer) the_this = *((Handle(V2d_Viewer)*) jcas_GetHandle(env,theobj));
the_this->ActivateGrid((Aspect_GridType) aGridType,(Aspect_GridDrawMode) aGridDrawMode);
}
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_CASCADESamplesJni_V2d_1Viewer_DeactivateGrid (JNIEnv *env, jobject theobj)
{
jcas_Locking alock(env);
{
try {
Handle(V2d_Viewer) the_this = *((Handle(V2d_Viewer)*) jcas_GetHandle(env,theobj));
the_this->DeactivateGrid();
}
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_CASCADESamplesJni_V2d_1Viewer_IsActive (JNIEnv *env, jobject theobj)
{
jboolean thejret;
jcas_Locking alock(env);
{
try {
Handle(V2d_Viewer) the_this = *((Handle(V2d_Viewer)*) jcas_GetHandle(env,theobj));
thejret = the_this->IsActive();
}
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_CASCADESamplesJni_V2d_1Viewer_RectangularGridValues (JNIEnv *env, jobject theobj, jobject XOrigin, jobject YOrigin, jobject XStep, jobject YStep, jobject RotationAngle)
{
jcas_Locking alock(env);
{
try {
Standard_Real the_XOrigin = jcas_GetReal(env,XOrigin);
Standard_Real the_YOrigin = jcas_GetReal(env,YOrigin);
Standard_Real the_XStep = jcas_GetReal(env,XStep);
Standard_Real the_YStep = jcas_GetReal(env,YStep);
Standard_Real the_RotationAngle = jcas_GetReal(env,RotationAngle);
Handle(V2d_Viewer) the_this = *((Handle(V2d_Viewer)*) jcas_GetHandle(env,theobj));
the_this->RectangularGridValues(the_XOrigin,the_YOrigin,the_XStep,the_YStep,the_RotationAngle);
jcas_SetReal(env,XOrigin,the_XOrigin);
jcas_SetReal(env,YOrigin,the_YOrigin);
jcas_SetReal(env,XStep,the_XStep);
jcas_SetReal(env,YStep,the_YStep);
jcas_SetReal(env,RotationAngle,the_RotationAngle);
}
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_CASCADESamplesJni_V2d_1Viewer_SetRectangularGridValues (JNIEnv *env, jobject theobj, jdouble XOrigin, jdouble YOrigin, jdouble XStep, jdouble YStep, jdouble RotationAngle)
{
jcas_Locking alock(env);
{
try {
Handle(V2d_Viewer) the_this = *((Handle(V2d_Viewer)*) jcas_GetHandle(env,theobj));
the_this->SetRectangularGridValues((Quantity_Length) XOrigin,(Quantity_Length) YOrigin,(Quantity_Length) XStep,(Quantity_Length) YStep,(Quantity_PlaneAngle) RotationAngle);
}
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_CASCADESamplesJni_V2d_1Viewer_CircularGridValues (JNIEnv *env, jobject theobj, jobject XOrigin, jobject YOrigin, jobject RadiusStep, jobject DivisionNumber, jobject RotationAngle)
{
jcas_Locking alock(env);
{
try {
Standard_Real the_XOrigin = jcas_GetReal(env,XOrigin);
Standard_Real the_YOrigin = jcas_GetReal(env,YOrigin);
Standard_Real the_RadiusStep = jcas_GetReal(env,RadiusStep);
Standard_Integer the_DivisionNumber = jcas_GetInteger(env,DivisionNumber);
Standard_Real the_RotationAngle = jcas_GetReal(env,RotationAngle);
Handle(V2d_Viewer) the_this = *((Handle(V2d_Viewer)*) jcas_GetHandle(env,theobj));
the_this->CircularGridValues(the_XOrigin,the_YOrigin,the_RadiusStep,the_DivisionNumber,the_RotationAngle);
jcas_SetReal(env,XOrigin,the_XOrigin);
jcas_SetReal(env,YOrigin,the_YOrigin);
jcas_SetReal(env,RadiusStep,the_RadiusStep);
jcas_SetInteger(env,DivisionNumber,the_DivisionNumber);
jcas_SetReal(env,RotationAngle,the_RotationAngle);
}
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_CASCADESamplesJni_V2d_1Viewer_SetCircularGridValues (JNIEnv *env, jobject theobj, jdouble XOrigin, jdouble YOrigin, jdouble RadiusStep, jint DivisionNumber, jdouble RotationAngle)
{
jcas_Locking alock(env);
{
try {
Handle(V2d_Viewer) the_this = *((Handle(V2d_Viewer)*) jcas_GetHandle(env,theobj));
the_this->SetCircularGridValues((Quantity_Length) XOrigin,(Quantity_Length) YOrigin,(Quantity_Length) RadiusStep,(Standard_Integer) DivisionNumber,(Quantity_PlaneAngle) RotationAngle);
}
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_CASCADESamplesJni_V2d_1Viewer_SetGridColor (JNIEnv *env, jobject theobj, jobject color1, jobject color2)
{
jcas_Locking alock(env);
{
try {
Quantity_Color* the_color1 = (Quantity_Color*) jcas_GetHandle(env,color1);
if ( the_color1 == 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_color1 = new Quantity_Color ();
// jcas_SetHandle ( env, color1, the_color1 );
jcas_ThrowException (env, "NULL object has been passed while expecting an object manipulated by value");
} // end if
Quantity_Color* the_color2 = (Quantity_Color*) jcas_GetHandle(env,color2);
if ( the_color2 == 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_color2 = new Quantity_Color ();
// jcas_SetHandle ( env, color2, the_color2 );
jcas_ThrowException (env, "NULL object has been passed while expecting an object manipulated by value");
} // end if
Handle(V2d_Viewer) the_this = *((Handle(V2d_Viewer)*) jcas_GetHandle(env,theobj));
the_this->SetGridColor(*the_color1,*the_color2);
}
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,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 <CASCADESamplesJni_V3d_Light.h>
#include <V3d_Light.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,158 @@
//
// 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 <CASCADESamplesJni_V3d_OrthographicView.h>
#include <V3d_OrthographicView.hxx>
#include <jcas.hxx>
#include <stdlib.h>
#include <Standard_ErrorHandler.hxx>
#include <Standard_Failure.hxx>
#include <Standard_SStream.hxx>
#include <V3d_Viewer.hxx>
#include <V3d_PerspectiveView.hxx>
extern "C" {
JNIEXPORT void JNICALL Java_CASCADESamplesJni_V3d_1OrthographicView_V3d_1OrthographicView_1Create_11 (JNIEnv *env, jobject theobj, jobject VM)
{
jcas_Locking alock(env);
{
try {
Handle( V3d_Viewer ) the_VM;
void* ptr_VM = jcas_GetHandle(env,VM);
if ( ptr_VM != NULL ) the_VM = *( ( Handle( V3d_Viewer )* )ptr_VM );
Handle(V3d_OrthographicView)* theret = new Handle(V3d_OrthographicView);
*theret = new V3d_OrthographicView(the_VM);
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_CASCADESamplesJni_V3d_1OrthographicView_V3d_1OrthographicView_1Create_12 (JNIEnv *env, jobject theobj, jobject VM, jobject V)
{
jcas_Locking alock(env);
{
try {
Handle( V3d_Viewer ) the_VM;
void* ptr_VM = jcas_GetHandle(env,VM);
if ( ptr_VM != NULL ) the_VM = *( ( Handle( V3d_Viewer )* )ptr_VM );
Handle( V3d_PerspectiveView ) the_V;
void* ptr_V = jcas_GetHandle(env,V);
if ( ptr_V != NULL ) the_V = *( ( Handle( V3d_PerspectiveView )* )ptr_V );
Handle(V3d_OrthographicView)* theret = new Handle(V3d_OrthographicView);
*theret = new V3d_OrthographicView(the_VM,the_V);
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_CASCADESamplesJni_V3d_1OrthographicView_V3d_1OrthographicView_1Create_13 (JNIEnv *env, jobject theobj, jobject VM, jobject V)
{
jcas_Locking alock(env);
{
try {
Handle( V3d_Viewer ) the_VM;
void* ptr_VM = jcas_GetHandle(env,VM);
if ( ptr_VM != NULL ) the_VM = *( ( Handle( V3d_Viewer )* )ptr_VM );
Handle( V3d_OrthographicView ) the_V;
void* ptr_V = jcas_GetHandle(env,V);
if ( ptr_V != NULL ) the_V = *( ( Handle( V3d_OrthographicView )* )ptr_V );
Handle(V3d_OrthographicView)* theret = new Handle(V3d_OrthographicView);
*theret = new V3d_OrthographicView(the_VM,the_V);
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_CASCADESamplesJni_V3d_1OrthographicView_Copy (JNIEnv *env, jobject theobj)
{
jobject thejret;
jcas_Locking alock(env);
{
try {
Handle(V3d_OrthographicView) the_this = *((Handle(V3d_OrthographicView)*) jcas_GetHandle(env,theobj));
Handle(V3d_OrthographicView)* theret = new Handle(V3d_OrthographicView);
*theret = the_this->Copy();
thejret = jcas_CreateObject(env,"CASCADESamplesJni/V3d_OrthographicView",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,206 @@
//
// 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 <CASCADESamplesJni_V3d_PerspectiveView.h>
#include <V3d_PerspectiveView.hxx>
#include <jcas.hxx>
#include <stdlib.h>
#include <Standard_ErrorHandler.hxx>
#include <Standard_Failure.hxx>
#include <Standard_SStream.hxx>
#include <V3d_Viewer.hxx>
#include <V3d_OrthographicView.hxx>
#include <Standard_Real.hxx>
extern "C" {
JNIEXPORT void JNICALL Java_CASCADESamplesJni_V3d_1PerspectiveView_V3d_1PerspectiveView_1Create_11 (JNIEnv *env, jobject theobj, jobject VM)
{
jcas_Locking alock(env);
{
try {
Handle( V3d_Viewer ) the_VM;
void* ptr_VM = jcas_GetHandle(env,VM);
if ( ptr_VM != NULL ) the_VM = *( ( Handle( V3d_Viewer )* )ptr_VM );
Handle(V3d_PerspectiveView)* theret = new Handle(V3d_PerspectiveView);
*theret = new V3d_PerspectiveView(the_VM);
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_CASCADESamplesJni_V3d_1PerspectiveView_V3d_1PerspectiveView_1Create_12 (JNIEnv *env, jobject theobj, jobject VM, jobject V)
{
jcas_Locking alock(env);
{
try {
Handle( V3d_Viewer ) the_VM;
void* ptr_VM = jcas_GetHandle(env,VM);
if ( ptr_VM != NULL ) the_VM = *( ( Handle( V3d_Viewer )* )ptr_VM );
Handle( V3d_OrthographicView ) the_V;
void* ptr_V = jcas_GetHandle(env,V);
if ( ptr_V != NULL ) the_V = *( ( Handle( V3d_OrthographicView )* )ptr_V );
Handle(V3d_PerspectiveView)* theret = new Handle(V3d_PerspectiveView);
*theret = new V3d_PerspectiveView(the_VM,the_V);
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_CASCADESamplesJni_V3d_1PerspectiveView_V3d_1PerspectiveView_1Create_13 (JNIEnv *env, jobject theobj, jobject VM, jobject V)
{
jcas_Locking alock(env);
{
try {
Handle( V3d_Viewer ) the_VM;
void* ptr_VM = jcas_GetHandle(env,VM);
if ( ptr_VM != NULL ) the_VM = *( ( Handle( V3d_Viewer )* )ptr_VM );
Handle( V3d_PerspectiveView ) the_V;
void* ptr_V = jcas_GetHandle(env,V);
if ( ptr_V != NULL ) the_V = *( ( Handle( V3d_PerspectiveView )* )ptr_V );
Handle(V3d_PerspectiveView)* theret = new Handle(V3d_PerspectiveView);
*theret = new V3d_PerspectiveView(the_VM,the_V);
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_CASCADESamplesJni_V3d_1PerspectiveView_Copy (JNIEnv *env, jobject theobj)
{
jobject thejret;
jcas_Locking alock(env);
{
try {
Handle(V3d_PerspectiveView) the_this = *((Handle(V3d_PerspectiveView)*) jcas_GetHandle(env,theobj));
Handle(V3d_PerspectiveView)* theret = new Handle(V3d_PerspectiveView);
*theret = the_this->Copy();
thejret = jcas_CreateObject(env,"CASCADESamplesJni/V3d_PerspectiveView",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_CASCADESamplesJni_V3d_1PerspectiveView_SetAngle (JNIEnv *env, jobject theobj, jdouble Angle)
{
jcas_Locking alock(env);
{
try {
Handle(V3d_PerspectiveView) the_this = *((Handle(V3d_PerspectiveView)*) jcas_GetHandle(env,theobj));
the_this->SetAngle((Quantity_PlaneAngle) Angle);
}
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_CASCADESamplesJni_V3d_1PerspectiveView_Angle (JNIEnv *env, jobject theobj)
{
jdouble thejret;
jcas_Locking alock(env);
{
try {
Handle(V3d_PerspectiveView) the_this = *((Handle(V3d_PerspectiveView)*) jcas_GetHandle(env,theobj));
thejret = the_this->Angle();
}
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 <CASCADESamplesJni_V3d_Plane.h>
#include <V3d_Plane.hxx>
#include <jcas.hxx>
#include <stdlib.h>
#include <Standard_ErrorHandler.hxx>
#include <Standard_Failure.hxx>
#include <Standard_SStream.hxx>
extern "C" {
}

File diff suppressed because it is too large Load Diff

File diff suppressed because it is too large Load Diff

View File

@@ -0,0 +1,129 @@
//
// 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 <CASCADESamplesJni_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>
#include <Standard_Boolean.hxx>
#include <Standard_Integer.hxx>
#include <Standard_Real.hxx>
extern "C" {
JNIEXPORT void JNICALL Java_CASCADESamplesJni_Viewer_1View_Update (JNIEnv *env, jobject theobj)
{
jcas_Locking alock(env);
{
try {
Handle(Viewer_View) the_this = *((Handle(Viewer_View)*) jcas_GetHandle(env,theobj));
the_this->Update();
}
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_CASCADESamplesJni_Viewer_1View_SetImmediateUpdate (JNIEnv *env, jobject theobj, jboolean onoff)
{
jboolean thejret;
jcas_Locking alock(env);
{
try {
Handle(Viewer_View) the_this = *((Handle(Viewer_View)*) jcas_GetHandle(env,theobj));
thejret = the_this->SetImmediateUpdate((Standard_Boolean) onoff);
}
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_CASCADESamplesJni_Viewer_1View_WindowFit (JNIEnv *env, jobject theobj, jint Xmin, jint Ymin, jint Xmax, jint Ymax)
{
jcas_Locking alock(env);
{
try {
Handle(Viewer_View) the_this = *((Handle(Viewer_View)*) jcas_GetHandle(env,theobj));
the_this->WindowFit((Standard_Integer) Xmin,(Standard_Integer) Ymin,(Standard_Integer) Xmax,(Standard_Integer) Ymax);
}
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_CASCADESamplesJni_Viewer_1View_Place (JNIEnv *env, jobject theobj, jint x, jint y, jdouble aZoomFactor)
{
jcas_Locking alock(env);
{
try {
Handle(Viewer_View) the_this = *((Handle(Viewer_View)*) jcas_GetHandle(env,theobj));
the_this->Place((Standard_Integer) x,(Standard_Integer) y,(Quantity_Factor) aZoomFactor);
}
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,137 @@
//
// 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 <CASCADESamplesJni_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>
#include <Aspect_GraphicDevice.hxx>
#include <Standard_ExtString.hxx>
#include <Standard_CString.hxx>
extern "C" {
JNIEXPORT void JNICALL Java_CASCADESamplesJni_Viewer_1Viewer_Update (JNIEnv *env, jobject theobj)
{
jcas_Locking alock(env);
{
try {
Handle(Viewer_Viewer) the_this = *((Handle(Viewer_Viewer)*) jcas_GetHandle(env,theobj));
the_this->Update();
}
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_CASCADESamplesJni_Viewer_1Viewer_Device (JNIEnv *env, jobject theobj)
{
jobject thejret;
jcas_Locking alock(env);
{
try {
Handle(Viewer_Viewer) the_this = *((Handle(Viewer_Viewer)*) jcas_GetHandle(env,theobj));
Handle(Aspect_GraphicDevice)* theret = new Handle(Aspect_GraphicDevice);
*theret = the_this->Device();
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 jstring JNICALL Java_CASCADESamplesJni_Viewer_1Viewer_NextName (JNIEnv *env, jobject theobj)
{
jstring thejret;
jcas_Locking alock(env);
{
try {
Handle(Viewer_Viewer) the_this = *((Handle(Viewer_Viewer)*) jcas_GetHandle(env,theobj));
Standard_ExtString sret = the_this->NextName();
thejret = jcas_ConvertTojstring(env,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 jobject JNICALL Java_CASCADESamplesJni_Viewer_1Viewer_Domain (JNIEnv *env, jobject theobj)
{
jobject thejret;
jcas_Locking alock(env);
{
try {
Handle(Viewer_Viewer) the_this = *((Handle(Viewer_Viewer)*) jcas_GetHandle(env,theobj));
Standard_CString sret = the_this->Domain();
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;
}
}

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 <CASCADESamplesJni_Visual3d_ViewManager.h>
#include <Visual3d_ViewManager.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 <CASCADESamplesJni_Visual3d_View.h>
#include <Visual3d_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,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 <CASCADESamplesJni_gp_Ax3.h>
#include <gp_Ax3.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_CASCADESamplesJni_gp_1Ax3_FinalizeValue(JNIEnv *, jclass, jlong theid)
{
if (theid) {
gp_Ax3* theobj = (gp_Ax3*) 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 <CASCADESamplesJni_gp_Pnt.h>
#include <gp_Pnt.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_CASCADESamplesJni_gp_1Pnt_FinalizeValue(JNIEnv *, jclass, jlong theid)
{
if (theid) {
gp_Pnt* theobj = (gp_Pnt*) theid;
delete theobj;
}
}
}