|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectedu.washington.biostr.sig.brainj3d.data.DefaultDataView<D>
edu.washington.biostr.sig.brainj3d.data.SharingDataView<VolumeData,SurfaceDataViewUnion>
edu.washington.biostr.sig.brainj3d.view3D.ColorizedVolumeSurface3DView
public class ColorizedVolumeSurface3DView
This class encapsulates the data view that combines volumetric data with a 3d surface to produce a color variant view on the 3d surface of the volumetric data.
| Nested Class Summary | |
|---|---|
static class |
ColorizedVolumeSurface3DView.KernelMaskView
This class acts as a dummy data view simply for holding a reference to the Mask Data used by the filter kernel to determine if data is inside or outside the brain. |
| Field Summary | |
|---|---|
protected SurfaceVolumeDataController |
controller
|
protected Helper |
helper
|
protected VolumeArray |
kernelizedArray
|
static String |
PROP_DATA_SAMPLER
String for extracting color scheme from parameters. |
static String |
PROP_ENABLE_KERNEL
String for extracting kernel status from parameters. |
static String |
PROP_KERNEL_RADIUS
String for extracting kernel radius from parameters. |
static String |
PROP_KERNEL_STRENGTH
String for extracting kernel strength from parameters. |
protected Surface3DView |
surfaceGeometryView
|
protected edu.washington.biostr.sig.brainj3d.view3D.ColorizedVolumeSurface3DView.KernelizedVolumeDataView |
volDataView
|
protected javax.vecmath.Vector3d |
voxelScale
|
| Fields inherited from interface edu.washington.biostr.sig.brainj3d.model.Surface3DView |
|---|
AMBIENT, DIFFUSE, EMISSIVE, INVERT, SCREEN_DOOR, SPECULAR, TRANSPARENCY, VERTEX_COLORS |
| Constructor Summary | |
|---|---|
ColorizedVolumeSurface3DView()
|
|
ColorizedVolumeSurface3DView(FileGroup key,
Data data)
|
|
| Method Summary | |
|---|---|
void |
addedToModel(DataModel<?> model)
Notify this data that it was added to the model. |
boolean |
canChange()
If anything in this node can change, return true. |
boolean |
canChangeAppearance()
Discover whether or not this object supports changing the appearance. |
boolean |
canChangeColors()
Determine whether or not the we can set the colors for individual points. |
boolean |
canChangeNormals()
Determine whether or not the we can set the colors for individual points. |
boolean |
canChangeVertices()
Determine whether or not the we can set the colors for individual points. |
boolean |
canPick()
If this object allows picking to select it, return this. |
boolean |
canPickGeometry()
If we can do a detailed pick on this object and geometry (to determine the exact location on the model of the pick), this should be set to true. |
boolean |
canSwitchColors()
If the view supports changing between per vertex color and appearance mode, this should return true. |
protected SurfaceDataViewUnion |
generateSharedData()
Generate a new shared data if this is not shared. |
javax.media.j3d.Appearance |
getAppearance()
Get the appearance used by this view if a single appearance exists. |
Surface3DView |
getAttachedView()
Gets the surface model view attached to this volume data view. |
DataController |
getController(DataKey dataKey,
DoTarget target)
Get the controller for this DataView. |
VolumeData |
getData()
Return the data object associated with this view. |
javax.media.j3d.GeometryArray[] |
getGeoArrays()
|
protected Helper |
getHelper()
Attempts to get the helper associated with this DataView. |
int |
getInterval()
|
ColorLookupTable |
getLookupTable()
Gets the ColorLookupTable in use by this view. |
int |
getMaxTime()
|
int |
getMinTime()
|
javax.media.j3d.BranchGroup |
getNode()
In order to display 3D Models we need to have a node that represents an object or set of objects. |
javax.media.j3d.BranchGroup[] |
getNodesToDetach()
Get all of the nodes to detach. |
Plane3D |
getPlane3D()
Get a Plane3D that this view contains. |
String |
getSpace()
|
javax.media.j3d.Transform3D |
getSpaceTransform()
|
String |
getUnit()
|
String |
getViewName()
Get a name that should identify this type of view, but not this individual view. |
boolean |
isPlane3D()
If the object is a cutawaynode, return true. |
void |
removedFromModel()
Notify this data that it was removed from model. |
void |
setAttachedView(Surface3DView otherView)
Attaches this volume data view to the specified surface view. |
void |
setControllerBlendFunction(String name)
Sets the blend function on this data view's controller. |
void |
setData(FileGroup key,
Data data)
Initialize this view with the given data and the specified meta data (in the form of a map of tags). throw an ImmutableException if it is called more than once. |
void |
setDataSampler(String name)
Sets the data sampling method to the specified method. |
void |
setDefaultParameters(Set<Tag> metadata)
Restore the defaults parameters. |
Object |
setParameter(String parameter,
Object value,
boolean beLazy)
Set a parameter |
protected boolean |
setParameter(String parameter,
Object value,
Object oldValue,
boolean beLazy)
Set a parameter. |
void |
setParameters(Map<String,Object> parameters)
Set the parameters to have the data in parameters, plus any
disjoint parameters. |
void |
setSpaceTransform(String newSpace,
javax.media.j3d.Transform3D trans)
|
void |
setUnit(String newUnit)
|
void |
setUseColors(boolean useColors)
Sometimes a view can decide whether or not to use explicit colors for each vertex or the material color. |
boolean |
supportsAlternateAppearance()
If we can set the alternate appearance in order to select this object, this should be true. |
| Methods inherited from class edu.washington.biostr.sig.brainj3d.data.SharingDataView |
|---|
countSharedViews, getAll, getShared, setShared, share |
| Methods inherited from class edu.washington.biostr.sig.brainj3d.data.DefaultDataView |
|---|
equals, getCastData, getDataKey, getKey, getParameter, getParameters, getTarget, hashCode, hasTime, setParameter, setTarget, toString |
| Methods inherited from class java.lang.Object |
|---|
clone, finalize, getClass, notify, notifyAll, wait, wait, wait |
| Methods inherited from interface edu.washington.biostr.sig.brainj3d.data.DataView |
|---|
getDataKey, getKey, getParameters, getTarget, hasTime, setParameter, setTarget |
| Field Detail |
|---|
public static final String PROP_DATA_SAMPLER
public static final String PROP_ENABLE_KERNEL
public static final String PROP_KERNEL_RADIUS
public static final String PROP_KERNEL_STRENGTH
protected edu.washington.biostr.sig.brainj3d.view3D.ColorizedVolumeSurface3DView.KernelizedVolumeDataView volDataView
protected VolumeArray kernelizedArray
protected javax.vecmath.Vector3d voxelScale
protected Surface3DView surfaceGeometryView
protected SurfaceVolumeDataController controller
protected Helper helper
| Constructor Detail |
|---|
public ColorizedVolumeSurface3DView()
public ColorizedVolumeSurface3DView(FileGroup key,
Data data)
| Method Detail |
|---|
public javax.media.j3d.BranchGroup getNode()
Surface3DView
getNode in interface Surface3DViewpublic boolean isPlane3D()
Surface3DView
isPlane3D in interface Surface3DViewpublic Plane3D getPlane3D()
Plane3DView
getPlane3D in interface Plane3DViewpublic void setDataSampler(String name)
name - protected final Helper getHelper()
public javax.media.j3d.Appearance getAppearance()
Surface3DView
getAppearance in interface Surface3DViewpublic boolean canChangeAppearance()
Surface3DView
canChangeAppearance in interface Surface3DViewpublic boolean canChangeColors()
Surface3DView
canChangeColors in interface Surface3DViewpublic boolean canChangeNormals()
Surface3DView
canChangeNormals in interface Surface3DViewpublic boolean canChangeVertices()
Surface3DView
canChangeVertices in interface Surface3DViewpublic boolean canChange()
Surface3DViewsetCapability(BranchGroup.ALLOW_CHILDREN_WRITE)
is recommended.
canChange in interface Surface3DViewpublic boolean canPick()
Surface3DView
canPick in interface Surface3DViewPickTools.INTERSECT_TESTpublic boolean canPickGeometry()
Surface3DView
canPickGeometry in interface Surface3DViewPickTools.INTERSECT_FULLpublic boolean supportsAlternateAppearance()
Surface3DView
supportsAlternateAppearance in interface Surface3DViewpublic void setUseColors(boolean useColors)
Surface3DView
setUseColors in interface Surface3DViewpublic boolean canSwitchColors()
Surface3DView
canSwitchColors in interface Surface3DViewpublic javax.media.j3d.GeometryArray[] getGeoArrays()
getGeoArrays in interface Surface3DViewpublic void setUnit(String newUnit)
setUnit in interface View3Dpublic String getUnit()
getUnit in interface View3Dpublic String getSpace()
getSpace in interface View3D
public void setSpaceTransform(String newSpace,
javax.media.j3d.Transform3D trans)
setSpaceTransform in interface View3Dpublic javax.media.j3d.Transform3D getSpaceTransform()
getSpaceTransform in interface View3D
public DataController getController(DataKey dataKey,
DoTarget target)
DataView
getController in interface DataViewtarget - The target or null if the target remains unchanged
public String getViewName()
DataView
getViewName in interface DataView
public Object setParameter(String parameter,
Object value,
boolean beLazy)
DefaultDataView
setParameter in class DefaultDataView<VolumeData>beLazy - true if we should defer any lengthy processing. The last modified parameter must have use false.
protected boolean setParameter(String parameter,
Object value,
Object oldValue,
boolean beLazy)
DefaultDataView
setParameter in class DefaultDataView<VolumeData>public void setParameters(Map<String,Object> parameters)
DefaultDataViewparameters, plus any
disjoint parameters.
setParameters in interface DataViewsetParameters in class DefaultDataView<VolumeData>public void setDefaultParameters(Set<Tag> metadata)
DefaultDataView
setDefaultParameters in interface DataViewsetDefaultParameters in class DefaultDataView<VolumeData>metadata - Use metadata to customize the view.public int getMaxTime()
getMaxTime in interface DataViewgetMaxTime in class DefaultDataView<VolumeData>public int getMinTime()
getMinTime in interface DataViewgetMinTime in class DefaultDataView<VolumeData>public int getInterval()
getInterval in interface DataViewgetInterval in class DefaultDataView<VolumeData>
public void setData(FileGroup key,
Data data)
DataView
setData in interface DataViewsetData in class DefaultDataView<VolumeData>public VolumeData getData()
DataView
getData in interface DataViewgetData in class DefaultDataView<VolumeData>public void addedToModel(DataModel<?> model)
DefaultDataView
addedToModel in interface DataViewaddedToModel in class SharingDataView<VolumeData,SurfaceDataViewUnion>public void removedFromModel()
DefaultDataView
removedFromModel in interface DataViewremovedFromModel in class DefaultDataView<VolumeData>public javax.media.j3d.BranchGroup[] getNodesToDetach()
Surface3DView
getNodesToDetach in interface Surface3DViewpublic void setAttachedView(Surface3DView otherView)
otherView - public Surface3DView getAttachedView()
public ColorLookupTable getLookupTable()
protected SurfaceDataViewUnion generateSharedData()
SharingDataView
generateSharedData in class SharingDataView<VolumeData,SurfaceDataViewUnion>public void setControllerBlendFunction(String name)
name -
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||