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
90c8c2b4
Unverified
Commit
90c8c2b4
authored
7 years ago
by
Philipp Hanslovsky
Browse files
Options
Downloads
Patches
Plain Diff
Add constructor for non-primitive types.
parent
2ddeee05
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
src/main/java/bdv/img/cache/VolatileCachedCellImg.java
+16
-0
16 additions, 0 deletions
src/main/java/bdv/img/cache/VolatileCachedCellImg.java
with
16 additions
and
0 deletions
src/main/java/bdv/img/cache/VolatileCachedCellImg.java
+
16
−
0
View file @
90c8c2b4
package
bdv.img.cache
;
package
bdv.img.cache
;
import
java.util.function.Function
;
import
bdv.cache.CacheControl
;
import
bdv.cache.CacheControl
;
import
bdv.img.cache.VolatileCachedCellImg.VolatileCachedCells
;
import
bdv.img.cache.VolatileCachedCellImg.VolatileCachedCells
;
import
net.imglib2.Volatile
;
import
net.imglib2.Volatile
;
...
@@ -9,6 +11,7 @@ import net.imglib2.cache.volatiles.CacheHints;
...
@@ -9,6 +11,7 @@ import net.imglib2.cache.volatiles.CacheHints;
import
net.imglib2.cache.volatiles.LoadingStrategy
;
import
net.imglib2.cache.volatiles.LoadingStrategy
;
import
net.imglib2.img.Img
;
import
net.imglib2.img.Img
;
import
net.imglib2.img.ImgFactory
;
import
net.imglib2.img.ImgFactory
;
import
net.imglib2.img.NativeImg
;
import
net.imglib2.img.cell.AbstractCellImg
;
import
net.imglib2.img.cell.AbstractCellImg
;
import
net.imglib2.img.cell.Cell
;
import
net.imglib2.img.cell.Cell
;
import
net.imglib2.img.cell.CellGrid
;
import
net.imglib2.img.cell.CellGrid
;
...
@@ -16,6 +19,7 @@ import net.imglib2.img.cell.LazyCellImg;
...
@@ -16,6 +19,7 @@ import net.imglib2.img.cell.LazyCellImg;
import
net.imglib2.img.list.AbstractLongListImg
;
import
net.imglib2.img.list.AbstractLongListImg
;
import
net.imglib2.type.NativeType
;
import
net.imglib2.type.NativeType
;
import
net.imglib2.type.NativeTypeFactory
;
import
net.imglib2.type.NativeTypeFactory
;
import
net.imglib2.util.Fraction
;
/**
/**
* A {@link LazyCellImg} for {@link Volatile} accesses. The only difference to
* A {@link LazyCellImg} for {@link Volatile} accesses. The only difference to
...
@@ -28,6 +32,7 @@ import net.imglib2.type.NativeTypeFactory;
...
@@ -28,6 +32,7 @@ import net.imglib2.type.NativeTypeFactory;
*
*
* @author Tobias Pietzsch
* @author Tobias Pietzsch
* @author Stephan Saalfeld
* @author Stephan Saalfeld
* @author Philipp Hanslovsky
*/
*/
public
class
VolatileCachedCellImg
<
T
extends
NativeType
<
T
>,
A
>
public
class
VolatileCachedCellImg
<
T
extends
NativeType
<
T
>,
A
>
extends
AbstractCellImg
<
T
,
A
,
Cell
<
A
>,
VolatileCachedCells
<
Cell
<
A
>
>
>
extends
AbstractCellImg
<
T
,
A
,
Cell
<
A
>,
VolatileCachedCells
<
Cell
<
A
>
>
>
...
@@ -38,6 +43,17 @@ public class VolatileCachedCellImg< T extends NativeType< T >, A >
...
@@ -38,6 +43,17 @@ public class VolatileCachedCellImg< T extends NativeType< T >, A >
T
get
(
long
index
,
CacheHints
cacheHints
);
T
get
(
long
index
,
CacheHints
cacheHints
);
}
}
public
VolatileCachedCellImg
(
final
CellGrid
grid
,
final
Fraction
entitiesPerPixel
,
Function
<
NativeImg
<
T
,
?
super
A
>,
T
>
typeFactory
,
final
CacheHints
cacheHints
,
final
Get
<
Cell
<
A
>
>
get
)
{
super
(
grid
,
new
VolatileCachedCells
<>(
grid
.
getGridDimensions
(),
get
,
cacheHints
),
entitiesPerPixel
);
setLinkedType
(
typeFactory
.
apply
(
this
)
);
}
public
VolatileCachedCellImg
(
final
CellGrid
grid
,
final
T
type
,
final
CacheHints
cacheHints
,
final
Get
<
Cell
<
A
>
>
get
)
public
VolatileCachedCellImg
(
final
CellGrid
grid
,
final
T
type
,
final
CacheHints
cacheHints
,
final
Get
<
Cell
<
A
>
>
get
)
{
{
super
(
grid
,
new
VolatileCachedCells
<>(
grid
.
getGridDimensions
(),
get
,
cacheHints
),
type
.
getEntitiesPerPixel
()
);
super
(
grid
,
new
VolatileCachedCells
<>(
grid
.
getGridDimensions
(),
get
,
cacheHints
),
type
.
getEntitiesPerPixel
()
);
...
...
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