Adjusting testing cases for current state of OCCT
[occt.git] / samples / java / java / CASCADESamplesJni / ISession2D_InteractiveContext.java
CommitLineData
7fd59977 1// Java Native Class from Cas.Cade
2// Copyright (C) 1991,1999 by
3//
4// MATRA DATAVISION, FRANCE
5//
6// This software is furnished in accordance with the terms and conditions
7// of the contract and with the inclusion of the above copyright notice.
8// This software or any other copy thereof may not be provided or otherwise
9// be made available to any other person. No title to an ownership of the
10// software is hereby transferred.
11//
12// At the termination of the contract, the software and all copies of this
13// software must be deleted.
14//
15
16
17package CASCADESamplesJni;
18
19import jcas.Object;
20import CASCADESamplesJni.V2d_Viewer;
21import CASCADESamplesJni.AIS_InteractiveObject;
22import jcas.Standard_Boolean;
23import jcas.Standard_Integer;
24import CASCADESamplesJni.V2d_View;
25
26
27public class ISession2D_InteractiveContext extends CASCADESamplesJni.MMgt_TShared {
28
29 static {
30 System.loadLibrary("CASCADESamplesJni");
31 }
32
33public ISession2D_InteractiveContext() {
34 ISession2D_InteractiveContext_Create_1();
35}
36
37private final native void ISession2D_InteractiveContext_Create_1();
38
39public ISession2D_InteractiveContext(V2d_Viewer aViewer) {
40 ISession2D_InteractiveContext_Create_2(aViewer);
41}
42
43private final native void ISession2D_InteractiveContext_Create_2(V2d_Viewer aViewer);
44
45native public void Initialize(V2d_Viewer aViewer);
46 public void Display(AIS_InteractiveObject anObject,boolean Redraw) {
47 ISession2D_InteractiveContext_Display_1(anObject,Redraw);
48}
49
50private native void ISession2D_InteractiveContext_Display_1(AIS_InteractiveObject anObject,boolean Redraw);
51
52final public void Display(AIS_InteractiveObject anObject,int aDisplayMode,int aSelectionMode,boolean Redraw) {
53 ISession2D_InteractiveContext_Display_2(anObject,aDisplayMode,aSelectionMode,Redraw);
54}
55
56private final native void ISession2D_InteractiveContext_Display_2(AIS_InteractiveObject anObject,int aDisplayMode,int aSelectionMode,boolean Redraw);
57
58native public void Erase(AIS_InteractiveObject anObject,boolean Redraw);
59native public void DisplayAll(boolean Redraw);
60native public void EraseAll(boolean Redraw);
61native public boolean IsDisplayed(AIS_InteractiveObject anObject,int aMode);
62native public void Redisplay(AIS_InteractiveObject anObject,boolean Redraw,boolean allmodes);
63native public void Clear(AIS_InteractiveObject anObject,boolean Redraw);
64native public void Remove(AIS_InteractiveObject anObject,boolean Redraw);
65native public void Highlight(AIS_InteractiveObject anObject,boolean Redraw);
66native public void Unhighlight(AIS_InteractiveObject anObject,boolean Redraw);
67native public boolean IsHilighted(AIS_InteractiveObject anObject);
68 public void Move(int x1,int y1,V2d_View aView) {
69 ISession2D_InteractiveContext_Move_1(x1,y1,aView);
70}
71
72private native void ISession2D_InteractiveContext_Move_1(int x1,int y1,V2d_View aView);
73
74 public void Move(int x1,int y1,int x2,int y2,V2d_View aView) {
75 ISession2D_InteractiveContext_Move_2(x1,y1,x2,y2,aView);
76}
77
78private native void ISession2D_InteractiveContext_Move_2(int x1,int y1,int x2,int y2,V2d_View aView);
79
80native public void Pick(boolean MultiSelection);
81native public final void DisplayAreas();
82native public final void ClearAreas();
83
84
85
86}