edu.washington.biostr.sig.brainj3d.view3D
Class ColorizedVolumeSurface3DView.KernelMaskView

java.lang.Object
  extended by edu.washington.biostr.sig.brainj3d.data.DefaultDataView<VolumeData>
      extended by edu.washington.biostr.sig.brainj3d.viewvolume.VolumeDataView
          extended by edu.washington.biostr.sig.brainj3d.view3D.ColorizedVolumeSurface3DView.KernelMaskView
All Implemented Interfaces:
DataView, Surface3DView, View3D, VolumeView
Enclosing class:
ColorizedVolumeSurface3DView

public static class ColorizedVolumeSurface3DView.KernelMaskView
extends VolumeDataView
implements Surface3DView

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. It has no user controls and does not appear directly in the rendered image.

Author:
Peter

Field Summary
 
Fields inherited from interface edu.washington.biostr.sig.brainj3d.model.Surface3DView
AMBIENT, DIFFUSE, EMISSIVE, INVERT, SCREEN_DOOR, SPECULAR, TRANSPARENCY, VERTEX_COLORS
 
Fields inherited from interface edu.washington.biostr.sig.brainj3d.volume.VolumeView
CORONAL, SAGITTAL, TRANSVERSE, XY_PLANE, XZ_PLANE, YZ_PLANE
 
Constructor Summary
ColorizedVolumeSurface3DView.KernelMaskView()
           
 
Method Summary
 void addParent(ColorizedVolumeSurface3DView parent)
          Adds a reference to another ColorizedVolumeSurface3DView.
 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.
 javax.media.j3d.Appearance getAppearance()
          Get the appearance used by this view if a single appearance exists.
 DataController getController(DataKey dataKey, DoTarget target)
          Get the controller for this DataView.
 javax.media.j3d.GeometryArray[] getGeoArrays()
           
 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.
 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()
          Notifies this data view that it has been removed from the model.
 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.viewvolume.VolumeDataView
fromPercent, getImage, getIntensity, getIntensity, getInterval, getLine, getLookupTable, getMaxTime, getMaxValue, getMinTime, getMinValue, getPercent, getScaledIntensity, getScaledIntensity, getSliceImage, getSpace, getSpaceTransform, getTuplesForImage, getValue, getValue, setLookupTable, setParameter, setParameters, setSpaceTransform, setTable, setUnit, toPercent
 
Methods inherited from class edu.washington.biostr.sig.brainj3d.data.DefaultDataView
addedToModel, equals, getCastData, getData, getDataKey, getKey, getParameter, getParameters, getTarget, hashCode, hasTime, setData, setDefaultParameters, setParameter, 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.shared.View3D
getSpace, getSpaceTransform, setSpaceTransform, setUnit
 
Methods inherited from interface edu.washington.biostr.sig.brainj3d.data.DataView
addedToModel, getData, getDataKey, getInterval, getKey, getMaxTime, getMinTime, getParameters, getTarget, hasTime, setData, setDefaultParameters, setParameter, setParameters, setTarget
 

Constructor Detail

ColorizedVolumeSurface3DView.KernelMaskView

public ColorizedVolumeSurface3DView.KernelMaskView()
Method Detail

getController

public DataController getController(DataKey dataKey,
                                    DoTarget target)
Description copied from interface: DataView
Get the controller for this DataView.

Specified by:
getController in interface DataView
Overrides:
getController in class VolumeDataView
target - The target or null if the target remains unchanged
Returns:

getNode

public javax.media.j3d.BranchGroup getNode()
Description copied from interface: Surface3DView
In order to display 3D Models we need to have a node that represents an object or set of objects. Since this view will not only be added to a single parent, you should return the same node each time this is called. It may be compiled or made live after being returned so all capabilities that need to be set should be set before the object is returned.

Specified by:
getNode in interface Surface3DView
Returns:

getAppearance

public javax.media.j3d.Appearance getAppearance()
Description copied from interface: Surface3DView
Get the appearance used by this view if a single appearance exists.

