public class QParamsQconf extends QParams
ECMp
,
Q_Analysis
,
ANAp
. QuimP supports two independent file
formats:
cortexWidth, finalShrink, fluTiffs, NEW_QUIMP, OLD_QUIMP, paramFormat, QUIMP_11, statsQP
Constructor and Description |
---|
QParamsQconf()
Instantiates a new q params qconf.
|
QParamsQconf(File p)
Set default values for superclass, also prefix and path for files.
|
Modifier and Type | Method and Description |
---|---|
File[] |
findParamFiles()
For new file format it redirects call to super class searching for old files (paQP).
|
int |
getActiveHandler()
Gets the active handler.
|
int |
getBlowup()
getBlowup.
|
int |
getEndFrame()
getEndFrame.
|
String |
getFileName()
Get name of configuration file.
|
QuimpVersion |
getFileVersion()
Return file creation date and other parameters.
|
double |
getFrameInterval()
getFrameInterval.
|
double |
getImageScale()
getImageScale.
|
DataContainer |
getLoadedDataContainer()
Extract DataContainer from Serializer super class.
|
Nest |
getNest()
Return Nest object.
|
double |
getNodeRes()
getNodeRes.
|
File |
getParamFile()
Get configuration file (with path).
|
File |
getSnakeQP()
Create fake snQP name, for compatibility reasons.
|
int |
getStartFrame()
getStartFrame.
|
File |
getStatsQP()
Get stats file name.
|
void |
readParams()
Read composite QCONF file.
|
void |
setActiveHandler(int num)
Sets the active handler.
|
void |
setBlowup(int blowup)
setBlowup.
|
void |
setEndFrame(int endFrame)
setEndFrame.
|
void |
setFrameInterval(double frameInterval)
setFrameInterval.
|
void |
setImageScale(double imageScale)
setImageScale.
|
void |
setNodeRes(double nodeRes)
setNodeRes.
|
void |
setStartFrame(int startFrame)
setStartFrame.
|
void |
writeOldParams()
Write parameter file paQP in old format (QuimP11).
|
void |
writeParams()
Write all parameters in new format.
|
getConvexFile, getCoordFile, getFluFiles, getMotilityFile, getOriginFile, getParamFormat, getPath, getPathasPath, getSegImageFile, getxmapFile, getymapFile, guessOtherFileNames, isEcmmHasRun, setConvexFile, setCoordFile, setMotilityFile, setOriginFile, setParamFile, setSegImageFile, setSnakeQP, setStatsQP, setxmapFile, setymapFile, verifyEcmminpsnQP
public QParamsQconf()
public QParamsQconf(File p)
p
- QCONF file with extensionpublic File getParamFile()
getParamFile
in class QParams
QParams.getPath()
public String getFileName()
getFileName
in class QParams
public DataContainer getLoadedDataContainer()
public QuimpVersion getFileVersion()
public void readParams() throws QuimpException
Update outputFileCore in BOAState.BOAp
to current QCONF.
readParams
in class QParams
QuimpException
- when problem with loading/parsing JSONpublic void setActiveHandler(int num)
num
- the new active handlerpublic int getActiveHandler()
public void writeParams() throws IOException
Makes pure dump what means that object is already packed with QuimP format. Used when original data has been loaded, modified and then they must be saved again under the same name.
writeParams
in class QParams
IOException
- When file can not be savedpublic void writeOldParams() throws IOException
IOException
public int getStartFrame()
QParams
getStartFrame
in class QParams
public void setStartFrame(int startFrame)
QParams
setStartFrame
in class QParams
startFrame
- the startFrame to setpublic int getEndFrame()
QParams
getEndFrame
in class QParams
public void setEndFrame(int endFrame)
QParams
setEndFrame
in class QParams
endFrame
- the endFrame to setpublic double getImageScale()
QParams
getImageScale
in class QParams
public void setImageScale(double imageScale)
QParams
setImageScale
in class QParams
imageScale
- the imageScale to setpublic double getFrameInterval()
QParams
getFrameInterval
in class QParams
public void setFrameInterval(double frameInterval)
QParams
setFrameInterval
in class QParams
frameInterval
- the frameInterval to setpublic int getBlowup()
QParams
public void setBlowup(int blowup)
QParams
public double getNodeRes()
QParams
getNodeRes
in class QParams
public void setNodeRes(double nodeRes)
QParams
setNodeRes
in class QParams
nodeRes
- the nodeRes to setpublic File[] findParamFiles()
Finally old files can be processed together with new one.
findParamFiles
in class QParams
QParams.findParamFiles()
public File getSnakeQP()
getSnakeQP
in class QParams
QParams.getSnakeQP()
public File getStatsQP()
QParams
getStatsQP
in class QParams
Copyright © 2002–2019 Department of Computer Science, Warwick University. All rights reserved.