public class DBLoader extends Loader
Loader.ImageLoadingLock
AREA_DOWNSAMPLING, changes, db_lock, DEFAULT_MIPMAPS_MODE, ERROR_PATH_NOT_FOUND, GAUSSIAN, GRAY_LUT, hs_unloadable, mawts, MAX_RETRIES, MIN_FREE_BYTES, MIPMAP_MODES, mipmaps_regen, NOT_FOUND, opener, PREPROCESSED, REGENERATING, RUNTIME, v_loaders
Constructor and Description |
---|
DBLoader()
Create and connect to the database.
|
Modifier and Type | Method and Description |
---|---|
void |
addCrossLink(long project_id,
long id1,
long id2) |
boolean |
addToDatabase(DBObject ob) |
void |
commitLargeUpdate()
Used in combination with startLargeUpdate()
|
void |
destroy()
Release all memory and unregister itself.
|
void |
disconnect()
Disconnect from the database.
|
Area |
fetchArea(long area_list_id,
long layer_id) |
ArrayList |
fetchBallPoints(long id) |
double[][][] |
fetchBezierArrays(long id)
Get the bezier points from the database for the given profile but as a triple array of points, that is, three arrays with 2 arrays (x and y) each.
|
ij.ImagePlus |
fetchImagePlus(Patch p) |
Object[] |
fetchLabel(DLabel label) |
ij.ImagePlus |
fetchOriginal(Patch patch)
Used for the revert command.
|
ArrayList |
fetchPipePoints(long id) |
long |
getNextId()
Retrieve next id from a sequence for a new DBObject to be added.
|
Project[] |
getProjects()
Fetch all existing projects from the database.
|
LayerThing |
getRootLayerThing(Project project,
ProjectThing project_thing,
TemplateThing layer_set_tt,
TemplateThing layer_tt)
Fetches the root LayerSet, fills it with children (recursively) and uses the profiles, pipes, etc., from the project_thing.
|
ProjectThing |
getRootProjectThing(Project project,
TemplateThing root_tt,
TemplateThing project_tt,
HashMap<Long,Displayable> hs_d)
Get all the Thing objects, recursively, for the root, and their corresponding encapsulated objects.
|
TemplateThing |
getTemplateRoot(Project project)
Fetch the root of the TemplateThing tree from the database-stored hierarchy of TemplateThing objects defined in the original XML file .
|
boolean |
hasChanges()
Always returns false.
|
protected Patch |
importStackAsPatches(Project project,
Layer first_layer,
double x,
double y,
ij.ImagePlus imp_stack,
boolean as_copy,
String filepath)
Returns the last Patch.
|
boolean |
isConnected()
Find out whether the connection is up.
|
boolean |
isIdenticalProjectSource(Loader loader) |
boolean |
isReady()
Check if settings are in.
|
boolean |
removeCrossLink(long id1,
long id2)
Remove a link between two objects.
|
boolean |
removeFromDatabase(DBObject ob) |
void |
restoreNodesExpandedState(Project project)
Affects only those set to true; the rest are left untouched.
|
void |
rollback()
Used when errors ocurr during a large insertion.
|
void |
startLargeUpdate()
Used in combination with commitLargeUpdate()
|
boolean |
updateInDatabase(DBObject ob,
Set<String> keys) |
boolean |
updateInDatabase(DBObject ob,
String key) |
addedPatchFrom, addJob, addNewImage, addNewImage, adjustChannels, askForXMLTemplate, cache, cache, cacheAWT, cacheImagePlus, canReadAndWriteTo, checkMipMapFileExists, clearIntensityMap, computeDesirableMinFreeBytes, countObjects, createFlyThrough, createLazyFlyThrough, createZippedStream, debug, decache, decacheAWT, decacheImagePlus, decacheImagePlus, deleteStaleFiles, deserialize, destroyPreloader, doGUILater, doLater, embedAlpha, embedAlpha, embedAlphaPre, enhanceContrast, enhanceContrast, enoughFreeMemory, estimateImageFileSize, export, exportImage, exportImage, fetchAWTImage, fetchDataImage, fetchImage, fetchImage, fetchImageMask, fetchImagePlus, fetchImageProcessor, fetchMipMapAWT, flush, flushMipMaps, flushMipMaps, generateLayerMipMaps, generateMipMaps, generateMipMaps, generateMipMaps, getAbsolutePath, getCached, getCachedAWT, getCachedClosestAboveImage, getCachedClosestBelowImage, getCachedImagePlus, getClosestMipMapLevel, getCoordinateTransformsFolder, getCurrentMemory, getDimensions, getDimensions, getFileName, getFlatAWTImage, getFlatAWTImage, getFlatImage, getFlatImage, getFlatImage, getFlatImage, getFlatImage, getFlatImage, getHighestMipMapLevel, getHighestMipMapLevel, getImageFilePath, getImageStorageFolder, getInternalFileName, getJobsPopup, getMasksFolder, getMipMapFormat, getMipMapLevel, getMipMapModeIndex, getMipMapModeName, getMipMapsFolder, getMipMapsRegenerationEnabled, getNextBlobId, getNextTempId, getOrMakeImageLoadingLock, getOrMakeImageLoadingLock, getParentFolder, getPath, getPathsCopy, getPreprocessorScriptPath, getStorageFolder, getUNUId, getUNUIdFolder, handleCacheError, handlePathlessImage, importGrid, importGrid, importImage, importImage, importImage, importImages, importImages, importLabelsAsAreaLists, importLabelsAsAreaLists, importNextImage, importSequenceAsGrid, importSequenceAsGrid, importSequenceAsGrid, importStack, importStack, importStack, importStackAsPatches, insertXMLOptions, isAsynchronous, isCached, isImagePlusCached, isMipMapsRegenerationEnabled, isSignalImage, isSnapPaintable, isUnloadable, makeAllPathsRelativeTo, makeFlatImage, makeFlatImage, makeFlatImage, makeGrayLut, makePatchesDir, makePrescaledTiles, makeProjectName, makeRelativePath, mapIntensities, markStaleFileForDeletionUponSaving, maskBorders, maskBorders, maskBordersLayerWise, maxDim, measureSize, openImage, openImagePlus, openStack, preload, preload, preProcess, printCache, printCaches, printCacheStatus, printMemState, queueForMipmapRemoval, quitJob, recoverOOME, recreateBuckets, recreateBuckets, regenerateMipMaps, regenerateMipMaps, releaseAll, releaseAllCaches, releaseMemory, releaseMemory2, releaseToFit, releaseToFit, removeAlphaMask, removeCached, removeCached, removeFromUnloadable, removeImageLoadingLock, removeJob, removeMipMaps, restorePaths, save, saveAs, saveAs, saveAs, saveTask, scaleImage, scaleImage, serialize, setChanged, setDesirableMinFreeBytes, setHeapFraction, setImageFile, setMinAndMax, setMipMapFormat, setMipMapsRegeneration, setPreprocessorScriptPath, setPreprocessorScriptPathSilently, setupMenuItems, setupPreloader, setupPreloaderThreads, storeAlphaMask, tagForMipmapRemoval, unzipTiff, updateMipMapsFormat, usesMipMapsFolder, writeXMLTo
public boolean isReady()
public void destroy()
public void startLargeUpdate()
startLargeUpdate
in class Loader
public void commitLargeUpdate()
commitLargeUpdate
in class Loader
public void rollback()
public boolean isConnected()
public void disconnect()
public long getNextId()
public TemplateThing getTemplateRoot(Project project)
public Project[] getProjects()
public ProjectThing getRootProjectThing(Project project, TemplateThing root_tt, TemplateThing project_tt, HashMap<Long,Displayable> hs_d)
public LayerThing getRootLayerThing(Project project, ProjectThing project_thing, TemplateThing layer_set_tt, TemplateThing layer_tt)
public double[][][] fetchBezierArrays(long id)
fetchBezierArrays
in class Loader
public Area fetchArea(long area_list_id, long layer_id)
public ArrayList fetchPipePoints(long id)
fetchPipePoints
in class Loader
public ArrayList fetchBallPoints(long id)
fetchBallPoints
in class Loader
public boolean addToDatabase(DBObject ob)
addToDatabase
in class Loader
public boolean updateInDatabase(DBObject ob, String key)
updateInDatabase
in class Loader
public boolean updateInDatabase(DBObject ob, Set<String> keys)
updateInDatabase
in class Loader
public boolean removeFromDatabase(DBObject ob)
removeFromDatabase
in class Loader
public void addCrossLink(long project_id, long id1, long id2)
addCrossLink
in class Loader
public boolean removeCrossLink(long id1, long id2)
removeCrossLink
in class Loader
public ij.ImagePlus fetchImagePlus(Patch p)
fetchImagePlus
in class Loader
public Object[] fetchLabel(DLabel label)
fetchLabel
in class Loader
public ij.ImagePlus fetchOriginal(Patch patch)
Loader
fetchOriginal
in class Loader
public boolean hasChanges()
hasChanges
in class Loader
public boolean isIdenticalProjectSource(Loader loader)
public void restoreNodesExpandedState(Project project)
Copyright © 2015–2021 Fiji. All rights reserved.