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