org.vrforcad
Class J3Dinterface

java.lang.Object
  extended by java.awt.Component
      extended by java.awt.Container
          extended by java.awt.Window
              extended by java.awt.Frame
                  extended by javax.swing.JFrame
                      extended by org.vrforcad.J3Dinterface
All Implemented Interfaces:
java.awt.image.ImageObserver, java.awt.MenuContainer, java.io.Serializable, javax.accessibility.Accessible, javax.swing.RootPaneContainer, javax.swing.WindowConstants

public class J3Dinterface
extends javax.swing.JFrame

This class it's the "main" of this project :) .

Version:
2.8
Author:
Daniel Cioi
See Also:
Serialized Form

Nested Class Summary
 
Nested classes/interfaces inherited from class java.awt.Component
java.awt.Component.BaselineResizeBehavior
 
Field Summary
static javax.media.j3d.BranchGroup BGaddX3D
           
static javax.media.j3d.BranchGroup BGdynamicSection
           
static javax.media.j3d.BranchGroup BGlogo
           
static javax.media.j3d.BranchGroup BGmainShape
           
static javax.media.j3d.BranchGroup BGorigSys
           
static javax.media.j3d.BranchGroup BGVirtualMeniu
           
static javax.media.j3d.BoundingSphere bounds
           
static javax.media.j3d.Transform3D centru3D
           
static CollisionUsingPick cup
           
static java.lang.String dbName
           
static java.lang.String dbPassword
           
static java.lang.String dbURL
           
static java.lang.String dbUserName
           
static javax.vecmath.Vector3f defaultPositionVirtualMeniu
           
static boolean deform
           
static boolean deformationProcess
           
static boolean homePositionDone
           
static javax.swing.JLabel infoText
           
static long keyTimeA
           
static long keyTimeSpace
           
static long keyTimeZ
           
static int loadedFileExt
           
static boolean loadVFCfile
           
static boolean LogoObj
           
static boolean macOS
           
static com.sun.j3d.utils.behaviors.mouse.MouseRotate mainMouseRotate
           
static com.sun.j3d.utils.behaviors.mouse.MouseTranslate mainMouseTranslate
           
static MouseTranslateModif mainMouseTranslateModif
           
static com.sun.j3d.utils.behaviors.mouse.MouseWheelZoom mainMouseWheelZoom
           
static MouseWheelZoomModif mainMouseWheelZoomModif
           
static com.sun.j3d.utils.behaviors.mouse.MouseZoom mainMouseZoom
           
static boolean microcontroller
           
static float modelmax
           
static float modelmin
           
static boolean noCollision
           
static javax.media.j3d.TransformGroup objTransform
           
static javax.media.j3d.PositionInterpolator pi
           
static int powerSphereDev
           
static ReadVFC readVFCfile
           
static boolean repeatlyA
           
static boolean repeatlySpace
           
static boolean repeatlyZ
           
static int scaleModel
           
static float SDDX
           
static float SDDY
           
static float SDDZ
           
static float SDLDX
           
static float SDLDY
           
static float SDLDZ
           
static float SDWSXm
           
static float SDWSXp
           
static float SDWSYm
           
static float SDWSYp
           
static float SDWSZm
           
static float SDWSZp
           
static CADmodelAppearance shapeAppearance
           
static boolean SphereDeviceActiv
           
static boolean sphereDeviceButtons
           
static float stepSphera
           
static java.lang.String textInfo
           
static long timeOnDevice
           
static boolean touched
           
static int typeParallelPort
           
static java.lang.String uaUserAbout
           
static java.lang.String uaUserName
           
static java.lang.String uaUserPassw
           
static float[] VFCmaxmin
           
static javax.media.j3d.View view
           
static javax.media.j3d.Transform3D virtualMeniuPosition
           
static javax.media.j3d.TransformGroup virtualMeniuTransf
           
static boolean windowsOS
           
static javax.media.j3d.Canvas3D workSpace
           
 
Fields inherited from class javax.swing.JFrame
EXIT_ON_CLOSE
 
