Class KinemageReader

All Implemented Interfaces:
VertexDataServer

class KinemageReader extends PmeshReader
  • Field Details

    • POINTS_ALL

      private static final int POINTS_ALL
      See Also:
    • POINTS_MCMC

      private static final int POINTS_MCMC
      See Also:
    • POINTS_SCSC

      private static final int POINTS_SCSC
      See Also:
    • POINTS_MCSC

      private static final int POINTS_MCSC
      See Also:
    • POINTS_HETS

      private static final int POINTS_HETS
      See Also:
    • nDots

      private int nDots
    • vMin

      private float vMin
    • vMax

      private float vMax
    • pointType

      private int pointType
    • findString

      private String findString
    • lastAtom

      private String lastAtom
  • Constructor Details

    • KinemageReader

      KinemageReader()
  • Method Details

    • init2

      void init2(SurfaceGenerator sg, BufferedReader br)
      Overrides:
      init2 in class PmeshReader
    • readVolumeParameters

      protected boolean readVolumeParameters(boolean isMapData)
      Overrides:
      readVolumeParameters in class PolygonFileReader
    • readVertices

      protected boolean readVertices() throws Exception
      Overrides:
      readVertices in class PmeshReader
      Throws:
      Exception
    • readDots

      private void readDots() throws Exception
      Throws:
      Exception
    • readVectors

      private void readVectors() throws Exception
      Throws:
      Exception
    • getPoint

      private int getPoint(String line, int i, int[] retColor, boolean checkType)
    • getColor

      private int getColor(String color)
    • assignValueFromGapColorForKin

      private float assignValueFromGapColorForKin(String color)
      C++ code gives these as " value > x.x ? "xxxxx", etc. so technically we are off by a smidgeon. But they are the reference numbers, so we will use them inclusively instead.
      Parameters:
      color -
      Returns:
      value or NaN if outsided desired range
    • readPolygons

      protected boolean readPolygons()
      Overrides:
      readPolygons in class PmeshReader