⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 occviewer.java

📁 Wrapper Class For SWT Opencascade
💻 JAVA
字号:
/* ----------------------------------------------------------------------------
 * This file was automatically generated by SWIG (http://www.swig.org).
 * Version 1.3.32
 *
 * Do not make changes to this file unless you know what you are doing--modify
 * the SWIG interface file instead.
 * ----------------------------------------------------------------------------- */


public class OCCViewer {
  private long swigCPtr;
  protected boolean swigCMemOwn;

  protected OCCViewer(long cPtr, boolean cMemoryOwn) {
    swigCMemOwn = cMemoryOwn;
    swigCPtr = cPtr;
  }

  protected static long getCPtr(OCCViewer obj) {
    return (obj == null) ? 0 : obj.swigCPtr;
  }

  protected void finalize() {
    delete();
  }

  public synchronized void delete() {
    if(swigCPtr != 0 && swigCMemOwn) {
      swigCMemOwn = false;
      occjniJNI.delete_OCCViewer(swigCPtr);
    }
    swigCPtr = 0;
  }

  public OCCViewer() {
    this(occjniJNI.new_OCCViewer(), true);
  }

  public boolean InitViewer(int wnd) {
    return occjniJNI.OCCViewer_InitViewer(swigCPtr, this, wnd);
  }

  public void UpdateView() {
    occjniJNI.OCCViewer_UpdateView(swigCPtr, this);
  }

  public void RedrawView() {
    occjniJNI.OCCViewer_RedrawView(swigCPtr, this);
  }

  public void SetDegenerateModeOn() {
    occjniJNI.OCCViewer_SetDegenerateModeOn(swigCPtr, this);
  }

  public void SetDegenerateModeOff() {
    occjniJNI.OCCViewer_SetDegenerateModeOff(swigCPtr, this);
  }

  public void WindowFitAll(int Xmin, int Ymin, int Xmax, int Ymax) {
    occjniJNI.OCCViewer_WindowFitAll(swigCPtr, this, Xmin, Ymin, Xmax, Ymax);
  }

  public void Place(int x, int y, float zoomFactor) {
    occjniJNI.OCCViewer_Place(swigCPtr, this, x, y, zoomFactor);
  }

  public void Zoom(int x1, int y1, int x2, int y2) {
    occjniJNI.OCCViewer_Zoom(swigCPtr, this, x1, y1, x2, y2);
  }

  public void Pan(int x, int y) {
    occjniJNI.OCCViewer_Pan(swigCPtr, this, x, y);
  }

  public void Rotation(int x, int y) {
    occjniJNI.OCCViewer_Rotation(swigCPtr, this, x, y);
  }

  public void StartRotation(int x, int y) {
    occjniJNI.OCCViewer_StartRotation(swigCPtr, this, x, y);
  }

  public void Select(int x1, int y1, int x2, int y2) {
    occjniJNI.OCCViewer_Select__SWIG_0(swigCPtr, this, x1, y1, x2, y2);
  }

  public void Select() {
    occjniJNI.OCCViewer_Select__SWIG_1(swigCPtr, this);
  }

  public void MoveTo(int x, int y) {
    occjniJNI.OCCViewer_MoveTo(swigCPtr, this, x, y);
  }

  public void ShiftSelect(int x1, int y1, int x2, int y2) {
    occjniJNI.OCCViewer_ShiftSelect__SWIG_0(swigCPtr, this, x1, y1, x2, y2);
  }

  public void ShiftSelect() {
    occjniJNI.OCCViewer_ShiftSelect__SWIG_1(swigCPtr, this);
  }

  public void BackgroundColor(SWIGTYPE_p_int r, SWIGTYPE_p_int g, SWIGTYPE_p_int b) {
    occjniJNI.OCCViewer_BackgroundColor(swigCPtr, this, SWIGTYPE_p_int.getCPtr(r), SWIGTYPE_p_int.getCPtr(g), SWIGTYPE_p_int.getCPtr(b));
  }

  public void UpdateCurrentViewer() {
    occjniJNI.OCCViewer_UpdateCurrentViewer(swigCPtr, this);
  }

  public void FrontView() {
    occjniJNI.OCCViewer_FrontView(swigCPtr, this);
  }

  public void TopView() {
    occjniJNI.OCCViewer_TopView(swigCPtr, this);
  }

  public void LeftView() {
    occjniJNI.OCCViewer_LeftView(swigCPtr, this);
  }

  public void BackView() {
    occjniJNI.OCCViewer_BackView(swigCPtr, this);
  }

  public void RightView() {
    occjniJNI.OCCViewer_RightView(swigCPtr, this);
  }

  public void BottomView() {
    occjniJNI.OCCViewer_BottomView(swigCPtr, this);
  }

  public void AxoView() {
    occjniJNI.OCCViewer_AxoView(swigCPtr, this);
  }

  public void ZoomAllView() {
    occjniJNI.OCCViewer_ZoomAllView(swigCPtr, this);
  }

  public float Scale() {
    return occjniJNI.OCCViewer_Scale(swigCPtr, this);
  }

  public void ResetView() {
    occjniJNI.OCCViewer_ResetView(swigCPtr, this);
  }

  public void SetDisplayMode(int aMode) {
    occjniJNI.OCCViewer_SetDisplayMode(swigCPtr, this, aMode);
  }

  public void SetColor(int r, int g, int b) {
    occjniJNI.OCCViewer_SetColor(swigCPtr, this, r, g, b);
  }

  public void ObjectColor(SWIGTYPE_p_int r, SWIGTYPE_p_int g, SWIGTYPE_p_int b) {
    occjniJNI.OCCViewer_ObjectColor(swigCPtr, this, SWIGTYPE_p_int.getCPtr(r), SWIGTYPE_p_int.getCPtr(g), SWIGTYPE_p_int.getCPtr(b));
  }

  public void SetBackgroundColor(int r, int g, int b) {
    occjniJNI.OCCViewer_SetBackgroundColor(swigCPtr, this, r, g, b);
  }

  public void EraseObjects() {
    occjniJNI.OCCViewer_EraseObjects(swigCPtr, this);
  }

  public float GetVersion() {
    return occjniJNI.OCCViewer_GetVersion(swigCPtr, this);
  }

  public void SetMaterial(int theMaterial) {
    occjniJNI.OCCViewer_SetMaterial(swigCPtr, this, theMaterial);
  }

  public void SetTransparency(int theTrans) {
    occjniJNI.OCCViewer_SetTransparency(swigCPtr, this, theTrans);
  }

  public boolean Dump(String filename) {
    return occjniJNI.OCCViewer_Dump(swigCPtr, this, filename);
  }

  public boolean IsObjectSelected() {
    return occjniJNI.OCCViewer_IsObjectSelected(swigCPtr, this);
  }

  public int DisplayMode() {
    return occjniJNI.OCCViewer_DisplayMode(swigCPtr, this);
  }

  public void CreateNewView(SWIGTYPE_p_void wnd) {
    occjniJNI.OCCViewer_CreateNewView(swigCPtr, this, SWIGTYPE_p_void.getCPtr(wnd));
  }

  public boolean SetAISContext(OCCViewer Viewer) {
    return occjniJNI.OCCViewer_SetAISContext(swigCPtr, this, OCCViewer.getCPtr(Viewer), Viewer);
  }

  public boolean ImportBRep(String filename) {
    return occjniJNI.OCCViewer_ImportBRep(swigCPtr, this, filename);
  }

  public int CharToInt(char symbol) {
    return occjniJNI.OCCViewer_CharToInt(swigCPtr, this, symbol);
  }

}

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -