igeo
Class IConfig

java.lang.Object
  extended by igeo.IConfig

public class IConfig
extends java.lang.Object

An interface to contain static constants used in the whole iGeo system.

Version:
0.7.0.0
Author:
Satoru Sugihara

Field Summary
static java.awt.Color ambientColor
          default ambient color
static double angleTolerance
          A parameter to check identical direction in angle.
static float arrowSize
          default vector graphic arrow size
static double axonometricRatio
          default axonometric ratio
static boolean checkDuplicatedControlPoint
          when NURBS geometry is created at a constructor, if any control points share a same instance, another instance is created with dup().
static boolean checkDuplicatedControlPointOnEdge
          when NURBS geometry is created at a constructor, if control points on edges share a same instance, another instance is created with dup().
static boolean checkValidControlPoint
          when NURBS geometry is created at a constructor, checking validity (not infinite nor NaN) of numbers if this is true.
static boolean cullVertexBehindViewInGL
          check and remove vertices behind view location in OpenGL graphics
static boolean cullVertexBehindViewInP3D
          check and remove vertices behind view location in P3D graphics
static boolean depthSort
          enable depth test in GL graphics / depth sort in P3D graphics.
static java.awt.Color emissiveColor
          default emissive color
static boolean enablePostinteract
          enable postinteract method in IDynamicServer.
static boolean enablePostupdate
          enable postupdate method in IDynamicServer.
static boolean enablePreinteract
          enable preinteract method in IDynamicServer.
static boolean enablePreupdate
          enable preupdate method in IDynamicServer.
static double farView
          default far clipping distance
static int isoparmResolution
          Number of isoperms to draw surfaces in graphic classes.
static double keyAxonometricPanSpeed
          Speed of panning in keyboard (arrow keys in default) 3D navigation in axonometric view in INavigator class.
static double keyPerspectivePanSpeed
          Speed of panning in keyboard (arrow keys in default) 3D navigation in perspective view in INavigator class.
static double keyPerspectiveZoomSpeed
          Speed of zooming in keyboard (arrow keys in default) 3D navigation in perspective view in INavigator class.
static double keyRotationSpeed
          Speed of rotation in keyboard (arrow keys in default) 3D navigation in INavigator class.
static double keyZoomSpeed
          Speed of zooming in keyboard (arrow keys in default) 3D navigation in axonometric view in INavigator class.
static boolean lightWireframe
          change wireframe colors by lights when using lights
static boolean loopPostinteract
          put postinteract method in another independent for-loop in IDynamicServer.
static boolean loopPostupdate
          put postupdate method in another independent for-loop in IDynamicServer.
static boolean loopPreinteract
          put preinteract method in another independent for-loop in IDynamicServer.
static boolean loopPreupdate
          put preupdate method in another independent for-loop in IDynamicServer.
static int maxObjectNumberForDepthSort
          if number of objects exceeds this, it automatically turn off depth sort in P3D.
static int meshCircleResolution
          number to facet circle to approximate it in polygon mesh.
static double minimumBounds
          Minimum size to create bounding box and to zoom into.
static double mouseAxonometricPanSpeed
          Speed of panning in mouse 3D navigation in axonometric view in INavigator class.
static double mouseAxonometricZoomSpeed
          Speed of zooming in mouse 3D navigation in axonometric view in INavigator class.
static double mousePerspectivePanSpeed
          Speed of panning in mouse 3D navigation in perspective view in INavigator class.
static double mousePerspectiveZoomSpeed
          Speed of zooming in mouse 3D navigation in perspective view in INavigator class.
static double mouseRotationSpeed
          Speed of rotation in mouse 3D navigation in INavigator class.
static double mouseWheelZoomSpeed
          Speed of zooming in mouse 3D navigation in both axonometric and perspective view in INavigator class.
static double nearView
          default near clipping distance
static java.awt.Color objectColor
          default object color to draw
static double parameterTolerance
          A parameter to check identical location in U-V parametric space in NURBS geometry.
static double perspectiveRatio
          default perspective ratio
static float pointSize
          default point graphic dot size
static int segmentResolution
          Point resolution per edit points to draw curves in graphic classes.
static float shininess
          default shininess
static boolean smoothGraphicP3D
          turn on smooth option in P3D.
static java.awt.Color specularColor
          default specular color
static java.awt.Color strokeColor
          default stroke color to draw
static float strokeWeight
          default stroke weight to draw
