|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectucl.physiol.neuroconstruct.project.Region
public abstract class Region
Base class for Regions in 3D. Any new Region must implement all the abstract methods here, most importantly, defining the internal variables which make the shape and implementing a 3D view for addPrimitiveForRegion()
| Constructor Summary | |
|---|---|
Region()
|
|
Region(String description)
|
|
| Method Summary | |
|---|---|
abstract 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 |
abstract Object |
clone()
Needs to be used when generating a copy. |
abstract boolean |
equals(Object obj)
|
String |
getDescription()
|
abstract float |
getHighestXValue()
|
abstract float |
getHighestYValue()
|
abstract float |
getHighestZValue()
|
abstract 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 |
abstract float |
getLowestYValue()
|
abstract float |
getLowestZValue()
|
InternalParameter[] |
getParameterList()
This function is needed for automatic storage of the Parameters by XMLEncoder. |
abstract Region |
getTranslatedRegion(Vector3f trans)
Gets a new Region of the same type, with coords translated by the specified Vector |
abstract double |
getVolume()
|
abstract boolean |
isCellWithinRegion(Point3f point,
Cell cell,
boolean completelyInside)
The function to check if the cell mentioned is within the region |
abstract boolean |
isPointInRegion(Point3f point)
|
protected boolean |
parametersEqual(Region region)
|
void |
setDescription(String description)
|
void |
setParameter(String parameterName,
float parameterValue)
Sub classes should know what the parameters mean, and so this function could need to be overwritten, for better checking of values |
void |
setParameterList(InternalParameter[] parameterList)
|
abstract String |
toString()
Returns a short summary of the class's state, for GUIs etc. |
| Methods inherited from class java.lang.Object |
|---|
finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Constructor Detail |
|---|
public Region()
public Region(String description)
| Method Detail |
|---|
public abstract boolean equals(Object obj)
equals in class Objectprotected boolean parametersEqual(Region region)
public InternalParameter[] getParameterList()
public void setParameter(String parameterName,
float parameterValue)
public void setParameterList(InternalParameter[] parameterList)
public abstract String toString()
toString in class Objectpublic abstract float getLowestXValue()
public abstract float getLowestYValue()
public abstract float getLowestZValue()
public abstract float getHighestXValue()
public abstract float getHighestYValue()
public abstract float getHighestZValue()
public abstract Object clone()
clone in class Object
public abstract boolean isCellWithinRegion(Point3f point,
Cell cell,
boolean completelyInside)
point - 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 abstract Region getTranslatedRegion(Vector3f trans)
public abstract boolean isPointInRegion(Point3f point)
public abstract double getVolume()
public abstract com.sun.j3d.utils.geometry.Primitive addPrimitiveForRegion(TransformGroup tg,
Appearance app)
public String getDescription()
public void setDescription(String description)
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||