|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectplugins.big.bigsnakeutils.icy.ellipsoid.AbstractEllipsoid
public abstract class AbstractEllipsoid
Abstract class describing an ellipsoid. Gives access to some general methods. It's also possible to add custom properties to the ellipsoid, indexing them by name.
Constructor Summary | |
---|---|
AbstractEllipsoid()
|
Method Summary | |
---|---|
static double[] |
applyRotation(double[] R,
double[] V)
Apply a rotation to a vector. |
abstract AbstractEllipsoid |
clone()
Return another instance of this descriptor sharing the same properties. |
abstract double |
getMaximalRadius()
Maximum radius of the ellipsoid. |
abstract double |
getMinimalRadius()
Minimum radius of the ellipsoid. |
abstract double |
getPerimeter()
Perimeter of the ellipsoid (surface in 3D). |
double |
getProperty(java.lang.String propertyName)
Return the value of a property. |
abstract double[] |
getRotationMatrix()
Return the matrix of rotation corresponding to the ellipsoid orientation. |
int |
getT()
Time frame of the ellipsoid. |
abstract double |
getVolume()
Volume of the ellipsoid (surface in 2D). |
abstract boolean |
isValid()
Return true if the descriptor represents a valid ellipsoid. |
static double[] |
multiplyMatrices(double[] A,
double[] B)
Multiply to matrices. |
void |
setProperty(java.lang.String propertyName,
double value)
Set the value of a property. |
void |
setT(int t)
Set the time associated with this ellipsoid. |
abstract icy.roi.ROI |
toROI()
Return a new ROI corresponding to this descriptor. |
static double[] |
transposeMatrix(double[] A)
Transpose the given matrix. |
Methods inherited from class java.lang.Object |
---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public AbstractEllipsoid()
Method Detail |
---|
public abstract AbstractEllipsoid clone()
clone
in class java.lang.Object
public abstract boolean isValid()
public abstract double getMinimalRadius()
public abstract double getMaximalRadius()
public abstract double getPerimeter()
public abstract double getVolume()
public abstract double[] getRotationMatrix()
public int getT()
public void setT(int t)
public void setProperty(java.lang.String propertyName, double value)
propertyName
- Name of the property to set.value
- New value of the property.public double getProperty(java.lang.String propertyName)
java.lang.IllegalArgumentException
- An exception is raised if the property doesn't existpublic abstract icy.roi.ROI toROI()
public static double[] applyRotation(double[] R, double[] V)
R
- Rotation matrixV
- Vector to rotate
public static double[] multiplyMatrices(double[] A, double[] B)
public static double[] transposeMatrix(double[] A)
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |