Class FileInfoSurfaceXML_J3D
- java.lang.Object
-
- gov.nih.mipav.model.structures.ModelSerialCloneable
-
- gov.nih.mipav.model.file.FileInfoBase
-
- gov.nih.mipav.model.file.FileInfoXML
-
- gov.nih.mipav.model.file.FileInfoSurfaceXML
-
- gov.nih.mipav.view.renderer.J3D.model.file.FileInfoSurfaceXML_J3D
-
- All Implemented Interfaces:
java.io.Serializable
,java.lang.Cloneable
public class FileInfoSurfaceXML_J3D extends FileInfoSurfaceXML
This structure contains the information that describes how an XML surface (see surface.xsd and FileSurfaceXML.java) is stored on disk.- See Also:
FileIO
,FileInfoXML
,FileSurfaceXML
, Serialized Form
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from class gov.nih.mipav.model.file.FileInfoBase
FileInfoBase.AxisOrientation, FileInfoBase.ImageOrientation, FileInfoBase.Modality, FileInfoBase.Unit, FileInfoBase.UnitType
-
-
Field Summary
Fields Modifier and Type Field Description private javax.media.j3d.Material
m_kMaterial
Material properties of the surface:.private ModelTriangleMesh[]
m_kMesh
Surface triangle mesh:.-
Fields inherited from class gov.nih.mipav.model.file.FileInfoSurfaceXML
m_iUnique_ID, m_kLevelDetail, m_kOpacity, m_kType, meshIndex
-
Fields inherited from class gov.nih.mipav.model.file.FileInfoXML
imageDataFileName, imageDescription
-
Fields inherited from class gov.nih.mipav.model.file.FileInfoBase
ANGSTROMS, ANGSTROMS_STRING, AXIAL, axisOrientation, axisOrientationStr, BIOMAGNETIC_IMAGING, cameraMake, cameraModel, CENTIMETERS, CENTIMETERS_STRING, COLOR_FLOW_DOPPLER, COMPRESSION_BZIP2, COMPRESSION_GZIP, COMPRESSION_NONE, COMPRESSION_ZIP, COMPUTED_RADIOGRAPHY, COMPUTED_TOMOGRAPHY, conversionSpaceTimeUnits, CORONAL, DEGREES, DEGREES_STRING, DIAPHANOGRAPHY, DIGITAL_RADIOGRAPHY, DUPLEX_DOPPLER, ENDOSCOPY, exposureTime, EXTERNAL_CAMERA_PHOTOGRAPHY, FA, fileName, fileSuffix, FNumber, focalLength, focalLength35, GENERAL_MICROSCOPY, HARDCOPY, HOURS, HOURS_STRING, HZ, HZ_STRING, ICG, imageOrientation, INCHES, INCHES_STRING, INTRAORAL_RADIOGRAPHY, ISOSpeedRating, KILOMETERS, KILOMETERS_STRING, LASER_SURFACE_SCAN, MAGNETIC_RESONANCE, MAGNETIC_RESONANCE_ANGIOGRAPHY, MAGNETIC_RESONANCE_SPECTROSCOPY, MAMMOGRAPHY, METERS, METERS_STRING, MICROMETERS, MICROMETERS_STRING, MICROSEC, MICROSEC_STRING, MILES, MILES_STRING, MILLIMETERS, MILLIMETERS_STRING, MILLISEC, MILLISEC_STRING, MILS, MILS_STRING, MINUTES, MINUTES_STRING, modality, NANOMETERS, NANOMETERS_STRING, NANOSEC, NANOSEC_STRING, NUCLEAR_MEDICINE, ORI_A2P_TYPE, ORI_I2S_TYPE, ORI_L2R_TYPE, ORI_P2A_TYPE, ORI_R2L_TYPE, ORI_S2I_TYPE, ORI_UNKNOWN_TYPE, origin, OTHER, PANORAMIC_XRAY, POSITRON_EMISSION_TOMOGRAPHY, PPM, PPM_STRING, RADIO_FLUOROSCOPY, RADIOGRAPHIC_IMAGING, RADIOTHERAPY_DOSE, RADIOTHERAPY_IMAGE, RADIOTHERAPY_PLAN, RADIOTHERAPY_RECORD, RADIOTHERAPY_STRUCTURE_SET, RADS, RADS_STRING, RED_FREE, SAGITTAL, SECONDS, SECONDS_STRING, SINGLE_PHOTON_EMISSION_COMPUTED_TOMOGRAPHY, SLIDE_MICROSCOPY, sUnits, tagDescription, tagName, THERMOGRAPHY, TRANSFORM_ANOTHER_DATASET, TRANSFORM_MNI_152, TRANSFORM_SCANNER_ANATOMICAL, TRANSFORM_TALAIRACH_TOURNOUX, TRANSFORM_UNKNOWN, tUnits, ULTRASOUND, unitsOfMeasure, UNKNOWN_MEASURE, UNKNOWN_MODALITY, UNKNOWN_ORIENT, UNKNOWN_STRING, XRAY_ANGIOGRAPHY
-
-
Constructor Summary
Constructors Constructor Description FileInfoSurfaceXML_J3D(java.lang.String name, java.lang.String directory, int format)
Main constructor for FileInfoSurfaceXML.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
finalize()
Prepares the class for cleanup.javax.media.j3d.Material
getMaterial()
Returns the material properties for the surface:ModelTriangleMesh[]
getMesh()
Returns the ModelTriangleMesh representing the surface:void
setAmbient(javax.vecmath.Color3f kColor)
Sets the ambient color of the surface:void
setDiffuse(javax.vecmath.Color3f kColor)
Sets the diffuse color of the surface:void
setEmissive(javax.vecmath.Color3f kColor)
Sets the emissive color of the surface:void
setMaterial(javax.media.j3d.Material kMaterial)
Sets the material properties for the surface:void
setMesh(ModelTriangleMesh[] kMesh)
Sets the ModelTriangleMesh representing the surface:void
setMesh(javax.vecmath.Point3f[] kVertices, javax.vecmath.Vector3f[] kNormals, javax.vecmath.Color4f[] kColors, int[] aiConnectivity)
Creates the ModelTriangleMesh for the surface:void
setShininess(float fShininess)
Sets the surface shininess:void
setSpecular(javax.vecmath.Color3f kColor)
Sets the specular color of the surface:void
updateFileInfos(FileInfoXML fInfo)
Used to propogate all FileInfoSurfaceXML private variables to other FileInfosSurfaceXML.-
Methods inherited from class gov.nih.mipav.model.file.FileInfoSurfaceXML
displayAboutInfo, getID, getLevelDetail, getOpacity, getType, setID, setLevelDetail, setOpacity, setType
-
Methods inherited from class gov.nih.mipav.model.file.FileInfoXML
appendImageDescription, getImageDataFileName, getImageDescription, setImageDataFileName, setImageDescription
-
Methods inherited from class gov.nih.mipav.model.file.FileInfoBase
copyCoreInfo, copyCoreInfo, displayAboutInfo, displayPrimaryInfo, getAboutInfo, getAllSameDimUnits, getAreaUnitsOfMeasureStr, getAxisDirection, getAxisOrientation, getAxisOrientation, getAxisOrientationFromStr, getAxisOrientationStr, getCameraMake, getCameraModel, getCompressionType, getDataType, getDataTypeFromStr, getEndianess, getEndianessFromStr, getExposureTime, getExtents, getFileDirectory, getFileFormat, getFileName, getFileSuffix, getFNumber, getFocalLength, getFocalLength35, getImageOrientation, getImageOrientationFromStr, getImageOrientationStr, getIs2_5D, getISOSpeedRating, getLPSOrigin, getLUT, getMax, getMaxB, getMaxG, getMaxR, getMin, getMinB, getMinG, getMinR, getModality, getModalityFromStr, getModalityStr, getModalityStr, getMultiFile, getNumOfBytesPerPixel, getOffset, getOrigin, getOrigin, getOriginalEndianess, getOriginAtSlice, getPhotometric, getPixelPadValue, getPrimaryInfo, getRescaleIntercept, getRescaleSlope, getResolution, getResolutions, getSize, getSliceThickness, getUnitsOfMeasure, getUnitsOfMeasure, getUnitsOfMeasureAbbrevStr, getUnitsOfMeasureAbbrevStr, getUnitsOfMeasureFromStr, getUnitsOfMeasureStr, getUnitsOfMeasureStr, getVolumeUnitsOfMeasureStr, isDicomOrdered, oppositeOrient, sameAxis, setAxisOrientation, setAxisOrientation, setCameraMake, setCameraModel, setCompressionType, setDataType, setEndianess, setExposureTime, setExtents, setExtents, setFileDirectory, setFileFormat, setFileName, setFileSuffix, setFNumber, setFocalLength, setFocalLength35, setImageOrientation, setISOSpeedRating, setLUT, setMax, setMaxB, setMaxG, setMaxR, setMin, setMinB, setMinG, setMinR, setModality, setMultiFile, setOffset, setOrigin, setOrigin, setOriginalEndianess, setPhotometric, setPixelPadValue, setRescaleIntercept, setRescaleSlope, setResolutions, setResolutions, setSliceThickness, setTagDescription, setTagName, setUnitsOfMeasure, setUnitsOfMeasure, setUnitsOfMeasure, setUnitsOfMeasure, toString
-
Methods inherited from class gov.nih.mipav.model.structures.ModelSerialCloneable
clone, nativeClone
-
-
-
-
Field Detail
-
m_kMaterial
private javax.media.j3d.Material m_kMaterial
Material properties of the surface:.
-
m_kMesh
private ModelTriangleMesh[] m_kMesh
Surface triangle mesh:.
-
-
Method Detail
-
finalize
public void finalize()
Description copied from class:FileInfoSurfaceXML
Prepares the class for cleanup.- Overrides:
finalize
in classFileInfoSurfaceXML
-
getMaterial
public javax.media.j3d.Material getMaterial()
Returns the material properties for the surface:- Returns:
- DOCUMENT ME!
-
getMesh
public ModelTriangleMesh[] getMesh()
Returns the ModelTriangleMesh representing the surface:- Returns:
- DOCUMENT ME!
-
setAmbient
public void setAmbient(javax.vecmath.Color3f kColor)
Sets the ambient color of the surface:- Parameters:
kColor
- DOCUMENT ME!
-
setDiffuse
public void setDiffuse(javax.vecmath.Color3f kColor)
Sets the diffuse color of the surface:- Parameters:
kColor
- DOCUMENT ME!
-
setEmissive
public void setEmissive(javax.vecmath.Color3f kColor)
Sets the emissive color of the surface:- Parameters:
kColor
- DOCUMENT ME!
-
setMaterial
public void setMaterial(javax.media.j3d.Material kMaterial)
Sets the material properties for the surface:- Parameters:
kMaterial
- DOCUMENT ME!
-
setMesh
public void setMesh(ModelTriangleMesh[] kMesh)
Sets the ModelTriangleMesh representing the surface:- Parameters:
kMesh
- DOCUMENT ME!
-
setMesh
public void setMesh(javax.vecmath.Point3f[] kVertices, javax.vecmath.Vector3f[] kNormals, javax.vecmath.Color4f[] kColors, int[] aiConnectivity)
Creates the ModelTriangleMesh for the surface:- Parameters:
kVertices
- Mesh coordinateskNormals
- Mesh normals (may be null)kColors
- Mesh colors (may be null)aiConnectivity
- Mesh index connectivity array
-
setShininess
public void setShininess(float fShininess)
Sets the surface shininess:- Parameters:
fShininess
- DOCUMENT ME!
-
setSpecular
public void setSpecular(javax.vecmath.Color3f kColor)
Sets the specular color of the surface:- Parameters:
kColor
- DOCUMENT ME!
-
updateFileInfos
public void updateFileInfos(FileInfoXML fInfo)
Used to propogate all FileInfoSurfaceXML private variables to other FileInfosSurfaceXML.- Overrides:
updateFileInfos
in classFileInfoSurfaceXML
- Parameters:
fInfo
- FileInfoSurfaceXML file info to be copied into
-
-