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, sourcesFields inherited from class ucar.unidata.data.DataSourceImpl
changeDataPathsCbx, dataCacheKey, dataChoices, geoSelectionPanel, haveBeenUnPersisted, okToContinue, PARAM_SHOW_HIDE, PARAM_SHOW_NO, PARAM_SHOW_YESFields 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_intGet the ColorByIndex property.protected DatagetDataInner(DataChoice dataChoice, DataCategory category, DataSelection dataSelection, Hashtable requestProperties) _more_Get the Delimiter property.intGet the GridHeight property.intGet the GridWidth property.Get the Header property.floatGet the HillShadeAngle property.floatGet the HillShadeAzimuth property.voidgetPropertiesComponents(List comps) _more_protected ucar.unidata.geoloc.ProjectionImpl_more_intgetSkip()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:voidsetColorByIndex(int value) Set the ColorByIndex property.voidsetDelimiter(String value) Set the Delimiter property.voidsetGridHeight(int value) Set the GridHeight property.voidsetGridWidth(int value) Set the GridWidth property.voidSet the Header property.voidsetHillShadeAngle(float value) Set the HillShadeAngle property.voidsetHillShadeAzimuth(float value) Set the HillShadeAzimuth property.voidsetSkip(int value) Set the Skip property.voidsetUtmInfo(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, updateStateMethods 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, writeFieldMaskFileMethods inherited from class ucar.unidata.collab.SharableImpl
applySharableProperties, doShare, doShare, doShareExternal, doShareInternal, getReceiveShareTime, getSharablePropertiesComponent, getShareGroup, getSharing, getUniqueId, initSharable, receiveShareData, removeSharable, setReceiveShareTime, setShareGroup, setSharing, setUniqueId, showSharableDialogMethods inherited from class java.lang.Object
clone, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitMethods 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:
canDoGeoSelectionin interfaceDataSource- Overrides:
canDoGeoSelectionin classDataSourceImpl- Returns:
- _more_
-
canDoGeoSelectionStride
protected boolean canDoGeoSelectionStride()_more_- Overrides:
canDoGeoSelectionStridein classDataSourceImpl- Returns:
- _more_
-
getSampleDataProjection
protected ucar.unidata.geoloc.ProjectionImpl getSampleDataProjection()_more_- Overrides:
getSampleDataProjectionin classDataSourceImpl- Returns:
- _more_
-
getPropertiesComponents
_more_- Overrides:
getPropertiesComponentsin classDataSourceImpl- Parameters:
comps- _more_
-
applyProperties
public boolean applyProperties()_more_- Overrides:
applyPropertiesin classDataSourceImpl- Returns:
- _more_
-
getDataInner
protected Data getDataInner(DataChoice dataChoice, DataCategory category, DataSelection dataSelection, Hashtable requestProperties) throws VisADException, RemoteException _more_- Overrides:
getDataInnerin 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:
doMakeDataChoicesin 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
-