ucar.unidata.data.point
Class PointCloudDataSource

java.lang.Object
  extended by ucar.unidata.collab.SharableImpl
      extended by ucar.unidata.data.DataSourceImpl
          extended by ucar.unidata.data.FilesDataSource
              extended by ucar.unidata.data.point.PointCloudDataSource
All Implemented Interfaces:
Sharable, DataSource, DataSourceFactory, XmlPersistable

public class PointCloudDataSource
extends FilesDataSource

A display control for volume rendering of a 3D grid

Version:
$Revision: 1.11 $
Author:
Unidata IDV Development Team

Field Summary
protected  String fieldName
          _more_
static float GRID_MISSING
          _more_
static int INDEX_ALT
          _more_
static int INDEX_LAT
          _more_
static int INDEX_LON
          _more_
 
Fields inherited from class ucar.unidata.data.FilesDataSource
adapters, oldSourceFromBundles, sources
 
Fields inherited from class ucar.unidata.data.DataSourceImpl
changeDataPathsCbx, dataCacheKey, dataChoices, geoSelectionPanel, haveBeenUnPersisted, okToContinue, PARAM_SHOW_HIDE, PARAM_SHOW_NO, PARAM_SHOW_YES
 
Fields inherited from interface ucar.unidata.data.DataSource
DATAPATH_DATE_FORMAT, DATAPATH_DATE_PATTERN, MOST_RECENT, ordinalNames, PROP_AUTOCREATEDISPLAY, PROP_BASEDIRECTORY, PROP_CACHEABLE, PROP_DATACHOICENAME, PROP_DISPLAYPROPERTIES, PROP_DOCUMENTLINKS, PROP_FILEPATTERN, PROP_GEOLOCATION, PROP_ICON, PROP_NAME, PROP_POLLINFO, PROP_RESOLVERURL, PROP_SERVICE_HTTP, PROP_SUBPROPERTIES, PROP_TIMELABELS, PROP_TITLE
 
Constructor Summary
PointCloudDataSource()
          Default constructor
PointCloudDataSource(DataSourceDescriptor descriptor, List sources, String name, Hashtable properties)
          Create a PointDataSource
PointCloudDataSource(DataSourceDescriptor descriptor, String filename, Hashtable properties)
          _more_
 
Method Summary
 boolean applyProperties()
          _more_
 boolean canDoGeoSelection()
          _more_
protected  boolean canDoGeoSelectionStride()
          _more_
 void doMakeDataChoices()
          _more_
 int getColorByIndex()
          Get the ColorByIndex property.
protected  Data getDataInner(DataChoice dataChoice, DataCategory category, DataSelection dataSelection, Hashtable requestProperties)
          _more_
 String getDelimiter()
          Get the Delimiter property.
 int getGridHeight()
          Get the GridHeight property.
 int getGridWidth()
          Get the GridWidth property.
 String getHeader()
          Get the Header property.
 float getHillShadeAngle()
          Get the HillShadeAngle property.
 float getHillShadeAzimuth()
          Get the HillShadeAzimuth property.
 void getPropertiesComponents(List comps)
          _more_
protected  ucar.unidata.geoloc.ProjectionImpl getSampleDataProjection()
          _more_
 int getSkip()
          Get the Skip property.
 UtmInfo getUtmInfo()
          Get the UtmInfo property.
static void main(String[] args)
          _more_
static FlatField makeField(MathType rangeType, float[][] pts)
          _more_
protected  float[][] readPoints(String filePath, DataSelection dataSelection, int skipToUse)
          This reads the actual lat/lon/alt points and returns an array of the form:
 void setColorByIndex(int value)
          Set the ColorByIndex property.
 void setDelimiter(String value)
          Set the Delimiter property.
 void setGridHeight(int value)
          Set the GridHeight property.
 void setGridWidth(int value)
          Set the GridWidth property.
 void setHeader(String value)
          Set the Header property.
 void setHillShadeAngle(float value)
          Set the HillShadeAngle property.
 void setHillShadeAzimuth(float value)
          Set the HillShadeAzimuth property.
 void setSkip(int value)
          Set the Skip property.
 void setUtmInfo(UtmInfo value)
          Set the UtmInfo property.
 
Methods inherited from class ucar.unidata.data.FilesDataSource
doRemove, equals, getDataFileExtension, getDataPaths, getFilePath, getFullDescription, getInputStreams, getLocationsForPolling, getPartialDescription, getSource, getSources, haveSources, initAfterCreation, initAfterUnpersistence, initWithPollingInfo, isFileBased, newFilesFromPolling, processDataFilename, propertiesChanged, reloadData, reloadData, saveDataToLocalDisk, setNewFiles, setSource, setSources, sourcesChanged, updateState
 
