|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.miv.pherd.ntree.BarycenterCellData
public class BarycenterCellData
Cell data that represent the barycenter of a cell.
For leaf cells the barycenter is computed from the particles in the cell. For non-lead cell, the barycenter represents the barycenters of each subcell.
| Field Summary | |
|---|---|
Cell |
cell
The cell this data is attached to. |
Point3 |
center
The barycenter. |
Object |
marked
Allows debugging. |
double |
weight
The importance of this centre (in other words, the number of particles represented by this barycenter). |
| Constructor Summary | |
|---|---|
BarycenterCellData()
|
|
| Method Summary | |
|---|---|
double |
distanceFrom(Point3 p)
Distance between this barycentre and a point p. |
Point3 |
getCenter()
The barycenter. |
double |
getWeight()
The importance of the barycenter. |
CellData |
newCellData()
Factory method to create new cell data when a cell is subdivided. |
void |
recompute()
Recompute the data, since the cell contents changed. |
void |
setCell(Cell cell)
Set the parent cell of this data. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
public Point3 center
public double weight
public Cell cell
public Object marked
| Constructor Detail |
|---|
public BarycenterCellData()
| Method Detail |
|---|
public Point3 getCenter()
public double getWeight()
public double distanceFrom(Point3 p)
p - The point to consider (the other is the barycentre).
public CellData newCellData()
CellData
newCellData in interface CellDatapublic void setCell(Cell cell)
CellData
setCell in interface CellDatacell - The tied cell.public void recompute()
CellData
recompute in interface CellData
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||