formZ SDK | 4.0 Call Back Reference | Surface Style Representation

# fz_srep_cbak_data_iface_tmpl2

Description

Surface Style Representation dialog function (Required, if fz_srep_cbak_data_iface_tmpl_func is not defined). This callback is the same as fz_srep_cbak_data_iface_tmpl_func but gives mroe control over the layout of the dialog. In spcific, it is possible to place items on the left of the preview by using gleft as the parent item, below the preview by using grite and across the bottom by using gbottom.
This function is called whenever a Material is edited. It is expected to create the dialog template and the editing items to display the content of the Surface Style Representation. The Material Parameters dialog is constructed new for each Surface Style Representation. The user may switch between different represnetations in the dailog by selecting is from the list in the dialog.
By default, there is always "Simple", but more may be present (for example RenderZone or other pluing renderers).

Plugin Prototype

fzrt_error_td fz_srep_cbak_data_iface_tmpl2(

fzrt_int | windex,
fz_fuim_tmpl_ptr | fuim_tmpl,
fzrt_int | gleft,
fzrt_int | grite,
fzrt_int | gbottom,
fzrt_ptr | fuim_data )

Parameters

windex [Input]

project window index

fuim_tmpl [Input]

Pointer to the dialog template.

gleft [Input]

fuim item id of the group at the top left.

grite [Input]

fuim item id of the group at the top right.

gbottom [Input]

fuim item id of the group at the bottom.

fuim_data [Input]

Pointer to the Surface Style Representation data.

Returns

Error codes

Availability

7.0.0.0

Function Set

fz_srep_cbak_fset

Defined in

fz_srep_api.h