Fields inherited from class java.awt.Frame
CROSSHAIR_CURSOR, DEFAULT_CURSOR, E_RESIZE_CURSOR, HAND_CURSOR, ICONIFIED, MAXIMIZED_BOTH, MAXIMIZED_HORIZ, MAXIMIZED_VERT, MOVE_CURSOR, N_RESIZE_CURSOR, NE_RESIZE_CURSOR, NORMAL, NW_RESIZE_CURSOR, S_RESIZE_CURSOR, SE_RESIZE_CURSOR, SW_RESIZE_CURSOR, TEXT_CURSOR, W_RESIZE_CURSOR, WAIT_CURSOR
 
Fields inherited from class java.awt.Component
BOTTOM_ALIGNMENT, CENTER_ALIGNMENT, LEFT_ALIGNMENT, RIGHT_ALIGNMENT, TOP_ALIGNMENT
 
Fields inherited from interface javax.swing.WindowConstants
DISPOSE_ON_CLOSE, DO_NOTHING_ON_CLOSE, HIDE_ON_CLOSE
 
Fields inherited from interface java.awt.image.ImageObserver
ABORT, ALLBITS, ERROR, FRAMEBITS, HEIGHT, PROPERTIES, SOMEBITS, WIDTH
 
Constructor Summary
J3Dinterface(java.lang.String osName)
           
 
Method Summary
static void convertCADmodel(java.io.File fileName)
          Load a CAD model and prepare it for object.vfc
static void copyCoordsFromReadVFC()
          Get arrays from arraylists (vfc format).
 javax.media.j3d.BranchGroup createSceneGraph(javax.media.j3d.Canvas3D workSpace)
           
static void getNewMainGeometry()
          Add the main geometry.
 
Methods inherited from class javax.swing.JFrame
getAccessibleContext, getContentPane, getDefaultCloseOperation, getGlassPane, getGraphics, getJMenuBar, getLayeredPane, getRootPane, getTransferHandler, isDefaultLookAndFeelDecorated, remove, repaint, setContentPane, setDefaultCloseOperation, setDefaultLookAndFeelDecorated, setGlassPane, setIconImage, setJMenuBar, setLayeredPane, setLayout, setTransferHandler, update
 
Methods inherited from class java.awt.Frame
addNotify, getCursorType, getExtendedState, getFrames, getIconImage, getMaximizedBounds, getMenuBar, getState, getTitle, isResizable, isUndecorated, remove, removeNotify, setCursor, setExtendedState, setMaximizedBounds, setMenuBar, setResizable, setState, setTitle, setUndecorated
 
Methods inherited from class java.awt.Window
addPropertyChangeListener, addPropertyChangeListener, addWindowFocusListener, addWindowListener, addWindowStateListener, applyResourceBundle, applyResourceBundle, createBufferStrategy, createBufferStrategy, dispose, getBufferStrategy, getFocusableWindowState, getFocusCycleRootAncestor, getFocusOwner, getFocusTraversalKeys, getGraphicsConfiguration, getIconImages, getInputContext, getListeners, getLocale, getModalExclusionType, getMostRecentFocusOwner, getOwnedWindows, getOwner, getOwnerlessWindows, getToolkit, getWarningString, getWindowFocusListeners, getWindowListeners, getWindows, getWindowStateListeners, hide, isActive, isAlwaysOnTop, isAlwaysOnTopSupported, isFocusableWindow, isFocusCycleRoot, isFocused, isLocationByPlatform, isShowing, pack, postEvent, removeWindowFocusListener, removeWindowListener, removeWindowStateListener, reshape, setAlwaysOnTop, setBounds, setBounds, setCursor, setFocusableWindowState, setFocusCycleRoot, setIconImages, setLocationByPlatform, setLocationRelativeTo, setMinimumSize, setModalExclusionType, setSize, setSize, setVisible, show, toBack, toFront
 
