Class V3D_Environment

java.lang.Object
uk.ac.leeds.ccg.generic.memory.Generic_MemoryManager
uk.ac.leeds.ccg.v3d.core.V3D_Environment
All Implemented Interfaces:
java.io.Serializable, uk.ac.leeds.ccg.generic.memory.Generic_Memory

public class V3D_Environment
extends uk.ac.leeds.ccg.generic.memory.Generic_MemoryManager
V3D_Environment
Version:
1.0
Author:
Andy Turner
See Also:
Serialized Form
  • Field Summary

    Fields 
    Modifier and Type Field Description
    uk.ac.leeds.ccg.math.Math_BigDecimal bd
    MathBigDecimal
    uk.ac.leeds.ccg.generic.core.Generic_Environment env  
    V3D_Files files  
    V3D_Vector i
    Unit vector based at the origin in the x axis direction.
    V3D_Vector j
    Unit vector based at the origin in the y axis direction.
    V3D_Vector k
    Unit vector based at the origin in the z axis direction.
    ch.obermuhlner.math.big.BigRational N1  
    V3D_Point origin
    The origin at <0,0,0>.
    ch.obermuhlner.math.big.BigRational P0
    For code brevity.
    ch.obermuhlner.math.big.BigRational P1  
    ch.obermuhlner.math.big.BigRational P2  
    ch.obermuhlner.math.big.BigRational P3  
    V3D_Line xAxis
    The x axis.
    V3D_Line yAxis
    The y axis.
    V3D_Line zAxis
    The z axis.
    V3D_Vector zeroVector
    Zero vector.

    Fields inherited from class uk.ac.leeds.ccg.generic.memory.Generic_MemoryManager

    Default_Memory_Threshold, HOOME, HOOMEF, HOOMET, Memory_Threshold, MemoryReserve, MemoryTest
  • Constructor Summary

    Constructors 
    Constructor Description
    V3D_Environment​(uk.ac.leeds.ccg.generic.core.Generic_Environment e)  
    V3D_Environment​(uk.ac.leeds.ccg.generic.core.Generic_Environment e, uk.ac.leeds.ccg.generic.io.Generic_Path dir)  
  • Method Summary

    Modifier and Type Method Description
    boolean checkAndMaybeFreeMemory()  
    java.math.BigDecimal getRounded_BigDecimal​(java.math.BigDecimal toRoundBigDecimal, java.math.BigDecimal toRoundToBigDecimal)  
    boolean swapSomeData()  
    boolean swapSomeData​(boolean hoome)  

    Methods inherited from class uk.ac.leeds.ccg.generic.memory.Generic_MemoryManager

    clearMemoryReserve, getMemoryReserve, getMemoryTest, getRuntime, getTotalFreeMemory, initMemoryReserve, initMemoryReserve, setMemoryReserve

    Methods inherited from class java.lang.Object

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

    • origin

      public final V3D_Point origin
      The origin at <0,0,0>.
    • xAxis

      public final V3D_Line xAxis
      The x axis.
    • yAxis

      public final V3D_Line yAxis
      The y axis.
    • zAxis

      public final V3D_Line zAxis
      The z axis.
    • i

      public final V3D_Vector i
      Unit vector based at the origin in the x axis direction.
    • j

      public final V3D_Vector j
      Unit vector based at the origin in the y axis direction.
    • k

      public final V3D_Vector k
      Unit vector based at the origin in the z axis direction.
    • zeroVector

      public final V3D_Vector zeroVector
      Zero vector.
    • P0

      public final ch.obermuhlner.math.big.BigRational P0
      For code brevity.
    • P1

      public final ch.obermuhlner.math.big.BigRational P1
    • P2

      public final ch.obermuhlner.math.big.BigRational P2
    • P3

      public final ch.obermuhlner.math.big.BigRational P3
    • N1

      public final ch.obermuhlner.math.big.BigRational N1
    • env

      public uk.ac.leeds.ccg.generic.core.Generic_Environment env
    • files

      public V3D_Files files
    • bd

      public uk.ac.leeds.ccg.math.Math_BigDecimal bd
      MathBigDecimal
  • Constructor Details

    • V3D_Environment

      public V3D_Environment​(uk.ac.leeds.ccg.generic.core.Generic_Environment e) throws java.io.IOException, java.lang.Exception
      Throws:
      java.io.IOException
      java.lang.Exception
    • V3D_Environment

      public V3D_Environment​(uk.ac.leeds.ccg.generic.core.Generic_Environment e, uk.ac.leeds.ccg.generic.io.Generic_Path dir) throws java.io.IOException, java.lang.Exception
      Throws:
      java.io.IOException
      java.lang.Exception
  • Method Details

    • getRounded_BigDecimal

      public java.math.BigDecimal getRounded_BigDecimal​(java.math.BigDecimal toRoundBigDecimal, java.math.BigDecimal toRoundToBigDecimal)
    • swapSomeData

      public boolean swapSomeData() throws java.io.IOException, java.lang.Exception
      Specified by:
      swapSomeData in class uk.ac.leeds.ccg.generic.memory.Generic_MemoryManager
      Throws:
      java.io.IOException
      java.lang.Exception
    • swapSomeData

      public boolean swapSomeData​(boolean hoome) throws java.io.IOException, java.lang.Exception
      Specified by:
      swapSomeData in class uk.ac.leeds.ccg.generic.memory.Generic_MemoryManager
      Throws:
      java.io.IOException
      java.lang.Exception
    • checkAndMaybeFreeMemory

      public boolean checkAndMaybeFreeMemory() throws java.io.IOException, java.lang.Exception
      Specified by:
      checkAndMaybeFreeMemory in interface uk.ac.leeds.ccg.generic.memory.Generic_Memory
      Specified by:
      checkAndMaybeFreeMemory in class uk.ac.leeds.ccg.generic.memory.Generic_MemoryManager
      Throws:
      java.io.IOException
      java.lang.Exception