Methods inherited from class ucar.unidata.data.DataSourceImpl
addActions, addDataChangeListener, addDataChoice, addPropertiesTabs, addReloadTab, applyFieldMask, beginWritingDataToLocalDisk, canAddCurrentName, canCacheDataToDisk, canChangeData, canDoAllLevels, canDoFieldMask, canDoGeoSelectionMap, canPoll, canSaveDataToLocalDisk, canShowParameter, checkForInitAfterUnPersistence, clearCachedData, clearFileCache, clearTimes, convertSourceFile, convertToFilesIfDirectory, createAutoDisplay, createCacheKey, createElement, decrOutstandingGetDataCalls, doDirectory, doMakeDateTimes, doMakeGeoSelectionPanel, doMakeGeoSelectionPanel, doMakeGeoSelectionPanel, doMakeGeoSubsetPropertiesComponent, endWritingDataToLocalDisk, expandIfNeeded, findDataChoice, findDataChoices, flushCache, getAbsoluteDateTimes, getActions, getAlias, getAllDateTimes, getAllDateTimes, getAllLevels, getAllLevels, getAllTimesForTimeDriver, getCache, getCache, getCacheClearDelay, getCacheDataToDisk, getCompositeDataChoices, getData, getData, getDataCachePath, getDataChangeListeners, getDataChoices, getDataContext, getDataInner, getDataIsEditable, getDataPrefix, getDataSelection, getDataSelectionComponents, getDataSource, getDateTimes, getDateTimeSelection, getDescription, getDescriptor, getErrorMessage, getEverChangedName, getExtraGeoSelectionComponent, getExtraTimesComponent, getFileFilterForPolling, getid, getIdv, getInError, getLocalDirectory, getLocationForPolling, getMostRecentFiles, getName, getNameForDataSource, getNeedToShowErrorToUser, getNextId, getOutstandingGetDataCalls, getPassword, getPathsThatCanBeRelative, getPollingInfo, getProperties, getPropertiesHeader, getProperty, getProperty, getProperty, getProperty, getProperty, getProperty, getProperty, getRelativePaths, getSaveDataFileLabel, getSelectedDateTimes, getSelectedDateTimes, getTimesFromDataSelection, getTmpPaths, getTypeName, getUserName, handlePropertiesAction, hasPollingInfo, holdsDateTimes, holdsIndices, identifiedBy, identifiedByName, incrOutstandingGetDataCalls, initAfter, initDataChoice, initDataSelectionComponents, initFromXml, isPolling, loadFieldMask, loadFieldMask, loadLatestFile, logException, logException, makeDerivedDataChoices, makeSaveLocalActions, newFileFromPolling, notifyDataChange, putCache, putCache, reloadProperties, removeCache, removeDataChangeListener, removeDataChoice, removeProperty, replaceDataChoice, resetTmpState, saveDataToLocalDisk, saveDataToLocalDisk, selectTimesFromList, setAlias, setAskToUpdate, setCacheClearDelay, setCacheDataToDisk, setDataEditableStrings, setDataIsEditable, setDataIsRelative, setDataRelativeStrings, setDataSelection, setDateTimeSelection, setDescription, setDescriptor, setDirectory, setEverChangedName, setInError, setInError, setInError, setName, setObjectProperties, setObjectProperty, setPassword, setPollingInfo, setPollLocation, setProperties, setProperty, setProperty, setRelativePaths, setTemplateName, setTmpPaths, setUserName, shouldCache, shouldCache, showPasswordDialog, showPropertiesDialog, showPropertiesDialog, showPropertiesDialog, showWaitDialog, tick, toString, toStringTruncated, updateDetailsText, writeFieldMaskFile, writeFieldMaskFile
 
Methods inherited from class ucar.unidata.collab.SharableImpl
applySharableProperties, doShare, doShare, doShareExternal, doShareInternal, getReceiveShareTime, getSharablePropertiesComponent, getShareGroup, getSharing, getUniqueId, initSharable, receiveShareData, removeSharable, setReceiveShareTime, setShareGroup, setSharing, setUniqueId, showSharableDialog
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 
Methods inherited from interface ucar.unidata.data.DataSource
getUniqueId
 

Field Detail

GRID_MISSING

public static final float GRID_MISSING
_more_

See Also:
Constant Field Values

INDEX_ALT

public static final int INDEX_ALT
_more_

See Also:
Constant Field Values

INDEX_LON

public static final int INDEX_LON
_more_

See Also:
Constant Field Values

INDEX_LAT

public static final int INDEX_LAT
_more_

See Also:
Constant Field Values

fieldName

protected String fieldName
_more_

Constructor Detail

PointCloudDataSource

public PointCloudDataSource()
Default constructor


PointCloudDataSource

public PointCloudDataSource(DataSourceDescriptor descriptor,
                            String filename,
                            Hashtable properties)
_more_

Parameters:
descriptor - _more_
filename - _more_
properties - _more_

PointCloudDataSource

