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.

Patch Propertiesspecify your own vertex normals, <strong>MATLAB</strong> sets this property to manual anddoes not generate its own data. See also the VertexNormals property.Parentaxes handlePatch’s parent. The handle of the patch’s parent object. The parent of a patchobject is the axes in which it is displayed. You can move a patch object toanother axes by setting this property to the handle of the new parent.Selectedon | {off}Is object selected? When this property is on, <strong>MATLAB</strong> displays selectionhandles or a dashed box (depending on the number of faces) if theSelectionHighlight property is also on. You can, for example, define theButtonDownFcn to set this property, allowing users to select the object with themouse.SelectionHighlight {on} | offObjects highlight when selected. When the Selected property is on, <strong>MATLAB</strong>indicates the selected state by:• Drawing handles at each vertex for a single-faced patch.• Drawing a dashed bounding box for a multi-faced patch.When SelectionHighlight is off, <strong>MATLAB</strong> does not draw the handles.SpecularColorReflectancescalar in the range 0 to 1Color of specularly reflected light. When this property is 0, the color of thespecularly reflected light depends on both the color of the object from which itreflects and the color of the light source. When set to 1, the color of thespecularly reflected light depends only on the color or the light source (i.e., thelight object Color property). The proportions vary linearly for values inbetween.SpecularExponent scalar >= 1Harshness of specular reflection. This property controls the size of the specularspot. Most materials have exponents in the range of 5 to 20.SpecularStrength scalar >= 0 and

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

Saved successfully!

Ooh no, something went wrong!