Class ThermalProbe


  • public class ThermalProbe
    extends java.lang.Object

    Title: ThermalProbe

    Description: Thermal probe has its own geometry and type of burning. This class builds the geometry shape of the thermal probe.

    Author:
    Ruida Cheng
    • Field Summary

      Fields 
      Modifier and Type Field Description
      (package private) javax.vecmath.Color3f ambientColor
      Attenuation lighting colors.
      private javax.media.j3d.Appearance appBody
      DOCUMENT ME!
      private javax.media.j3d.Appearance appConeHead
      DOCUMENT ME!
      private javax.media.j3d.Appearance appHead
      DOCUMENT ME!
      private javax.media.j3d.Appearance appTip
      Thermal probe appearance.
      (package private) javax.vecmath.Color3f blue
      DOCUMENT ME!
      private com.sun.j3d.utils.geometry.Cone coneHeadBottom
      DOCUMENT ME!
      private com.sun.j3d.utils.geometry.Cone coneHeadBottomIndicator
      DOCUMENT ME!
      private javax.media.j3d.TransformGroup coneHeadBottomIndicatorTG
      DOCUMENT ME!
      private javax.media.j3d.TransformGroup coneHeadBottomTG
      DOCUMENT ME!
      private com.sun.j3d.utils.geometry.Cone coneHeadTop
      DOCUMENT ME!
      private com.sun.j3d.utils.geometry.Cone coneHeadTopIndicator
      DOCUMENT ME!
      private javax.media.j3d.TransformGroup coneHeadTopIndicatorTG
      DOCUMENT ME!
      private javax.media.j3d.TransformGroup coneHeadTopTG
      DOCUMENT ME!
      private com.sun.j3d.utils.geometry.Cone coneTip
      Thermal probe geometry shapes.
      private com.sun.j3d.utils.geometry.Cone coneTipIndicator
      Indicator probe geometry shapes.
      private javax.media.j3d.TransformGroup coneTipIndicatorTG
      Indicator probe geometry shapes' transform groups.
      private javax.media.j3d.TransformGroup coneTipTG
      Thermal probe geometry shapes' transform groups.
      private com.sun.j3d.utils.geometry.Cylinder cylinderBody
      DOCUMENT ME!
      private com.sun.j3d.utils.geometry.Cylinder cylinderBodyIndicator
      DOCUMENT ME!
      private javax.media.j3d.TransformGroup cylinderBodyIndicatorTG
      DOCUMENT ME!
      private javax.media.j3d.TransformGroup cylinderBodyTG
      DOCUMENT ME!
      private com.sun.j3d.utils.geometry.Cylinder cylinderHead
      DOCUMENT ME!
      private com.sun.j3d.utils.geometry.Cylinder cylinderHeadIndicator
      DOCUMENT ME!
      private javax.media.j3d.TransformGroup cylinderHeadIndicatorTG
      DOCUMENT ME!
      private javax.media.j3d.TransformGroup cylinderHeadTG
      DOCUMENT ME!
      private com.sun.j3d.utils.geometry.Cylinder cylinderTail
      DOCUMENT ME!
      private com.sun.j3d.utils.geometry.Cylinder cylinderTailIndicator
      DOCUMENT ME!
      private javax.media.j3d.TransformGroup cylinderTailIndicatorTG
      DOCUMENT ME!
      private javax.media.j3d.TransformGroup cylinderTailTG
      DOCUMENT ME!
      private com.sun.j3d.utils.geometry.Cylinder cylinderTip
      DOCUMENT ME!
      private com.sun.j3d.utils.geometry.Cylinder cylinderTipIndicator
      DOCUMENT ME!
      private javax.media.j3d.TransformGroup cylinderTipIndicatorTG
      DOCUMENT ME!
      private javax.media.j3d.TransformGroup cylinderTipTG
      DOCUMENT ME!
      (package private) javax.vecmath.Color3f diffuseColor
      DOCUMENT ME!
      (package private) javax.vecmath.Color3f emissiveColor
      DOCUMENT ME!
      (package private) javax.vecmath.Color3f green
      DOCUMENT ME!
      private javax.media.j3d.BranchGroup indicatorProbeBG
      The root branch group of the indicator probe.
      (package private) javax.vecmath.Color3f orange
      DOCUMENT ME!
      protected com.sun.j3d.utils.picking.PickCanvas pickCanvas
      Agent to set the theraml probe pickable.
      (package private) javax.vecmath.Color3f red
      Thermal probe colors.
      (package private) javax.vecmath.Color3f sepcualarColor
      DOCUMENT ME!
      private javax.media.j3d.Switch switchGroup
      Switch group to switch between thermal branch group and the indicator branch group.
      private javax.media.j3d.TransformGroup thermalProbe
      The root transform group of the thermal probe.
      private javax.media.j3d.BranchGroup thermalProbeBG
      The root branch group of the theraml probe.
      (package private) javax.vecmath.Color3f yellow
      DOCUMENT ME!
      private float yOrigin
      Y original coordinate value.
    • Constructor Summary

      Constructors 
      Constructor Description
      ThermalProbe()
      Constructor to initialize the thermal probe geometry.
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      void enableEntryPointRotation​(boolean flag)
      Enable the probe to rotate around the entry point.
      protected boolean findProbe​(javax.media.j3d.Shape3D pickedShape)
      Check whether the probe being picked or not.
      javax.media.j3d.TransformGroup getProbe()
      Get the thermal probe root tranform group.
      protected void init()
      Initialize the therml probe's geometry shapes and indictor probe's geometry shapes.
      protected void setProbeCoordinate​(float value)
      Set the probe translation in the local coordinate system.
      protected void setProbeGreenColor​(boolean flag)
      Switch the default probe between thermal probe and the indicator probe.
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Field Detail

      • pickCanvas

        protected com.sun.j3d.utils.picking.PickCanvas pickCanvas
        Agent to set the theraml probe pickable.
      • ambientColor

        javax.vecmath.Color3f ambientColor
        Attenuation lighting colors.
      • blue

        javax.vecmath.Color3f blue
        DOCUMENT ME!
      • diffuseColor

        javax.vecmath.Color3f diffuseColor
        DOCUMENT ME!
      • emissiveColor

        javax.vecmath.Color3f emissiveColor
        DOCUMENT ME!
      • green

        javax.vecmath.Color3f green
        DOCUMENT ME!
      • orange

        javax.vecmath.Color3f orange
        DOCUMENT ME!
      • red

        javax.vecmath.Color3f red
        Thermal probe colors.
      • sepcualarColor

        javax.vecmath.Color3f sepcualarColor
        DOCUMENT ME!
      • yellow

        javax.vecmath.Color3f yellow
        DOCUMENT ME!
      • appBody

        private javax.media.j3d.Appearance appBody
        DOCUMENT ME!
      • appConeHead

        private javax.media.j3d.Appearance appConeHead
        DOCUMENT ME!
      • appHead

        private javax.media.j3d.Appearance appHead
        DOCUMENT ME!
      • appTip

        private javax.media.j3d.Appearance appTip
        Thermal probe appearance.
      • coneHeadBottom

        private com.sun.j3d.utils.geometry.Cone coneHeadBottom
        DOCUMENT ME!
      • coneHeadBottomIndicator

        private com.sun.j3d.utils.geometry.Cone coneHeadBottomIndicator
        DOCUMENT ME!
      • coneHeadBottomIndicatorTG

        private javax.media.j3d.TransformGroup coneHeadBottomIndicatorTG
        DOCUMENT ME!
      • coneHeadBottomTG

        private javax.media.j3d.TransformGroup coneHeadBottomTG
        DOCUMENT ME!
      • coneHeadTop

        private com.sun.j3d.utils.geometry.Cone coneHeadTop
        DOCUMENT ME!
      • coneHeadTopIndicator

        private com.sun.j3d.utils.geometry.Cone coneHeadTopIndicator
        DOCUMENT ME!
      • coneHeadTopIndicatorTG

        private javax.media.j3d.TransformGroup coneHeadTopIndicatorTG
        DOCUMENT ME!
      • coneHeadTopTG

        private javax.media.j3d.TransformGroup coneHeadTopTG
        DOCUMENT ME!
      • coneTip

        private com.sun.j3d.utils.geometry.Cone coneTip
        Thermal probe geometry shapes.
      • coneTipIndicator

        private com.sun.j3d.utils.geometry.Cone coneTipIndicator
        Indicator probe geometry shapes.
      • coneTipIndicatorTG

        private javax.media.j3d.TransformGroup coneTipIndicatorTG
        Indicator probe geometry shapes' transform groups.
      • coneTipTG

        private javax.media.j3d.TransformGroup coneTipTG
        Thermal probe geometry shapes' transform groups.
      • cylinderBody

        private com.sun.j3d.utils.geometry.Cylinder cylinderBody
        DOCUMENT ME!
      • cylinderBodyIndicator

        private com.sun.j3d.utils.geometry.Cylinder cylinderBodyIndicator
        DOCUMENT ME!
      • cylinderBodyIndicatorTG

        private javax.media.j3d.TransformGroup cylinderBodyIndicatorTG
        DOCUMENT ME!
      • cylinderBodyTG

        private javax.media.j3d.TransformGroup cylinderBodyTG
        DOCUMENT ME!
      • cylinderHead

        private com.sun.j3d.utils.geometry.Cylinder cylinderHead
        DOCUMENT ME!
      • cylinderHeadIndicator

        private com.sun.j3d.utils.geometry.Cylinder cylinderHeadIndicator
        DOCUMENT ME!
      • cylinderHeadIndicatorTG

        private javax.media.j3d.TransformGroup cylinderHeadIndicatorTG
        DOCUMENT ME!
      • cylinderHeadTG

        private javax.media.j3d.TransformGroup cylinderHeadTG
        DOCUMENT ME!
      • cylinderTail

        private com.sun.j3d.utils.geometry.Cylinder cylinderTail
        DOCUMENT ME!
      • cylinderTailIndicator

        private com.sun.j3d.utils.geometry.Cylinder cylinderTailIndicator
        DOCUMENT ME!
      • cylinderTailIndicatorTG

        private javax.media.j3d.TransformGroup cylinderTailIndicatorTG
        DOCUMENT ME!
      • cylinderTailTG

        private javax.media.j3d.TransformGroup cylinderTailTG
        DOCUMENT ME!
      • cylinderTip

        private com.sun.j3d.utils.geometry.Cylinder cylinderTip
        DOCUMENT ME!
      • cylinderTipIndicator

        private com.sun.j3d.utils.geometry.Cylinder cylinderTipIndicator
        DOCUMENT ME!
      • cylinderTipIndicatorTG

        private javax.media.j3d.TransformGroup cylinderTipIndicatorTG
        DOCUMENT ME!
      • cylinderTipTG

        private javax.media.j3d.TransformGroup cylinderTipTG
        DOCUMENT ME!
      • indicatorProbeBG

        private javax.media.j3d.BranchGroup indicatorProbeBG
        The root branch group of the indicator probe.
      • switchGroup

        private javax.media.j3d.Switch switchGroup
        Switch group to switch between thermal branch group and the indicator branch group.
      • thermalProbe

        private javax.media.j3d.TransformGroup thermalProbe
        The root transform group of the thermal probe.
      • thermalProbeBG

        private javax.media.j3d.BranchGroup thermalProbeBG
        The root branch group of the theraml probe.
      • yOrigin

        private float yOrigin
        Y original coordinate value.
    • Constructor Detail

      • ThermalProbe

        public ThermalProbe()
        Constructor to initialize the thermal probe geometry.
    • Method Detail

      • enableEntryPointRotation

        public void enableEntryPointRotation​(boolean flag)
        Enable the probe to rotate around the entry point.
        Parameters:
        flag - boolean true means around the entry point, false around the origin.
      • getProbe

        public javax.media.j3d.TransformGroup getProbe()
        Get the thermal probe root tranform group.
        Returns:
        TransformGroup thermal probe.
      • findProbe

        protected boolean findProbe​(javax.media.j3d.Shape3D pickedShape)
        Check whether the probe being picked or not.
        Parameters:
        pickedShape - picked geometry shape.
        Returns:
        boolean true probe picked, false probe not picked.
      • init

        protected void init()
        Initialize the therml probe's geometry shapes and indictor probe's geometry shapes.
      • setProbeCoordinate

        protected void setProbeCoordinate​(float value)
        Set the probe translation in the local coordinate system.
        Parameters:
        value - y coordinate value of the local coordinate system.
      • setProbeGreenColor

        protected void setProbeGreenColor​(boolean flag)
        Switch the default probe between thermal probe and the indicator probe.
        Parameters:
        flag - boolean true green color, false theraml probe color.