Methods inherited from class java.awt.Container
add, add, add, add, add, addContainerListener, applyComponentOrientation, areFocusTraversalKeysSet, countComponents, deliverEvent, doLayout, findComponentAt, findComponentAt, getAlignmentX, getAlignmentY, getComponent, getComponentAt, getComponentAt, getComponentCount, getComponents, getComponentZOrder, getContainerListeners, getFocusTraversalPolicy, getInsets, getLayout, getMaximumSize, getMinimumSize, getMousePosition, getPreferredSize, insets, invalidate, isAncestorOf, isFocusCycleRoot, isFocusTraversalPolicyProvider, isFocusTraversalPolicySet, layout, list, list, locate, minimumSize, paint, paintComponents, preferredSize, print, printComponents, remove, removeAll, removeContainerListener, setComponentZOrder, setFocusTraversalKeys, setFocusTraversalPolicy, setFocusTraversalPolicyProvider, setFont, transferFocusBackward, transferFocusDownCycle, validate
 
Methods inherited from class java.awt.Component
action, add, addComponentListener, addFocusListener, addHierarchyBoundsListener, addHierarchyListener, addInputMethodListener, addKeyListener, addMouseListener, addMouseMotionListener, addMouseWheelListener, bounds, checkImage, checkImage, contains, contains, createImage, createImage, createVolatileImage, createVolatileImage, disable, dispatchEvent, enable, enable, enableInputMethods, firePropertyChange, firePropertyChange, firePropertyChange, firePropertyChange, firePropertyChange, firePropertyChange, getBackground, getBaseline, getBaselineResizeBehavior, getBounds, getBounds, getColorModel, getComponentListeners, getComponentOrientation, getCursor, getDropTarget, getFocusListeners, getFocusTraversalKeysEnabled, getFont, getFontMetrics, getForeground, getHeight, getHierarchyBoundsListeners, getHierarchyListeners, getIgnoreRepaint, getInputMethodListeners, getInputMethodRequests, getKeyListeners, getLocation, getLocation, getLocationOnScreen, getMouseListeners, getMouseMotionListeners, getMousePosition, getMouseWheelListeners, getName, getParent, getPeer, getPropertyChangeListeners, getPropertyChangeListeners, getSize, getSize, getTreeLock, getWidth, getX, getY, gotFocus, handleEvent, hasFocus, imageUpdate, inside, isBackgroundSet, isCursorSet, isDisplayable, isDoubleBuffered, isEnabled, isFocusable, isFocusOwner, isFocusTraversable, isFontSet, isForegroundSet, isLightweight, isMaximumSizeSet, isMinimumSizeSet, isOpaque, isPreferredSizeSet, isValid, isVisible, keyDown, keyUp, list, list, list, location, lostFocus, mouseDown, mouseDrag, mouseEnter, mouseExit, mouseMove, mouseUp, move, nextFocus, paintAll, prepareImage, prepareImage, printAll, removeComponentListener, removeFocusListener, removeHierarchyBoundsListener, removeHierarchyListener, removeInputMethodListener, removeKeyListener, removeMouseListener, removeMouseMotionListener, removeMouseWheelListener, removePropertyChangeListener, removePropertyChangeListener, repaint, repaint, repaint, requestFocus, requestFocusInWindow, resize, resize, setBackground, setComponentOrientation, setDropTarget, setEnabled, setFocusable, setFocusTraversalKeysEnabled, setForeground, setIgnoreRepaint, setLocale, setLocation, setLocation, setMaximumSize, setName, setPreferredSize, show, size, toString, transferFocus, transferFocusUpCycle
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait
 
Methods inherited from interface java.awt.MenuContainer
getFont, postEvent
 

Field Detail

workSpace

public static javax.media.j3d.Canvas3D workSpace

LogoObj

public static boolean LogoObj

BGlogo

public static javax.media.j3d.BranchGroup BGlogo

bounds

public static javax.media.j3d.BoundingSphere bounds

objTransform

public static javax.media.j3d.TransformGroup objTransform

centru3D

public static javax.media.j3d.Transform3D centru3D

virtualMeniuTransf

public static javax.media.j3d.TransformGroup virtualMeniuTransf

virtualMeniuPosition

public static javax.media.j3d.Transform3D virtualMeniuPosition

BGVirtualMeniu

public static javax.media.j3d.BranchGroup BGVirtualMeniu

defaultPositionVirtualMeniu