public PointCloudDataSource(DataSourceDescriptor descriptor,
                            List sources,
                            String name,
                            Hashtable properties)
                     throws VisADException
Create a PointDataSource

Parameters:
descriptor - descriptor for the DataSource
sources - _more_
name - _more_
properties - extra properties
Throws:
VisADException
Method Detail

canDoGeoSelection

public boolean canDoGeoSelection()
_more_

Specified by:
canDoGeoSelection in interface DataSource
Overrides:
canDoGeoSelection in class DataSourceImpl
Returns:
_more_

canDoGeoSelectionStride

protected boolean canDoGeoSelectionStride()
_more_

Overrides:
canDoGeoSelectionStride in class DataSourceImpl
Returns:
_more_

getSampleDataProjection

protected ucar.unidata.geoloc.ProjectionImpl getSampleDataProjection()
_more_

Overrides:
getSampleDataProjection in class DataSourceImpl
Returns:
_more_

getPropertiesComponents

public void getPropertiesComponents(List comps)
_more_

Overrides:
getPropertiesComponents in class DataSourceImpl
Parameters:
comps - _more_

applyProperties

public boolean applyProperties()
_more_

Overrides:
applyProperties in class DataSourceImpl
Returns:
_more_

getDataInner

protected Data getDataInner(DataChoice dataChoice,
                            DataCategory category,
                            DataSelection dataSelection,
                            Hashtable requestProperties)
                     throws VisADException,
                            RemoteException
_more_

Overrides:
getDataInner in class DataSourceImpl
Parameters:
dataChoice - _more_
category - _more_
dataSelection - _more_
requestProperties - _more_
Returns:
_more_
Throws:
RemoteException - _more_
VisADException - _more_

readPoints

protected float[][] readPoints(String filePath,
                               DataSelection dataSelection,
                               int skipToUse)
                        throws IOException
This reads the actual lat/lon/alt points and returns an array of the form:
float[lat/lon/alt/optional value][number pf points]

Parameters:
filePath - Path to the file or url
dataSelection - data subsetting
skipToUse - skip factor 0 = all points. 1 = skip 1, etc.
Returns:
points
Throws:
IOException - On badness

makeField

public static FlatField makeField(MathType rangeType,
                                  float[][] pts)
                           throws VisADException,
                                  RemoteException
_more_

Parameters:
rangeType - _more_
pts - _more_
Returns:
_more_
Throws:
RemoteException - _more_
VisADException - _more_

doMakeDataChoices

public void doMakeDataChoices()
_more_

Overrides:
doMakeDataChoices in class DataSourceImpl

setUtmInfo

public void setUtmInfo(UtmInfo value)
Set the UtmInfo property.

Parameters:
value - The new value for UtmInfo

getUtmInfo

public UtmInfo getUtmInfo()
Get the UtmInfo property.

Returns:
The UtmInfo

main

public static void main(String[] args)
                 throws Exception
_more_

Parameters:
args - _more_
Throws:
Exception - _more_

setDelimiter

public void setDelimiter(String value)
Set the Delimiter property.

Parameters:
value - The new value for Delimiter

getDelimiter

public String getDelimiter()
Get the Delimiter property.

Returns:
The Delimiter

setColorByIndex

public void setColorByIndex(int value)
Set the ColorByIndex property.

Parameters:
value - The new value for ColorByIndex

getColorByIndex

public int getColorByIndex()
Get the ColorByIndex property.

Returns:
The ColorByIndex

setSkip

public void setSkip(int value)
Set the Skip property.

Parameters:
value - The new value for Skip

getSkip

public int getSkip()
Get the Skip property.

Returns:
The Skip

setHeader

public void setHeader(String value)
Set the Header property.

Parameters:
value - The new value for Header

getHeader

public String getHeader()
Get the Header property.

Returns:
The Header

setGridWidth

public void setGridWidth(int value)
Set the GridWidth property.

Parameters:
value - The new value for GridWidth

getGridWidth

public int getGridWidth()
Get the GridWidth property.

Returns:
The GridWidth

setGridHeight

public void setGridHeight(int value)
Set the GridHeight property.

Parameters:
value - The new value for GridHeight

getGridHeight

public int getGridHeight()
Get the GridHeight property.

Returns:
The GridHeight

setHillShadeAzimuth

public void setHillShadeAzimuth(float value)
Set the HillShadeAzimuth property.

Parameters:
value - The new value for HillShadeAzimuth

getHillShadeAzimuth

public float getHillShadeAzimuth()
Get the HillShadeAzimuth property.

Returns:
The HillShadeAzimuth

setHillShadeAngle

public void setHillShadeAngle(float value)
Set the HillShadeAngle property.

Parameters:
value - The new value for HillShadeAngle

getHillShadeAngle

public float getHillShadeAngle()
Get the HillShadeAngle property.

Returns:
The HillShadeAngle