Package | Description |
---|---|
ini.trakem2 | |
ini.trakem2.analysis | |
ini.trakem2.display | |
ini.trakem2.persistence | |
ini.trakem2.tree | |
ini.trakem2.utils |
Modifier and Type | Method and Description |
---|---|
ProjectThing |
Project.find(long id)
Find the ProjectThing instance with the given id.
|
ProjectThing |
Project.findProjectThing(Object ob)
Find a ProjectThing that contains the given object.
|
ProjectThing |
Project.getRootProjectThing() |
Modifier and Type | Method and Description |
---|---|
String |
Project.getShortMeaningfulTitle(ProjectThing thing,
Displayable d) |
void |
Project.resetRootProjectThing(ProjectThing pt,
HashMap<Thing,Boolean> ptree_exp)
For undo purposes.
|
Modifier and Type | Method and Description |
---|---|
static ArrayList<Compare.Chain> |
Compare.createPipeChains(ProjectThing root_pt,
LayerSet ls)
For a given pipe, create a VectorString3D for each possible path, as determined by the Project Tree structure and the parent/child relationships.
|
static ArrayList<Compare.Chain> |
Compare.createPipeChains(ProjectThing root_pt,
LayerSet ls,
String regex_exclude) |
static Map<String,Tuple3d> |
Compare.extractPoints(ProjectThing fiducial)
Extracts the list of fiduciary points from the fiducial parent and, if their name is different than "ball", adds their title as key and their first ball as a fiduciary point value of the returned map.
|
static List<VectorString3D> |
Compare.transferVectorStrings(List<VectorString3D> vs,
ProjectThing source_fiduciary,
ProjectThing target_fiduciary) |
Modifier and Type | Method and Description |
---|---|
Callable<Content> |
Display3D.createMesh(ProjectThing pt,
Displayable displ,
int resample)
Returns a function that returns a Content object.
|
static List<Point3f> |
Profile.generateTriangles(ProjectThing pt,
double scale)
Takes a profile_list, scans for its Profile children, makes sublists of continuous profiles (if they happen to be branched), and then creates triangles for them using weighted vector strings.
|
static void |
Display3D.remove(ProjectThing pt)
Considers there is only one Display3D for each LayerSet.
|
static void |
Display3D.removeFrom3D(ProjectThing pt)
Remove all basic type children contained in
pt and its children, recursively. |
static Future<Vector<Future<Content>>> |
Display3D.show(ProjectThing pt) |
static Future<Vector<Future<Content>>> |
Display3D.show(ProjectThing pt,
boolean wait,
int resample)
Scan the
ProjectThing children and assign the renderable ones to an existing Display3D for their LayerSet , or open a new one. |
static void |
Display3D.showAndResetView(ProjectThing pt) |
Modifier and Type | Method and Description |
---|---|
ProjectThing |
DBLoader.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.
|
Modifier and Type | Method and Description |
---|---|
LayerThing |
DBLoader.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.
|
Modifier and Type | Method and Description |
---|---|
ProjectThing |
ProjectThing.createChild(String type) |
ProjectThing |
ProjectThing.createClonedChild(ProjectThing child)
At the moment only for basic types, which by definition have no children.
|
ProjectThing |
ProjectThing.deepClone(Project project,
boolean copy_id)
Clone this ProjectThing with its template and all its children and objects cloned, and return it.
|
ProjectThing |
ProjectThing.findChild(long id)
Recursive search for the thing of the given id.
|
ProjectThing |
ProjectThing.getRootParent()
Crawl up until finding a parent that has no parent: the root.
|
ProjectThing |
ProjectThing.subclone(Project pr)
Implicit id copying; assumes the ids of the object are also the same in the given project; the object, if it is a DBObject, is retrieved from the given project by matching its id.
|
Modifier and Type | Method and Description |
---|---|
HashSet<ProjectThing> |
ProjectThing.collectSimilarThings(TemplateThing tt,
HashSet<ProjectThing> hs)
Recursive into children, find those of the given type that have the same parent chain as the given TemplateThing.
|
ArrayList<ProjectThing> |
ProjectThing.createChildren(String type,
int amount,
boolean recursive)
Creates one instance of the given type and if recursive, also of all possible children of it, and of them, and so on.
|
HashSet<ProjectThing> |
ProjectThing.findBasicTypeChildren()
Recursive into children.
|
HashSet<ProjectThing> |
ProjectThing.findBasicTypeChildren(HashSet<ProjectThing> hs_basic,
HashSet<ProjectThing> hs_visited)
Recursive into children, and adds this instance as well if it's a basic type.
|
ArrayList<ProjectThing> |
ProjectThing.findChildren(String regex,
String regex_exclude,
boolean shallow)
Recursive into children, searches for the things whose object.toString() matches the given regex, case insensitive.
|
ArrayList<ProjectThing> |
ProjectThing.findChildrenOfType(String type)
Check if this Thing directly contains any child of the given type, and return them all.
|
List<ProjectThing> |
ProjectThing.findChildrenOfTypeR(Class<?> c)
Finds them in order.
|
HashSet<ProjectThing> |
ProjectThing.findChildrenOfTypeR(HashSet<ProjectThing> hs,
String type)
Recursive into children.
|
List<ProjectThing> |
ProjectThing.findChildrenOfTypeR(List<ProjectThing> list,
Class<?> c)
Finds them in order.
|
HashSet<ProjectThing> |
ProjectThing.findChildrenOfTypeR(String type)
Recursive into children.
|
HashMap<String,ArrayList<ProjectThing>> |
ProjectThing.getByType()
Recursively browse all children to classify all nodes by type.
|
ArrayList<ProjectThing> |
ProjectThing.getChildren() |
Modifier and Type | Method and Description |
---|---|
boolean |
ProjectThing.addChild(ProjectThing child,
int index)
In addition, if the child contains an object of class ini.trakem2.display.Profile, reorders all children of the parent Thing by the Z of the layers of the profiles.
|
DefaultMutableTreeNode |
ProjectTree.addChild(ProjectThing parent,
String childType,
Displayable d)
|
TemplateThing |
TemplateTree.addNewChildType(ProjectThing pt,
String new_child_type)
Add a new template thing to an existing ProjectThing, so that new instances of template new_child_type can be added to the ProjectThing pt.
|
ProjectThing |
ProjectThing.createClonedChild(ProjectThing child)
At the moment only for basic types, which by definition have no children.
|
boolean |
ProjectTree.rawSendToSiblingProject(ProjectThing source_pt,
int transfer_mode,
Project target_project,
ProjectThing landing_parent)
Assumes that both projects have the same TemplateThing structure,
and assumes that the parent of the (
source_pt and the landing_parent
instances are of the same type. |
boolean |
ProjectTree.remove(boolean check,
ProjectThing thing,
DefaultMutableTreeNode node)
If the given node is null, it will be searched for.
|
boolean |
ProjectThing.removeChild(ProjectThing child) |
void |
ProjectTree.removeProjectThingLadder(ProjectThing lowest,
int levels)
Recursive as long as levels is above zero.
|
void |
ProjectTree.rename(ProjectThing thing) |
void |
ProjectTree.selectInDisplay(ProjectThing thing,
boolean shift_down) |
void |
ProjectTree.showInfo(ProjectThing thing) |
Modifier and Type | Method and Description |
---|---|
HashSet<ProjectThing> |
ProjectThing.collectSimilarThings(TemplateThing tt,
HashSet<ProjectThing> hs)
Recursive into children, find those of the given type that have the same parent chain as the given TemplateThing.
|
HashSet<ProjectThing> |
ProjectThing.findBasicTypeChildren(HashSet<ProjectThing> hs_basic,
HashSet<ProjectThing> hs_visited)
Recursive into children, and adds this instance as well if it's a basic type.
|
HashSet<ProjectThing> |
ProjectThing.findBasicTypeChildren(HashSet<ProjectThing> hs_basic,
HashSet<ProjectThing> hs_visited)
Recursive into children, and adds this instance as well if it's a basic type.
|
void |
ProjectThing.findChildren(ArrayList<ProjectThing> found,
Pattern pattern,
Pattern pattern_exclude,
boolean shallow)
Recursive into children, searches for things whose object.toString() matches the given regex pattern, and stores the found ProjectThing in the given ArrayList.
|
HashSet<ProjectThing> |
ProjectThing.findChildrenOfTypeR(HashSet<ProjectThing> hs,
String type)
Recursive into children.
|
List<ProjectThing> |
ProjectThing.findChildrenOfTypeR(List<ProjectThing> list,
Class<?> c)
Finds them in order.
|
Constructor and Description |
---|
ProjectTree(Project project,
ProjectThing project_thing) |
Constructor and Description |
---|
ProjectThing(TemplateThing template,
Project project,
long id,
Object ob,
ArrayList<ProjectThing> al_children)
Reconstruct a ProjectThing from the database, used in combination with the 'setup' method.
|
Modifier and Type | Method and Description |
---|---|
static void |
Render.exportSVG(ProjectThing thing,
double z_scale) |
Copyright © 2015–2021 Fiji. All rights reserved.