12.07.2015 Views

MATLAB Function Reference (Volume 2: Graphics)

MATLAB Function Reference (Volume 2: Graphics)

MATLAB Function Reference (Volume 2: Graphics)

SHOW MORE
SHOW LESS

You also want an ePaper? Increase the reach of your titles

YUMPU automatically turns print PDFs into web optimized ePapers that Google loves.

Light PropertiesLightProperties2Light PropertiesThis section lists property names along with the type of values each accepts.BusyActioncancel | {queue}Callback routine interruption. The BusyAction property enables you to controlhow <strong>MATLAB</strong> handles events that potentially interrupt executing callbackroutines. If there is a callback routine executing, subsequently invokedcallback routes always attempt to interrupt it. If the Interruptible propertyof the object whose callback is executing is set to on (the default), theninterruption occurs at the next point where the event queue is processed. If theInterruptible property is off, the BusyAction property (of the object owningthe executing callback) determines how <strong>MATLAB</strong> handles the event. Thechoices are:• cancel – discard the event that attempted to execute a second callbackroutine.• queue – queue the event that attempted to execute a second callback routineuntil the current callback finishes.ButtonDownFcn stringThis property is not useful on lights.ChildrenhandlesThe empty matrix; light objects have no children.Clippingon | offClipping has no effect on light objects.ColorColorSpecColor of light. This property defines the color of the light emanating from thelight object. Define it as three-element RGB vector or one of <strong>MATLAB</strong>’spredefined names. See the ColorSpec reference page for more information.CreateFcnstringCallback routine executed during object creation. This property defines acallback routine that executes when <strong>MATLAB</strong> creates a light object. You mustdefine this property as a default value for lights. For example, the statement,set(0,'DefaultLightCreateFcn','set(gcf,''Colormap'',hsv)')2-265

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!