public class OutlineHandler extends ShapeHandler<Outline> implements IQuimpSerialize
Modifier and Type | Field and Description |
---|---|
double[] |
curvLimits
The curv limits.
|
double[][] |
fluLims
The flu lims.
|
ExtendedVector2d |
maxCoor
The max coor.
|
double |
maxLength
longest outline in outlines.
|
double[] |
migLimits
The mig limits.
|
ExtendedVector2d |
minCoor
The min coor.
|
boolean |
readSuccess
The read success.
|
endFrame, startFrame
Constructor and Description |
---|
OutlineHandler()
Default constructor.
|
OutlineHandler(int s,
int e)
Instantiates a new outline handler.
|
OutlineHandler(OutlineHandler src)
Copy constructor.
|
OutlineHandler(QParams params)
Instantiates a new outline handler.
|
OutlineHandler(SnakeHandler snake)
Conversion constructor.
|
Modifier and Type | Method and Description |
---|---|
void |
afterSerialize()
Call afterSerialzie() for other objects and restore transient fields where possible.
|
void |
beforeSerialize()
Prepare all Outline stored in this OutlineHandler for loading.
|
int |
getEndFrame()
Gets the end frame.
|
int |
getSize()
Gets the size.
|
int |
getStartFrame()
Gets the start frame.
|
Outline |
getStoredOutline(int f)
Return Outline stored for frame f.
|
Outline |
indexGetOutline(int i)
Index get outline.
|
boolean |
isOutlineAt(int f)
Checks if is outline at.
|
void |
save(Outline o,
int frame)
Copy Outline into internal outlines array on correct position.
|
void |
setOutline(int f,
Outline o)
Sets the outline.
|
void |
writeOutlines(File outFile,
boolean isEccmRun)
Write this outline to disk.
|
public transient ExtendedVector2d maxCoor
public transient ExtendedVector2d minCoor
public transient double[] migLimits
public transient double[][] fluLims
public transient double[] curvLimits
public transient double maxLength
public transient boolean readSuccess
public OutlineHandler(QParams params)
params
- the paramspublic OutlineHandler(OutlineHandler src)
src
- to copy frompublic OutlineHandler(SnakeHandler snake)
Converts SnakeHandler to OutlineHandler. Converted are only Snakes and their range
snake
- source SnakeHandlerpublic OutlineHandler(int s, int e)
s
- start framee
- end framepublic OutlineHandler()
public int getStartFrame()
getStartFrame
in class ShapeHandler<Outline>
public int getEndFrame()
getEndFrame
in class ShapeHandler<Outline>
public Outline getStoredOutline(int f)
f
- the framepublic boolean isOutlineAt(int f)
f
- the fpublic Outline indexGetOutline(int i)
i
- the ipublic void setOutline(int f, Outline o)
f
- the fo
- the opublic int getSize()
public void save(Outline o, int frame)
o
- Outline to copy.frame
- Frame where copy Outline to.public void writeOutlines(File outFile, boolean isEccmRun)
outFile
- file to saveisEccmRun
- was ECMM run?public void beforeSerialize()
beforeSerialize
in interface IQuimpSerialize
Serializer.save(String)
public void afterSerialize() throws Exception
afterSerialize
in interface IQuimpSerialize
Exception
- from wrapped object in any problem. This is implementation dependentSerializer.load(String)
Copyright © 2002–2019 Department of Computer Science, Warwick University. All rights reserved.