]>
Commit | Line | Data |
---|---|---|
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 | ||
17 | package CASCADESamplesJni; | |
18 | ||
19 | import jcas.Object; | |
20 | import CASCADESamplesJni.V2d_Viewer; | |
21 | import CASCADESamplesJni.AIS_InteractiveObject; | |
22 | import jcas.Standard_Boolean; | |
23 | import jcas.Standard_Integer; | |
24 | import CASCADESamplesJni.V2d_View; | |
25 | ||
26 | ||
27 | public class ISession2D_InteractiveContext extends CASCADESamplesJni.MMgt_TShared { | |
28 | ||
29 | static { | |
30 | System.loadLibrary("CASCADESamplesJni"); | |
31 | } | |
32 | ||
33 | public ISession2D_InteractiveContext() { | |
34 | ISession2D_InteractiveContext_Create_1(); | |
35 | } | |
36 | ||
37 | private final native void ISession2D_InteractiveContext_Create_1(); | |
38 | ||
39 | public ISession2D_InteractiveContext(V2d_Viewer aViewer) { | |
40 | ISession2D_InteractiveContext_Create_2(aViewer); | |
41 | } | |
42 | ||
43 | private final native void ISession2D_InteractiveContext_Create_2(V2d_Viewer aViewer); | |
44 | ||
45 | native public void Initialize(V2d_Viewer aViewer); | |
46 | public void Display(AIS_InteractiveObject anObject,boolean Redraw) { | |
47 | ISession2D_InteractiveContext_Display_1(anObject,Redraw); | |
48 | } | |
49 | ||
50 | private native void ISession2D_InteractiveContext_Display_1(AIS_InteractiveObject anObject,boolean Redraw); | |
51 | ||
52 | final public void Display(AIS_InteractiveObject anObject,int aDisplayMode,int aSelectionMode,boolean Redraw) { | |
53 | ISession2D_InteractiveContext_Display_2(anObject,aDisplayMode,aSelectionMode,Redraw); | |
54 | } | |
55 | ||
56 | private final native void ISession2D_InteractiveContext_Display_2(AIS_InteractiveObject anObject,int aDisplayMode,int aSelectionMode,boolean Redraw); | |
57 | ||
58 | native public void Erase(AIS_InteractiveObject anObject,boolean Redraw); | |
59 | native public void DisplayAll(boolean Redraw); | |
60 | native public void EraseAll(boolean Redraw); | |
61 | native public boolean IsDisplayed(AIS_InteractiveObject anObject,int aMode); | |
62 | native public void Redisplay(AIS_InteractiveObject anObject,boolean Redraw,boolean allmodes); | |
63 | native public void Clear(AIS_InteractiveObject anObject,boolean Redraw); | |
64 | native public void Remove(AIS_InteractiveObject anObject,boolean Redraw); | |
65 | native public void Highlight(AIS_InteractiveObject anObject,boolean Redraw); | |
66 | native public void Unhighlight(AIS_InteractiveObject anObject,boolean Redraw); | |
67 | native 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 | ||
72 | private 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 | ||
78 | private native void ISession2D_InteractiveContext_Move_2(int x1,int y1,int x2,int y2,V2d_View aView); | |
79 | ||
80 | native public void Pick(boolean MultiSelection); | |
81 | native public final void DisplayAreas(); | |
82 | native public final void ClearAreas(); | |
83 | ||
84 | ||
85 | ||
86 | } |