Package ucar.unidata.data.point
Class PointCloudDataSource
java.lang.Object
ucar.unidata.collab.SharableImpl
ucar.unidata.data.DataSourceImpl
ucar.unidata.data.FilesDataSource
ucar.unidata.data.point.PointCloudDataSource
- All Implemented Interfaces:
Sharable
,DataSource
,DataSourceFactory
,XmlPersistable
A display control for volume rendering of a 3D grid
- Version:
- $Revision: 1.11 $
- Author:
- Unidata IDV Development Team
-
Field Summary
FieldsModifier and TypeFieldDescriptionprotected String
_more_static final float
_more_static final int
_more_static final int
_more_static final int
_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_TIMESTRIDE, PROP_TITLE
-
Constructor Summary
ConstructorsConstructorDescriptionDefault constructorPointCloudDataSource
(DataSourceDescriptor descriptor, String filename, Hashtable properties) _more_PointCloudDataSource
(DataSourceDescriptor descriptor, List sources, String name, Hashtable properties) Create a PointDataSource -
Method Summary
Modifier and TypeMethodDescriptionboolean
_more_boolean
_more_protected boolean
_more_void
_more_int
Get the ColorByIndex property.protected Data
getDataInner
(DataChoice dataChoice, DataCategory category, DataSelection dataSelection, Hashtable requestProperties) _more_Get the Delimiter property.int
Get the GridHeight property.int
Get the GridWidth property.Get the Header property.float
Get the HillShadeAngle property.float
Get the HillShadeAzimuth property.void
getPropertiesComponents
(List comps) _more_protected ucar.unidata.geoloc.ProjectionImpl
_more_int
getSkip()
Get the Skip property.Get the UtmInfo property.static void
_more_static FlatField
_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
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, getDefaultSave, 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, setDefaultSave, 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 Details
-
GRID_MISSING
public static final float GRID_MISSING_more_- See Also:
-
INDEX_ALT
public static final int INDEX_ALT_more_- See Also:
-
INDEX_LON
public static final int INDEX_LON_more_- See Also:
-
INDEX_LAT
public static final int INDEX_LAT_more_- See Also:
-
fieldName
_more_
-
-
Constructor Details
-
PointCloudDataSource
public PointCloudDataSource()Default constructor -
PointCloudDataSource
_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 DataSourcesources
- _more_name
- _more_properties
- extra properties- Throws:
VisADException
-
-
Method Details
-
canDoGeoSelection
public boolean canDoGeoSelection()_more_- Specified by:
canDoGeoSelection
in interfaceDataSource
- Overrides:
canDoGeoSelection
in classDataSourceImpl
- Returns:
- _more_
-
canDoGeoSelectionStride
protected boolean canDoGeoSelectionStride()_more_- Overrides:
canDoGeoSelectionStride
in classDataSourceImpl
- Returns:
- _more_
-
getSampleDataProjection
protected ucar.unidata.geoloc.ProjectionImpl getSampleDataProjection()_more_- Overrides:
getSampleDataProjection
in classDataSourceImpl
- Returns:
- _more_
-
getPropertiesComponents
_more_- Overrides:
getPropertiesComponents
in classDataSourceImpl
- Parameters:
comps
- _more_
-
applyProperties
public boolean applyProperties()_more_- Overrides:
applyProperties
in classDataSourceImpl
- Returns:
- _more_
-
getDataInner
protected Data getDataInner(DataChoice dataChoice, DataCategory category, DataSelection dataSelection, Hashtable requestProperties) throws VisADException, RemoteException _more_- Overrides:
getDataInner
in classDataSourceImpl
- 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 urldataSelection
- data subsettingskipToUse
- 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 classDataSourceImpl
-
setUtmInfo
Set the UtmInfo property.- Parameters:
value
- The new value for UtmInfo
-
getUtmInfo
Get the UtmInfo property.- Returns:
- The UtmInfo
-
main
_more_- Parameters:
args
- _more_- Throws:
Exception
- _more_
-
setDelimiter
Set the Delimiter property.- Parameters:
value
- The new value for Delimiter
-
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
Set the Header property.- Parameters:
value
- The new value for Header
-
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
-