static int tessellationResolution
          Number of division per edit point to tesselate a surface into mesh.
static double tolerance
          A parameter to check identical location.
static int transparentModeAlpha
          transparency in transparent graphic mode in integer 0 - 255 (it used to be float 0.0-1.0.
static boolean transparentWireframe
          make wireframe transparent in transparent display mode
static int trimApproximationResolution
          This is only for saving brep or trimmed surface to Rhino file where the 2D trim curve is also required to have 3D representation; 3D curve is approximated with sampled points in this resolution.
static int trimSegmentResolution
          Point resolution per the isoparm segment to draw trim curves of surfaces.
static double updateRate
          update speed of dynamics thread in seccond
static boolean useLight
          turn on lights on display
static double viewDistance
          default view distance
 
Constructor Summary
IConfig()
           
 
Method Summary
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

tolerance

public static double tolerance
A parameter to check identical location. Length below this is ignored and seen as zero. Length is measured in whatever unit of the file


parameterTolerance

public static double parameterTolerance
A parameter to check identical location in U-V parametric space in NURBS geometry. Length below this is ignored and seen as zero. Range of U-V parameter space should be always 0.0-1.0.


angleTolerance

public static double angleTolerance
A parameter to check identical direction in angle. Angle difference below this is ignored and seen as zero. The unit is radian.


segmentResolution

public static int segmentResolution
Point resolution per edit points to draw curves in graphic classes.


isoparmResolution

public static int isoparmResolution
Number of isoperms to draw surfaces in graphic classes. if it's zero, no isoparm


tessellationResolution

public static int tessellationResolution
Number of division per edit point to tesselate a surface into mesh.


trimSegmentResolution

public static int trimSegmentResolution
Point resolution per the isoparm segment to draw trim curves of surfaces.


trimApproximationResolution

public static int trimApproximationResolution
This is only for saving brep or trimmed surface to Rhino file where the 2D trim curve is also required to have 3D representation; 3D curve is approximated with sampled points in this resolution.


objectColor

public static java.awt.Color objectColor
default object color to draw


strokeColor

public static java.awt.Color strokeColor
default stroke color to draw


strokeWeight

public static float strokeWeight
default stroke weight to draw


ambientColor

public static java.awt.Color ambientColor
default ambient color


emissiveColor

public static java.awt.Color emissiveColor
default emissive color


specularColor

public static java.awt.Color specularColor
default specular color


shininess

public static float shininess
default shininess


transparentModeAlpha

public static int transparentModeAlpha
transparency in transparent graphic mode in integer 0 - 255 (it used to be float 0.0-1.0. it changed)


pointSize

public static float pointSize
default point graphic dot size


arrowSize

public static float arrowSize
default vector graphic arrow size


useLight

public static boolean useLight
turn on lights on display


lightWireframe

public static boolean lightWireframe
change wireframe colors by lights when using lights


transparentWireframe

public static boolean transparentWireframe
make wireframe transparent in transparent display mode


cullVertexBehindViewInP3D

public static boolean cullVertexBehindViewInP3D
check and remove vertices behind view location in P3D graphics


cullVertexBehindViewInGL

public static boolean cullVertexBehindViewInGL
check and remove vertices behind view location in OpenGL graphics


depthSort

public static boolean depthSort
enable depth test in GL graphics / depth sort in P3D graphics. if there are many faces, this makes it very slow to deisplay


maxObjectNumberForDepthSort

public static int maxObjectNumberForDepthSort
if number of objects exceeds this, it automatically turn off depth sort in P3D. if number is negative, number is not checked.


smoothGraphicP3D

public static boolean smoothGraphicP3D
turn on smooth option in P3D. This makes it slow in perspective when many vertices are out of display


meshCircleResolution

public static int meshCircleResolution
number to facet circle to approximate it in polygon mesh.


updateRate

public static double updateRate
update speed of dynamics thread in seccond


enablePreinteract

public static boolean enablePreinteract
enable preinteract method in IDynamicServer. Default is true. If false, some functionalities of IDynamics inheriting class like IAgent are disabled.


enablePostinteract

public static boolean enablePostinteract
enable postinteract method in IDynamicServer. Default is true. If false, some functionalities of IDynamics inheriting class like IAgent are disabled.


enablePreupdate

public static boolean enablePreupdate
enable preupdate method in IDynamicServer. Default is true. If false, some functionalities of IDynamics inheriting class like IAgent are disabled.


enablePostupdate

public static boolean enablePostupdate
enable postupdate method in IDynamicServer. Default is true. If false, some functionalities of IDynamics inheriting class like IAgent are disabled.


loopPreinteract

public static boolean loopPreinteract
put preinteract method in another independent for-loop in IDynamicServer. Execution order will change but the execution speed might be slower. Default is false.


loopPostinteract

public static boolean loopPostinteract
put postinteract method in another independent for-loop in IDynamicServer. Execution order will change but the execution speed might be slower. Default is false.


loopPreupdate

public static boolean loopPreupdate
put preupdate method in another independent for-loop in IDynamicServer. Execution order will change but the execution speed might be slower. Default is false.


loopPostupdate

public static boolean loopPostupdate
put postupdate method in another independent for-loop in IDynamicServer. Execution order will change but the execution speed might be slower. Default is false.


mouseRotationSpeed

public static double mouseRotationSpeed
Speed of rotation in mouse 3D navigation in INavigator class. The unit is degree of the angle per pixel of the mouse move.


mousePerspectivePanSpeed

public static double mousePerspectivePanSpeed
Speed of panning in mouse 3D navigation in perspective view in INavigator class. The unit is unit of length in 3D space per pixel of the mouse move.


mouseAxonometricPanSpeed

public static double mouseAxonometricPanSpeed
Speed of panning in mouse 3D navigation in axonometric view in INavigator class. The unit is ratio of corresponding length per pixel in axonometric view.


mousePerspectiveZoomSpeed

public static double mousePerspectiveZoomSpeed
Speed of zooming in mouse 3D navigation in perspective view in INavigator class. The unit is distance of front/back view move per pixel of the mouse move.


mouseAxonometricZoomSpeed

public static double mouseAxonometricZoomSpeed
Speed of zooming in mouse 3D navigation in axonometric view in INavigator class. The unit is increment/decrement of percentage per pixel of the mouse move.


mouseWheelZoomSpeed

public static double mouseWheelZoomSpeed
Speed of zooming in mouse 3D navigation in both axonometric and perspective view in INavigator class. The unit is equivalent pixel move of mouse per a increment/decrement of the wheel.


keyRotationSpeed

public static double keyRotationSpeed
Speed of rotation in keyboard (arrow keys in default) 3D navigation in INavigator class. The unit is degree of the angle per one key press.


keyPerspectivePanSpeed

public static double keyPerspectivePanSpeed
Speed of panning in keyboard (arrow keys in default) 3D navigation in perspective view in INavigator class. The unit is unit of length in 3D space per one key press.


keyAxonometricPanSpeed

public static double keyAxonometricPanSpeed
Speed of panning in keyboard (arrow keys in default) 3D navigation in axonometric view in INavigator class. The unit is ratio of corresponding length per one key press in axonometric view.


keyPerspectiveZoomSpeed

public static double keyPerspectiveZoomSpeed
Speed of zooming in keyboard (arrow keys in default) 3D navigation in perspective view in INavigator class. The unit is distance of front/back view move per one key press of the mouse move.


keyZoomSpeed

public static double keyZoomSpeed
Speed of zooming in keyboard (arrow keys in default) 3D navigation in axonometric view in INavigator class. The unit is equivalent pixel move of mouse per one key press.


minimumBounds

public static double minimumBounds
Minimum size to create bounding box and to zoom into.


nearView

public static double nearView
default near clipping distance


farView

public static double farView
default far clipping distance


axonometricRatio

public static double axonometricRatio
default axonometric ratio


perspectiveRatio

public static double perspectiveRatio
default perspective ratio


viewDistance

public static double viewDistance
default view distance


checkDuplicatedControlPointOnEdge

public static boolean checkDuplicatedControlPointOnEdge
when NURBS geometry is created at a constructor, if control points on edges share a same instance, another instance is created with dup(). This can be overridden by checkDuplicatedControlPoint. Duplicate is avoided to apply tranfromation to all the control points equally.


checkDuplicatedControlPoint

public static boolean checkDuplicatedControlPoint
when NURBS geometry is created at a constructor, if any control points share a same instance, another instance is created with dup(). Duplicate is avoided to apply tranfromation to all the control points equally.


checkValidControlPoint

public static boolean checkValidControlPoint
when NURBS geometry is created at a constructor, checking validity (not infinite nor NaN) of numbers if this is true.

Constructor Detail

IConfig

public IConfig()