java.lang.Object
de.grogra.lignum.stlVoxelspace.VoxelSpace
- All Implemented Interfaces:
Mathsym
,VoxelSpaceIF
Translated from orignal C++ Lignum code.
- Author:
- Alexander Brinkmann
-
Field Summary
FieldsModifier and TypeFieldDescriptionint
int
int
int
int
VoxelBox[][][]
double
int
double
int
double
int
Fields inherited from interface de.grogra.lignum.jadt.Mathsym
HIT_THE_FOLIAGE, HIT_THE_WOOD, K_EPSILON, NO_HIT, PI_DIV_2, R_EPSILON, R_HUGE
-
Constructor Summary
ConstructorsConstructorDescriptionVoxelSpace
(Point3d c1, Point3d c2, double xsize, double ysize, double zsize, int xn, int yn, int zn, Firmament f, double kb) VoxelSpace
(Point3d c1, Point3d c2, int xn, int yn, int zn, Firmament f) -
Method Summary
Modifier and TypeMethodDescriptionvoid
double
double
calculateTurbidLight
(boolean self_shading) void
DumpCfTree
(VoxelSpace s, Tree tree, int num_parts, boolean wood) void
evaluateVerticalNeedleAreaDensity
(double Hmax, double Hmin, int n, Vector<PairMinMax> NAD) void
fillVoxelBoxes
(double needleA, double leafA) void
fillVoxelBoxes
(double inivalue, int beginZ, int endZ) void
FillVoxelBoxesWithNeedles
(double Sf, double Wf, double Rf, double L, int beginZ, int endZ) double
getArea()
double
double
double
double
double
getK_b()
double
double
double
int
int
int
double
getQabs()
double
getQin()
getRoute
(Vector<VoxelMovement> vec, int startx, int starty, int startz, PositionVector dir) getRoute
(Vector<VoxelMovement> vec, Point3d p0, PositionVector dir, ParametricCurve K, boolean pairwise) double
getXbox()
int
getXindex
(double local_xcoord) double
double
getYbox()
int
getYindex
(double local_ycoord) double
double
getZbox()
int
getZindex
(double local_zcoord) double
void
void
void
incHitw()
void
incNohit()
void
static double
NearbyShading
(Point3d out, PositionVector direction, double Htop, double Hbot, double LAIc, double LAIb) static double
NearbyShading
(Point3d out, PositionVector direction, double Htop, double Hbot, double LAIc, double LAIb, double k_conifer, double k_deciduous) void
reset()
void
void
resize
(double lX, double lY, double lZ) void
resize
(double lX, double lY, double lZ, int nX, int nY, int nZ) void
resize
(int x, int y, int z) void
void
-
Field Details
-
Xbox
public double Xbox -
Ybox
public double Ybox -
Zbox
public double Zbox -
Xn
public int Xn -
Yn
public int Yn -
Zn
public int Zn -
voxboxes
-
sgmnt
public int sgmnt -
hitw
public int hitw -
hitfol
public int hitfol -
nohit
public int nohit -
hitself
public int hitself
-
-
Constructor Details
-
VoxelSpace
-
VoxelSpace
-
-
Method Details
-
getXbox
public double getXbox()- Specified by:
getXbox
in interfaceVoxelSpaceIF
-
getYbox
public double getYbox()- Specified by:
getYbox
in interfaceVoxelSpaceIF
-
getZbox
public double getZbox()- Specified by:
getZbox
in interfaceVoxelSpaceIF
-
incHitfol
public void incHitfol()- Specified by:
incHitfol
in interfaceVoxelSpaceIF
-
incNohit
public void incNohit()- Specified by:
incNohit
in interfaceVoxelSpaceIF
-
incHitself
public void incHitself()- Specified by:
incHitself
in interfaceVoxelSpaceIF
-
incHitw
public void incHitw()- Specified by:
incHitw
in interfaceVoxelSpaceIF
-
getK_b
public double getK_b()- Specified by:
getK_b
in interfaceVoxelSpaceIF
-
getXindex
public int getXindex(double local_xcoord) - Specified by:
getXindex
in interfaceVoxelSpaceIF
-
getYindex
public int getYindex(double local_ycoord) - Specified by:
getYindex
in interfaceVoxelSpaceIF
-
getZindex
public int getZindex(double local_zcoord) - Specified by:
getZindex
in interfaceVoxelSpaceIF
-
reset
public void reset()- Specified by:
reset
in interfaceVoxelSpaceIF
-
resetQinQabs
public void resetQinQabs()- Specified by:
resetQinQabs
in interfaceVoxelSpaceIF
-
resize
public void resize(int x, int y, int z) - Specified by:
resize
in interfaceVoxelSpaceIF
-
resize
public void resize(double lX, double lY, double lZ) - Specified by:
resize
in interfaceVoxelSpaceIF
-
resize
public void resize(double lX, double lY, double lZ, int nX, int nY, int nZ) - Specified by:
resize
in interfaceVoxelSpaceIF
-
resize
- Specified by:
resize
in interfaceVoxelSpaceIF
-
move
- Specified by:
move
in interfaceVoxelSpaceIF
-
getBookKeeper
- Specified by:
getBookKeeper
in interfaceVoxelSpaceIF
-
getForestDescriptor
- Specified by:
getForestDescriptor
in interfaceVoxelSpaceIF
-
getArea
public double getArea()- Specified by:
getArea
in interfaceVoxelSpaceIF
-
getLowerLeftCorner
- Specified by:
getLowerLeftCorner
in interfaceVoxelSpaceIF
-
getUpperRightCorner
- Specified by:
getUpperRightCorner
in interfaceVoxelSpaceIF
-
getNumberOfBoxes
public int getNumberOfBoxes()- Specified by:
getNumberOfBoxes
in interfaceVoxelSpaceIF
-
getNumberOfFilledBoxes
public int getNumberOfFilledBoxes()- Specified by:
getNumberOfFilledBoxes
in interfaceVoxelSpaceIF
-
getNumberOfTreeSegments
public int getNumberOfTreeSegments()- Specified by:
getNumberOfTreeSegments
in interfaceVoxelSpaceIF
-
getBoxVolume
public double getBoxVolume()- Specified by:
getBoxVolume
in interfaceVoxelSpaceIF
-
getXSideLength
public double getXSideLength()- Specified by:
getXSideLength
in interfaceVoxelSpaceIF
-
getYSideLength
public double getYSideLength()- Specified by:
getYSideLength
in interfaceVoxelSpaceIF
-
getZSideLength
public double getZSideLength()- Specified by:
getZSideLength
in interfaceVoxelSpaceIF
-
getQabs
public double getQabs()- Specified by:
getQabs
in interfaceVoxelSpaceIF
-
getQin
public double getQin()- Specified by:
getQin
in interfaceVoxelSpaceIF
-
getMinMaxNeedleMass
- Specified by:
getMinMaxNeedleMass
in interfaceVoxelSpaceIF
-
getFoliageMass
public double getFoliageMass()- Specified by:
getFoliageMass
in interfaceVoxelSpaceIF
-
getVoxelBox
- Specified by:
getVoxelBox
in interfaceVoxelSpaceIF
-
getBoxIndexes
- Specified by:
getBoxIndexes
in interfaceVoxelSpaceIF
-
getRoute
public Vector<VoxelMovement> getRoute(Vector<VoxelMovement> vec, int startx, int starty, int startz, PositionVector dir) - Specified by:
getRoute
in interfaceVoxelSpaceIF
-
getRoute
public Vector<VoxelMovement> getRoute(Vector<VoxelMovement> vec, Point3d p0, PositionVector dir, ParametricCurve K, boolean pairwise) - Specified by:
getRoute
in interfaceVoxelSpaceIF
-
getBorderStandExtinction
- Specified by:
getBorderStandExtinction
in interfaceVoxelSpaceIF
-
NearbyShading
public static double NearbyShading(Point3d out, PositionVector direction, double Htop, double Hbot, double LAIc, double LAIb) -
NearbyShading
public static double NearbyShading(Point3d out, PositionVector direction, double Htop, double Hbot, double LAIc, double LAIb, double k_conifer, double k_deciduous) -
updateBoxValues
public void updateBoxValues()- Specified by:
updateBoxValues
in interfaceVoxelSpaceIF
-
calculateTurbidLight
public double calculateTurbidLight()- Specified by:
calculateTurbidLight
in interfaceVoxelSpaceIF
-
calculateTurbidLight
public double calculateTurbidLight(boolean self_shading) - Specified by:
calculateTurbidLight
in interfaceVoxelSpaceIF
-
fillVoxelBoxes
public void fillVoxelBoxes(double needleA, double leafA) - Specified by:
fillVoxelBoxes
in interfaceVoxelSpaceIF
-
fillVoxelBoxes
public void fillVoxelBoxes(double inivalue, int beginZ, int endZ) - Specified by:
fillVoxelBoxes
in interfaceVoxelSpaceIF
-
FillVoxelBoxesWithNeedles
public void FillVoxelBoxesWithNeedles(double Sf, double Wf, double Rf, double L, int beginZ, int endZ) - Specified by:
FillVoxelBoxesWithNeedles
in interfaceVoxelSpaceIF
-
getMeanFoliageAreaDensity
public double getMeanFoliageAreaDensity()- Specified by:
getMeanFoliageAreaDensity
in interfaceVoxelSpaceIF
-
calculateMeanQabsQin
public void calculateMeanQabsQin()- Specified by:
calculateMeanQabsQin
in interfaceVoxelSpaceIF
-
getNeedleArea
public double getNeedleArea()- Specified by:
getNeedleArea
in interfaceVoxelSpaceIF
-
getLeafArea
public double getLeafArea()- Specified by:
getLeafArea
in interfaceVoxelSpaceIF
-
getFoliageArea
public double getFoliageArea()- Specified by:
getFoliageArea
in interfaceVoxelSpaceIF
-
evaluateVerticalNeedleAreaDensity
public void evaluateVerticalNeedleAreaDensity(double Hmax, double Hmin, int n, Vector<PairMinMax> NAD) - Specified by:
evaluateVerticalNeedleAreaDensity
in interfaceVoxelSpaceIF
-
DumpCfTree
-