public class ViewRegistration extends ViewId
Modifier and Type | Field and Description |
---|---|
protected AffineTransform3D |
model
The affine registration model of this view mapping local into world
coordinates.
|
protected ArrayList<ViewTransform> |
transformList |
Constructor and Description |
---|
ViewRegistration(int timepointId,
int setupId)
Creates a new
ViewRegistration object using the identity transformation |
ViewRegistration(int timepointId,
int setupId,
AffineTransform3D transform)
Creates a new
ViewRegistration object using one
AffineTransform3D transform. |
ViewRegistration(int timepointId,
int setupId,
ArrayList<ViewTransform> transforms)
Creates a new
ViewRegistration object using a list of
ViewTransform transforms. |
Modifier and Type | Method and Description |
---|---|
void |
concatenateTransform(ViewTransform transform)
Concatenate a transform to the
transform list
and update the concatenated model. |
AffineTransform3D |
getModel()
Get the affine registration model of this view mapping local into world
coordinates.
|
List<ViewTransform> |
getTransformList()
Get the list of
transforms . |
void |
identity()
Reset the
ViewRegistration to the identity transform |
void |
preconcatenateTransform(ViewTransform transform)
Pre-concatenate a transform to the
transform
list and update the concatenated model. |
void |
updateModel()
Update the
model by concatenating all transforms from
the transform list . |
compareTo, equals, getTimePointId, getViewSetupId, hashCode
protected final AffineTransform3D model
protected final ArrayList<ViewTransform> transformList
public ViewRegistration(int timepointId, int setupId)
ViewRegistration
object using the identity transformationtimepointId
- setupId
- public ViewRegistration(int timepointId, int setupId, AffineTransform3D transform)
ViewRegistration
object using one
AffineTransform3D
transform. The transform
specifies
a general affine transformation from view-local coordinates (pixels) to
global coordinates.timepointId
- setupId
- transform
- public ViewRegistration(int timepointId, int setupId, ArrayList<ViewTransform> transforms)
ViewRegistration
object using a list of
ViewTransform
transforms. The affine transformation from
view-local coordinates (pixels) to global coordinates is obtained as the
concatenation of all transforms
.timepointId
- setupId
- transforms
- public AffineTransform3D getModel()
public void updateModel()
model
by concatenating all transforms from
the transform list
.public List<ViewTransform> getTransformList()
transforms
. The affine
transformation from view-local coordinates (pixels) to global coordinates
is obtained as the concatenation of the transforms in the list.
The returned list is modifiable, as well as the transforms it contains.
Modifications to the list or individual transforms should be followed by
updateModel()
to update the concatenated model
.
The returned list may be empty, which implies that the overall
model
is the identity transform.
public void concatenateTransform(ViewTransform transform)
transform list
and update
the concatenated model.transform
- public void preconcatenateTransform(ViewTransform transform)
transform
list
and update
the concatenated model.transform
- public void identity()
ViewRegistration
to the identity transformCopyright © 2015–2021 Fiji. All rights reserved.