Surface3D Object


Overview

A Chart Object creates a Plot object of type Surface3D when the chart type resource is set to XintCHART_TYPE_SURFACE_3D. This plot type displays its data as a 3D surface.

Data

The Surface3D class accepts data objects of type Grid or DataSampled. It first looks for a Grid data object, if one is not found, it searches for DataSampled objects. All the DataSampled objects should have the same increment, but can have different starting values (see resource XmNsampledRange to specify a non default start and increment).

Transposition is supported for the case where a Surface3D object displays a set of DataSampled objects. If Chart resource XmNtranspose is False, DataSampled objects are plotted along the X direction. If XmNtranspose it True, DataSampled objects are plotted along the Y direction.


Inherited Behavior and Resources

The Surface3D object class inherits behavior and resources from the Xt Object, Graphic, Group and Plot3D object classes.
The following resources are defined by the Surface3D object class.
NameTypeDefaultAccess
XmNcontourLineColorPixelblackCSG
XmNcontourLineModeintXintNO_CONTOUR_LINECSG
XmNcontourLineThicknessint1CSG
XmNfillModeintXintCONTOUR_FILLCSG
XmNmeshColorPixelblackCSG
XmNmeshDrawXBooleanTrueCSG
XmNmeshDrawYBooleanTrueCSG
XmNmeshModeintXintMONOCHROME_MESHCSG
XmNmeshLineThicknessint1CSG
XmNnumGridXint16CSG
XmNnumGridYint16CSG
XmNnumGridZint16CSG
XmNsolidSurfaceBooleanFalseCSG
XmNsurfaceBottomColorPixelgrayCSG
XmNsurfaceTopColorPixellight greyCSG


XmNcontourLineColor

Specifies the color used to draw contour lines when resource XmNcontourLineMode is set to XintCONTOUR_LINE.

XmNcontourLineMode

Specifies what type of contour lines to draw. You can use one of the following constants:

Resource ValueDescription
XintNO_CONTOUR_LINE (default)No contour line is drawn.
XintCONTOUR_LINEDraw the contour lines using color specified in resource XmNcontourLineColor.
XintCONTOUR_COLORED_LINEDraw the contour lines using the color based on the Z value.


XmNcontourLineThickness

Specifies the line thickness in pixels used to draw the contour lines.

XmNfillMode

Specifies the surface fill mode. You can specify one of the following constants:

Resource ValueDescription
XintNO_FILLNo fill.
XintSHADED_FILLSurface is drawn using two colors. One for the top of the surface (XmNsurfaceTopColor) and one for the bottom of the surface (XmNsurfaceBottomColor).
XintMOSAIC_FILLThe surface is filled using a uniform color inside each grid cell. The color used is based on the average Z value for each cell.
XintCONTOUR_FILLThe surface is filled along the contour lines. The color used is based on the contour value.


XmNmeshColor

Specifies the color used to draw the grid mesh.

XmNmeshDrawX, XmNmeshDrawY

Specifies whether the grid mesh is drawn along the X (Y) direction.

XmNmeshMode

Specifies the mode used to draw the mesh. You can use one of the following constants:

Resource ValueDescription
XintNO_MESHNo grid mesh is drawn.
XintCONTOUR_MESHGrid mesh is drawn using colors based on the Z values.
XintMONOCHROME_MESH (default)Mesh is drawn with color specified in resource XmNmeshColor.


XmNmeshLineThickness

Specifies the thickness in pixels of the line used to draw the grid mesh.

XmNnumGridX, XmNnumGridY

Specifies the number of grid lines in the X (Y) direction.

XmNnumGridZ

Specifies the number of contour levels.

XmNsolidSurface

When this resource is TRUE, the surface is rendered as a solid object by adding "sides" to the surface. The sides drop from the surface boundaries to the minimum Z value. The mesh and surface bottom colors are used when drawing the "sides".

XmNsurfaceBottomColor, XmNsurfaceTopColor

Specifies the pixel color used to draw the bottom (top) of the surface when resource XmNfillMode is set to XintSHADED_FILL

Plot3D Object Inherited Resources

See section
Plot3D Object Class for a complete listing of the inherited resources for the Surface3D object class.

Macro

Macro XintIsSurface3D returns True if the specified object is a Surface3D object.

     Boolean XintIsSurface3D (Object object)