sexi.util
Class LightCalculator
java.lang.Object
|
+--sexi.util.LightCalculator
- All Implemented Interfaces:
- CalculatorEvent, java.lang.Runnable
- public class LightCalculator
- extends java.lang.Object
- implements java.lang.Runnable, CalculatorEvent
Calculate the light with the given parameters
Methods inherited from class java.lang.Object |
, clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
DETAIL_LIGHT
public static final int DETAIL_LIGHT
VERTICAL_LIGHT
public static final int VERTICAL_LIGHT
SINE_LIGHT
public static final int SINE_LIGHT
DOUBLE_LIGHT
public static final int DOUBLE_LIGHT
type
int type
lightParam
LightParameters lightParam
calculationMethod
public java.lang.String calculationMethod
raySetSize
float raySetSize
calculateTree
boolean calculateTree
forest
ForestBasicStand forest
output
Point3fLabel[] output
inputPoint
Point3fValue[] inputPoint
nPoint
float nPoint
listenerList
java.util.ArrayList listenerList
result
java.lang.Object result
progress
float progress
totalProgress
float totalProgress
isCanceled
boolean isCanceled
isDetailCount
boolean isDetailCount
detailOut
java.util.ArrayList detailOut
isShowResult
boolean isShowResult
LightCalculator
public LightCalculator()
addCalculatorListener
public void addCalculatorListener(CalculatorListener l)
removeCalculatorListener
public void removeCalculatorListener(CalculatorListener l)
setDetailCount
public void setDetailCount(boolean b)
setCountResultPoint
public void setCountResultPoint(boolean b)
calculateForPoint
public void calculateForPoint(ForestBasicStand f,
Point3fValue[] outputPosition)
calculateForTree
public void calculateForTree(ForestBasicStand f,
int positionOnTree,
int type)
calculateForTree
public void calculateForTree(ForestBasicStand f,
int positionOnTree)
run
public void run()
- Specified by:
run
in interface java.lang.Runnable
runDetailLight
public void runDetailLight()
getCurrentProgress
public double getCurrentProgress()
- Specified by:
getCurrentProgress
in interface CalculatorEvent
getMinProgress
public double getMinProgress()
- Specified by:
getMinProgress
in interface CalculatorEvent
getMaxProgress
public double getMaxProgress()
- Specified by:
getMaxProgress
in interface CalculatorEvent
getResult
public java.lang.Object getResult()
- Specified by:
getResult
in interface CalculatorEvent
getSource
public java.lang.Object getSource()
- Specified by:
getSource
in interface CalculatorEvent
setAbortCalculation
public void setAbortCalculation(boolean b)
getDetailResult
public Point3f[] getDetailResult()
runVerticalLight
public void runVerticalLight()
createInitLightMap
public static LightMap createInitLightMap(DimensionArea forestArea,
DimensionArea gridSampling,
int nGridXAvg,
int nGridYAvg)
countLightMap
public static LightMap countLightMap(TreeBasic[] trees,
LightMap map)