-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
14 changed files
with
158 additions
and
78 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
9 changes: 6 additions & 3 deletions
9
src/main/kotlin/com/preibisch/pinna2d/controllers/InstanceController.kt
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,27 +1,30 @@ | ||
package com.preibisch.pinna2d.controllers | ||
|
||
import com.preibisch.pinna2d.tools.Imp | ||
import com.preibisch.pinna2d.view.MainAnnotationView | ||
import tornadofx.* | ||
import java.io.File | ||
|
||
class InstanceController : Controller() { | ||
|
||
val annotationController: AnnotationController by inject() | ||
val fileController: FilesAnalyzeManager by inject() | ||
private val imageController: ImageController by inject() | ||
|
||
private var projectPath = "" | ||
var inputPath: String = "" | ||
var maskPath: String = "" | ||
var imageName: String = "" | ||
|
||
fun start(projectFolder : String, inputPath: String, maskPath: String) { | ||
fun start(imageId: Int, projectFolder: String, inputPath: String, maskPath: String) { | ||
this.projectPath = projectFolder | ||
this.inputPath = inputPath | ||
this.maskPath = maskPath | ||
this.imageName = File(inputPath).name | ||
println(imageName) | ||
imageController.start(inputPath, maskPath,imageName) | ||
annotationController.start(projectPath,imageName, Imp.get().min+1, Imp.get().max) | ||
fileController.startedImage(imageName) | ||
annotationController.start(imageId,projectPath,imageName, Imp.get().min+1, Imp.get().max) | ||
|
||
|
||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.