>  Docs Center  >  IDL Reference  >  Object Graphics - Visualization  >  IDLgrVolume::SetProperty

IDLgrVolume::SetProperty

IDLgrVolume::SetProperty

Syntax | Arguments | Keywords | Version History

The IDLgrVolume::SetProperty procedure method sets the value of a property or group of properties for the volume.

Syntax


Obj->[IDLgrVolume::]SetProperty[, PROPERTY=value] [/NO_COPY]

Arguments


None

Keywords


Any property listed under IDLgrVolume Properties that contains the word “Yes” in the “Set” column of the properties table can be set using this method. To set the value of a property, specify the property name as a keyword set equal to the appropriate property value.

NO_COPY

If this keyword is set to a non-zero value, it relocates the volume data from the input variable to the volume object, leaving the input variable (DATA0, DATA1, DATA2, or DATA3) undefined. Only these data-related arguments and properties are affected by the NO_COPY keyword.

vol = BYTARR(30,30,30, /NOZERO)
oVol = OBJ_NEW('IDLgrVolume')
oVol->SetProperty, Data0=vol, /NO_COPY
 
; Verify that the data has been removed from the variable.
HELP, vol
; IDL prints VOL UNDEFINED = <Undefined>

If this keyword is omitted, the input volume data will be duplicated and a copy will be stored in the object.

Version History


5.0

Introduced

6.2

Added NO_COPY keyword



© 2019 Harris Geospatial Solutions, Inc. |  Legal
My Account    |    Store    |    Contact Us