public static javax.vecmath.Vector3f defaultPositionVirtualMeniu

pi

public static javax.media.j3d.PositionInterpolator pi

mainMouseRotate

public static com.sun.j3d.utils.behaviors.mouse.MouseRotate mainMouseRotate

mainMouseTranslate

public static com.sun.j3d.utils.behaviors.mouse.MouseTranslate mainMouseTranslate

mainMouseZoom

public static com.sun.j3d.utils.behaviors.mouse.MouseZoom mainMouseZoom

mainMouseWheelZoom

public static com.sun.j3d.utils.behaviors.mouse.MouseWheelZoom mainMouseWheelZoom

mainMouseWheelZoomModif

public static MouseWheelZoomModif mainMouseWheelZoomModif

mainMouseTranslateModif

public static MouseTranslateModif mainMouseTranslateModif

cup

public static CollisionUsingPick cup

shapeAppearance

public static CADmodelAppearance shapeAppearance

BGorigSys

public static javax.media.j3d.BranchGroup BGorigSys

BGmainShape

public static javax.media.j3d.BranchGroup BGmainShape

BGdynamicSection

public static javax.media.j3d.BranchGroup BGdynamicSection

touched

public static boolean touched

deform

public static boolean deform

deformationProcess

public static boolean deformationProcess

noCollision

public static boolean noCollision

textInfo

public static java.lang.String textInfo

view

public static javax.media.j3d.View view

infoText

public static javax.swing.JLabel infoText

SphereDeviceActiv

public static boolean SphereDeviceActiv

stepSphera

public static float stepSphera

powerSphereDev

public static int powerSphereDev

microcontroller

public static boolean microcontroller

homePositionDone

public static boolean homePositionDone

sphereDeviceButtons

public static boolean sphereDeviceButtons

typeParallelPort

public static int typeParallelPort

timeOnDevice

public static long timeOnDevice

SDWSXp

public static float SDWSXp

SDWSXm

public static float SDWSXm

SDWSYp

public static float SDWSYp

SDWSYm

public static float SDWSYm

SDWSZp

public static float SDWSZp

SDWSZm

public static float SDWSZm

SDDX

public static float SDDX

SDDY

public static float SDDY

SDDZ

public static float SDDZ

SDLDX

public static float SDLDX

SDLDY

public static float SDLDY

SDLDZ

public static float SDLDZ

loadVFCfile

public static boolean loadVFCfile

readVFCfile

public static ReadVFC readVFCfile

BGaddX3D

public static javax.media.j3d.BranchGroup BGaddX3D

scaleModel

public static int scaleModel

modelmax

public static float modelmax

modelmin

public static float modelmin

dbURL

public static java.lang.String dbURL

dbName

public static java.lang.String dbName

dbUserName

public static java.lang.String dbUserName

dbPassword

public static java.lang.String dbPassword

uaUserName

public static java.lang.String uaUserName

uaUserAbout

public static java.lang.String uaUserAbout

uaUserPassw

public static java.lang.String uaUserPassw

windowsOS

public static boolean windowsOS

macOS

public static boolean macOS

keyTimeZ

public static long keyTimeZ

repeatlyZ

public static boolean repeatlyZ

keyTimeA

public static long keyTimeA

repeatlyA

public static boolean repeatlyA

keyTimeSpace

public static long keyTimeSpace

repeatlySpace

public static boolean repeatlySpace

loadedFileExt

public static int loadedFileExt

VFCmaxmin

public static float[] VFCmaxmin
Constructor Detail

J3Dinterface

public J3Dinterface(java.lang.String osName)
Method Detail

createSceneGraph

public javax.media.j3d.BranchGroup createSceneGraph(javax.media.j3d.Canvas3D workSpace)

convertCADmodel

public static void convertCADmodel(java.io.File fileName)
Load a CAD model and prepare it for object.vfc

Parameters:
fileName - the file name

getNewMainGeometry

public static void getNewMainGeometry()
Add the main geometry.


copyCoordsFromReadVFC

public static void copyCoordsFromReadVFC()
Get arrays from arraylists (vfc format).