|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectucl.physiol.neuroconstruct.project.Region
ucl.physiol.neuroconstruct.project.RectangularBox
public class RectangularBox
Extension of Regions in 3D
| Field Summary | |
|---|---|
static String |
DEPTH_PARAM
|
static String |
HEIGHT_PARAM
|
static String |
WIDTH_PARAM
|
static String |
X_PARAM
|
static String |
Y_PARAM
|
static String |
Z_PARAM
|
| Constructor Summary | |
|---|---|
RectangularBox()
|
|
RectangularBox(float x,
float y,
float z,
float width,
float height,
float depth)
|
|
| Method Summary | |
|---|---|
void |
addLinesAroundRegion(TransformGroup tg)
|
com.sun.j3d.utils.geometry.Primitive |
addPrimitiveForRegion(TransformGroup tg,
Appearance app)
Generate a shape of the region in 3D and add it to the TransformGroup |
Object |
clone()
Needs to be used when generating a copy. |
boolean |
equals(Object otherObj)
|
static SphericalRegion |
getEnclosingSphere(RectangularBox box)
|
float |
getHighestXValue()
|
float |
getHighestYValue()
|
float |
getHighestZValue()
|
float |
getLowestXValue()
These functions need to be implemented in the subclass for packing purposes and for getting the general location of the region in a generic way |
float |
getLowestYValue()
|
float |
getLowestZValue()
|
Region |
getTranslatedRegion(Vector3f trans)
Gets a new Region of the same type, with coords translated by the specified Vector |
ArrayList<Point3f> |
getVertices()
|
double |
getVolume()
|
float |
getXExtent()
|
float |
getYExtent()
|
float |
getZExtent()
|
boolean |
isCellWithinRegion(Point3f point,
Cell cell,
boolean completelyInside)
The function to check if the cell mentioned is within the region |
boolean |
isPointInRegion(Point3f point)
|
static void |
main(String[] args)
|
String |
toString()
Returns a short summary of the class's state, for GUIs etc. |
| Methods inherited from class ucl.physiol.neuroconstruct.project.Region |
|---|
getDescription, getParameterList, parametersEqual, setDescription, setParameter, setParameterList |
| Methods inherited from class java.lang.Object |
|---|
finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Field Detail |
|---|
public static final String X_PARAM
public static final String Y_PARAM
public static final String Z_PARAM
public static final String WIDTH_PARAM
public static final String HEIGHT_PARAM
public static final String DEPTH_PARAM
| Constructor Detail |
|---|
public RectangularBox()
public RectangularBox(float x,
float y,
float z,
float width,
float height,
float depth)
| Method Detail |
|---|
public boolean equals(Object otherObj)
equals in class Regionpublic double getVolume()
getVolume in class Regionpublic Region getTranslatedRegion(Vector3f trans)
Region
getTranslatedRegion in class Regionpublic static SphericalRegion getEnclosingSphere(RectangularBox box)
public Object clone()
Region
clone in class Region
public boolean isCellWithinRegion(Point3f point,
Cell cell,
boolean completelyInside)
Region
isCellWithinRegion in class Regionpoint - The point at which the cell is translated to.cell - The cell to be placed in the regioncompletelyInside - If true, all soma segments of the cell must be inside region
if false, only the start point of the soma must be inside (centre for spherical somas)
public boolean isPointInRegion(Point3f point)
isPointInRegion in class Region
public com.sun.j3d.utils.geometry.Primitive addPrimitiveForRegion(TransformGroup tg,
Appearance app)
Region
addPrimitiveForRegion in class Regionpublic void addLinesAroundRegion(TransformGroup tg)
public ArrayList<Point3f> getVertices()
public float getLowestXValue()
Region
getLowestXValue in class Regionpublic float getLowestYValue()
getLowestYValue in class Regionpublic float getLowestZValue()
getLowestZValue in class Regionpublic float getXExtent()
public float getYExtent()
public float getZExtent()
public float getHighestXValue()
getHighestXValue in class Regionpublic float getHighestYValue()
getHighestYValue in class Regionpublic float getHighestZValue()
getHighestZValue in class Regionpublic String toString()
Region
toString in class Regionpublic static void main(String[] args)
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||