Specified by:
getAppearance in interface Surface3DView
Returns:
null if a single appearance doesn't exist, the appearance otherwise

canChangeAppearance

public boolean canChangeAppearance()
Description copied from interface: Surface3DView
Discover whether or not this object supports changing the appearance. If it does, the appearance returned from getAppearance should be modifiable.

Specified by:
canChangeAppearance in interface Surface3DView
Returns:

canChangeColors

public boolean canChangeColors()
Description copied from interface: Surface3DView
Determine whether or not the we can set the colors for individual points.

Specified by:
canChangeColors in interface Surface3DView
Returns:

canChangeNormals

public boolean canChangeNormals()
Description copied from interface: Surface3DView
Determine whether or not the we can set the colors for individual points.

Specified by:
canChangeNormals in interface Surface3DView
Returns:

canChangeVertices

public boolean canChangeVertices()
Description copied from interface: Surface3DView
Determine whether or not the we can set the colors for individual points.

Specified by:
canChangeVertices in interface Surface3DView
Returns:

canChange

public boolean canChange()
Description copied from interface: Surface3DView
If anything in this node can change, return true. The node must also have all of the capabilities set properly
setCapability(BranchGroup.ALLOW_CHILDREN_WRITE) is recommended.

Specified by:
canChange in interface Surface3DView
Returns:

canPick

public boolean canPick()
Description copied from interface: Surface3DView
If this object allows picking to select it, return this.

Specified by:
canPick in interface Surface3DView
Returns:
See Also:
PickTools.INTERSECT_TEST

canPickGeometry

public boolean canPickGeometry()
Description copied from interface: Surface3DView
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.

Specified by:
canPickGeometry in interface Surface3DView
Returns:
See Also:
PickTools.INTERSECT_FULL

isPlane3D

public boolean isPlane3D()
Description copied from interface: Surface3DView
If the object is a cutawaynode, return true.

Specified by:
isPlane3D in interface Surface3DView
Returns:

supportsAlternateAppearance

public boolean supportsAlternateAppearance()
Description copied from interface: Surface3DView
If we can set the alternate appearance in order to select this object, this should be true.

Specified by:
supportsAlternateAppearance in interface Surface3DView
Returns:

setUseColors

public void setUseColors(boolean useColors)
Description copied from interface: Surface3DView
Sometimes a view can decide whether or not to use explicit colors for each vertex or the material color. If it supports these behaviors, this should switch between them. Otherwise it should return quietly.

Specified by:
setUseColors in interface Surface3DView

canSwitchColors

public boolean canSwitchColors()
Description copied from interface: Surface3DView
If the view supports changing between per vertex color and appearance mode, this should return true.

Specified by:
canSwitchColors in interface Surface3DView
Returns:

getGeoArrays

public javax.media.j3d.GeometryArray[] getGeoArrays()
Specified by:
getGeoArrays in interface Surface3DView

getViewName

public String getViewName()
Description copied from interface: DataView
Get a name that should identify this type of view, but not this individual view.

Specified by:
getViewName in interface DataView
Overrides:
getViewName in class VolumeDataView
Returns:

getUnit

public String getUnit()
Specified by:
getUnit in interface View3D
Overrides:
getUnit in class VolumeDataView

addParent

public void addParent(ColorizedVolumeSurface3DView parent)
Adds a reference to another ColorizedVolumeSurface3DView.

Parameters:
parent -

removedFromModel

public void removedFromModel()
Notifies this data view that it has been removed from the model. Removes itself from each of the registered parents' kernelMaskViews.

Specified by:
removedFromModel in interface DataView
Overrides:
removedFromModel in class DefaultDataView<VolumeData>

getNodesToDetach

public javax.media.j3d.BranchGroup[] getNodesToDetach()
Description copied from interface: Surface3DView
Get all of the nodes to detach. This is called immediately after removedFromModel

Specified by:
getNodesToDetach in interface Surface3DView
Returns:


Copyright © 2006 University of Washington. All Rights Reserved.