Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
B
BigDataViewer_Core_Extension
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Package registry
Container registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
BioinformaticDataCompression
BigDataViewer_Core_Extension
Commits
4faa05c7
Commit
4faa05c7
authored
11 years ago
by
Tobias Pietzsch
Browse files
Options
Downloads
Patches
Plain Diff
make BigDataViewer a bit more extension friendly
parent
35ebb9ce
No related branches found
No related tags found
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
core/src/main/java/bdv/BigDataViewer.java
+19
-19
19 additions, 19 deletions
core/src/main/java/bdv/BigDataViewer.java
with
19 additions
and
19 deletions
core/src/main/java/bdv/BigDataViewer.java
+
19
−
19
View file @
4faa05c7
...
...
@@ -61,29 +61,29 @@ import bdv.viewer.ViewerPanel;
public
class
BigDataViewer
{
final
ViewerFrame
viewerFrame
;
protected
final
ViewerFrame
viewerFrame
;
final
ViewerPanel
viewer
;
protected
final
ViewerPanel
viewer
;
final
SetupAssignments
setupAssignments
;
protected
final
SetupAssignments
setupAssignments
;
final
ManualTransformation
manualTransformation
;
protected
final
ManualTransformation
manualTransformation
;
final
BrightnessDialog
brightnessDialog
;
protected
final
BrightnessDialog
brightnessDialog
;
final
CropDialog
cropDialog
;
protected
final
CropDialog
cropDialog
;
final
RecordMovieDialog
movieDialog
;
protected
final
RecordMovieDialog
movieDialog
;
final
VisibilityAndGroupingDialog
activeSourcesDialog
;
protected
final
VisibilityAndGroupingDialog
activeSourcesDialog
;
final
HelpDialog
helpDialog
;
protected
final
HelpDialog
helpDialog
;
final
ManualTransformationEditor
manualTransformationEditor
;
protected
final
ManualTransformationEditor
manualTransformationEditor
;
final
JFileChooser
fileChooser
;
protected
final
JFileChooser
fileChooser
;
File
proposedSettingsFile
;
protected
File
proposedSettingsFile
;
public
void
toggleManualTransformation
()
{
...
...
@@ -209,7 +209,7 @@ public class BigDataViewer
}
@SuppressWarnings
(
{
"unchecked"
,
"rawtypes"
}
)
p
rivate
static
void
initSetups
(
p
ublic
static
void
initSetups
(
final
AbstractSpimData
<
?
>
spimData
,
final
ArrayList
<
ConverterSetup
>
converterSetups
,
final
ArrayList
<
SourceAndConverter
<
?
>
>
sources
)
...
...
@@ -222,7 +222,7 @@ public class BigDataViewer
else
throw
new
IllegalArgumentException
(
"ImgLoader of type "
+
type
.
getClass
()
+
" not supported."
);
}
pr
ivate
BigDataViewer
(
final
String
xmlFilename
,
final
ProgressWriter
progressWriter
)
throws
SpimDataException
pr
otected
BigDataViewer
(
final
String
xmlFilename
,
final
ProgressWriter
progressWriter
)
throws
SpimDataException
{
final
int
width
=
800
;
final
int
height
=
600
;
...
...
@@ -358,7 +358,7 @@ public class BigDataViewer
// ( ( Hdf5ImageLoader ) seq.imgLoader ).initCachedDimensionsFromHdf5( false );
}
boolean
tryLoadSettings
(
final
String
xmlFilename
)
protected
boolean
tryLoadSettings
(
final
String
xmlFilename
)
{
proposedSettingsFile
=
null
;
if
(
xmlFilename
.
endsWith
(
".xml"
)
)
...
...
@@ -381,7 +381,7 @@ public class BigDataViewer
return
false
;
}
void
saveSettings
()
protected
void
saveSettings
()
{
fileChooser
.
setSelectedFile
(
proposedSettingsFile
);
final
int
returnVal
=
fileChooser
.
showSaveDialog
(
null
);
...
...
@@ -399,7 +399,7 @@ public class BigDataViewer
}
}
void
saveSettings
(
final
String
xmlFilename
)
throws
IOException
protected
void
saveSettings
(
final
String
xmlFilename
)
throws
IOException
{
final
Element
root
=
new
Element
(
"Settings"
);
root
.
addContent
(
viewer
.
stateToXml
()
);
...
...
@@ -410,7 +410,7 @@ public class BigDataViewer
xout
.
output
(
doc
,
new
FileWriter
(
xmlFilename
)
);
}
void
loadSettings
()
protected
void
loadSettings
()
{
fileChooser
.
setSelectedFile
(
proposedSettingsFile
);
final
int
returnVal
=
fileChooser
.
showOpenDialog
(
null
);
...
...
@@ -428,7 +428,7 @@ public class BigDataViewer
}
}
void
loadSettings
(
final
String
xmlFilename
)
throws
IOException
,
JDOMException
protected
void
loadSettings
(
final
String
xmlFilename
)
throws
IOException
,
JDOMException
{
final
SAXBuilder
sax
=
new
SAXBuilder
();
final
Document
doc
=
sax
.
build
(
xmlFilename
);
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment