|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
public interface FeatureStore
Data storage for "features" - elements used in feature/based warping/morphing. Features can be 1D (points), 2D (arrows), 3D (trangles) and can be placed in 2D space (plane) od 3D (3D warping).
| Field Summary | |
|---|---|
static int |
FEATURE_ARROW
Feature type: arrow (2D feature). |
static int |
FEATURE_POINT
Feature type: point (1D feature). |
static int |
FEATURE_TRIANGLE
Feature type: triangle (3D feature). |
static int |
NULL
Void (null) feature handle. |
| Fields inherited from interface cz.cuni.jagrlib.iface.Property |
|---|
LOGGING, STATISTICS, TEXT_DESCRIPTION |
| Method Summary | |
|---|---|
int |
featureEnd(int id)
Returns Time of death of the given feature. |
int |
featureStart(int id)
Returns Birth-time of the given feature. |
int |
featureType(int id)
Reads feature-type ( FEATURE_POINT, FEATURE_ARROW or FEATURE_TRIANGLE). |
double[] |
getCoords(int id,
double time,
double[] coords)
Reads feature coordinates of the given feature in the given time. |
java.lang.Object |
getParam(int id,
double time,
java.lang.String name)
Reads the given general parametr in the given time. |
double |
getParamDouble(int id,
double time,
java.lang.String name)
Reads the given floating-point parametr in the given time. |
int |
getParamInt(int id,
double time,
java.lang.String name)
Reads the given integer parametr in the given time. |
int |
insertFeature(int timeFrom,
int timeTo,
int type)
Inserts a new feature of the given type. |
int |
nextFeature(int id,
double time)
Finds the next feature in the database. |
void |
removeFeature(int id)
Removes the given feature from the database. |
void |
setCoords(int id,
int time,
double[] coords)
Sets feature coordinates of the given feature in the given keyframe-time. |
void |
setParam(int id,
int time,
java.lang.String name,
java.lang.Object value)
Sets feature's general parameter in the given keyframe-time. |
void |
setTimes(int id,
int timeFrom,
int timeTo)
Sets feature life-time. |
| Methods inherited from interface cz.cuni.jagrlib.iface.Property |
|---|
commit, get, set |
| Field Detail |
|---|
static final int FEATURE_POINT
static final int FEATURE_ARROW
static final int FEATURE_TRIANGLE
static final int NULL
| Method Detail |
|---|
int insertFeature(int timeFrom,
int timeTo,
int type)
type - Feature type (FEATURE_POINT, FEATURE_ARROW or FEATURE_TRIANGLE).
removeFeature(int),
setTimes(int, int, int),
setCoords(int, int, double[]),
setParam(int, int, java.lang.String, java.lang.Object)void removeFeature(int id)
id - Handle of an existing feature.
int nextFeature(int id,
double time)
NULL. This function also returns NULL
if there is no other feature..
id - Handle of previous feature (or NULL if we are restaring an iteration).time - Time of interest.
NULL if the previous was the last one).int featureType(int id)
FEATURE_POINT, FEATURE_ARROW or FEATURE_TRIANGLE).
void setTimes(int id,
int timeFrom,
int timeTo)
id - Handle of a feature.timeFrom - Birth-time of the feature.timeTo - Death-time of the feature.int featureStart(int id)
int featureEnd(int id)
void setCoords(int id,
int time,
double[] coords)
id - Handle of a feature.time - Keyframe-time.coords - Coordinate array (e.g. double[4] for 2D arrow feature:
[ x0, y0, x1, y1 ]).
double[] getCoords(int id,
double time,
double[] coords)
id - Handle of a feature.time - Time of interest. Needs not be keyframe-time.coords - Pre-allocated coordinate array to be filled
(double[4] for 2D arrow feature: [ x0, y0, x1, y1 ]). Can be null.
null.
void setParam(int id,
int time,
java.lang.String name,
java.lang.Object value)
id - Handle of a feature.time - Keyframe-time (NULL for time-independent parameter).name - Parameter identifier.value - New parameter value.
int getParamInt(int id,
double time,
java.lang.String name)
id - Handle of a feature.time - Time of interest. Needs not be keyframe-time.name - Parameter identifier.
double getParamDouble(int id,
double time,
java.lang.String name)
id - Handle of a feature.time - Time of interest. Needs not be keyframe-time.name - Parameter identifier.
java.lang.Object getParam(int id,
double time,
java.lang.String name)
id - Handle of a feature.time - Time of interest. Needs not be keyframe-time.name - Parameter identifier.
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||