mirror of
https://git.dev.opencascade.org/repos/occt.git
synced 2025-08-09 13:22:24 +03:00
Integration of OCCT 6.5.0 from SVN
This commit is contained in:
37
samples/java/java/SimpleViewer.java
Executable file
37
samples/java/java/SimpleViewer.java
Executable file
@@ -0,0 +1,37 @@
|
||||
|
||||
import java.awt.*;
|
||||
|
||||
// cascade includes
|
||||
import jcas.*;
|
||||
import CASCADESamplesJni.*;
|
||||
import util.*;
|
||||
import SampleGeometryJni.*;
|
||||
|
||||
//****************************************************************************************************************
|
||||
/** */
|
||||
public class SimpleViewer extends Canvas {
|
||||
//****************************************************************************************************************
|
||||
private boolean hasWindow = false;
|
||||
V3d_Viewer myViewer = null;
|
||||
V3d_View myView = null;
|
||||
static{
|
||||
System.out.println("Info: Load NativePaint lib...");
|
||||
System.loadLibrary("TKNativePaint");
|
||||
System.out.println("Info: Loading NativePaint lib done");
|
||||
}
|
||||
|
||||
//================================================================================================================
|
||||
/** */
|
||||
public SimpleViewer(){
|
||||
//================================================================================================================
|
||||
myViewer = SampleGeometryPackage.CreateViewer3d("v3d");
|
||||
myView = myViewer.CreateView();
|
||||
}
|
||||
|
||||
//================================================================================================================
|
||||
/**
|
||||
*/
|
||||
public native void paint(Graphics g);
|
||||
//================================================================================================================
|
||||
|
||||
}
|
Reference in New Issue
Block a user