Integration of OCCT 6.5.0 from SVN
[occt.git] / samples / java / java / CASCADESamplesJni / V2d_Viewer.java
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.Aspect_GraphicDevice;
21 import jcas.Standard_ExtString;
22 import jcas.Standard_CString;
23 import CASCADESamplesJni.Graphic2d_View;
24 import CASCADESamplesJni.V2d_View;
25 import CASCADESamplesJni.Aspect_GenericColorMap;
26 import CASCADESamplesJni.Aspect_TypeMap;
27 import CASCADESamplesJni.Aspect_WidthMap;
28 import CASCADESamplesJni.Aspect_FontMap;
29 import jcas.Standard_Boolean;
30 import CASCADESamplesJni.Aspect_MarkMap;
31 import jcas.Standard_Integer;
32 import CASCADESamplesJni.Quantity_NameOfColor;
33 import jcas.Standard_Short;
34 import CASCADESamplesJni.Aspect_GridType;
35 import jcas.Standard_Real;
36 import CASCADESamplesJni.Aspect_GridDrawMode;
37
38
39 public class V2d_Viewer extends CASCADESamplesJni.Viewer_Viewer {
40
41  static {
42     System.loadLibrary("CASCADESamplesJni");
43  }
44             
45 public V2d_Viewer(Aspect_GraphicDevice aGraphicDevice,String aName,Standard_CString aDomain) {
46    V2d_Viewer_Create_1(aGraphicDevice,aName,aDomain);
47 }
48
49 private final native void V2d_Viewer_Create_1(Aspect_GraphicDevice aGraphicDevice,String aName,Standard_CString aDomain);
50
51 public V2d_Viewer(Aspect_GraphicDevice aGraphicDevice,Graphic2d_View aView,String aName,Standard_CString aDomain) {
52    V2d_Viewer_Create_2(aGraphicDevice,aView,aName,aDomain);
53 }
54
55 private final native void V2d_Viewer_Create_2(Aspect_GraphicDevice aGraphicDevice,Graphic2d_View aView,String aName,Standard_CString aDomain);
56
57 native public final void AddView(V2d_View aView);
58 native public final void RemoveView(V2d_View aView);
59 native public final void Update();
60 native public final void UpdateNew();
61 native public final void SetColorMap(Aspect_GenericColorMap aColorMap);
62 native public final void SetTypeMap(Aspect_TypeMap aTypeMap);
63 native public final void SetWidthMap(Aspect_WidthMap aWidthMap);
64 native public final void SetFontMap(Aspect_FontMap aFontMap,boolean useMFT);
65 native public final void SetMarkMap(Aspect_MarkMap aMarkMap);
66 native public final Aspect_GenericColorMap ColorMap();
67 native public final Aspect_TypeMap TypeMap();
68 native public final Aspect_WidthMap WidthMap();
69 native public final Aspect_FontMap FontMap();
70 native public final Aspect_MarkMap MarkMap();
71 native public final boolean UseMFT();
72 native public final Graphic2d_View View();
73 native public final int InitializeColor(short aColor);
74 native public final void InitActiveViews();
75 native public final boolean MoreActiveViews();
76 native public final void NextActiveViews();
77 native public final V2d_View ActiveView();
78 native public final boolean IsEmpty();
79 native public final short GridType();
80 native public final void Hit(double X,double Y,Standard_Real gx,Standard_Real gy);
81 native public final void ActivateGrid(short aGridType,short aGridDrawMode);
82 native public final void DeactivateGrid();
83 native public final boolean IsActive();
84 native public final void RectangularGridValues(Standard_Real XOrigin,Standard_Real YOrigin,Standard_Real XStep,Standard_Real YStep,Standard_Real RotationAngle);
85 native public final void SetRectangularGridValues(double XOrigin,double YOrigin,double XStep,double YStep,double RotationAngle);
86 native public final void CircularGridValues(Standard_Real XOrigin,Standard_Real YOrigin,Standard_Real RadiusStep,Standard_Integer DivisionNumber,Standard_Real RotationAngle);
87 native public final void SetCircularGridValues(double XOrigin,double YOrigin,double RadiusStep,int DivisionNumber,double RotationAngle);
88 public V2d_Viewer() {
89 }
90
91
92
93
94 }