Possible Parameters for a user function for a certain Event in *_setFunction

Hallo everyone,

I am trying to write an MDL that recenters certain views when a datapoint or tentative Point is placed in a specified distance from the last one.

For this task I want to use e.g. the mdlState_setFunction(STATE_DATAPOINT, centre2_processDataPoint) with the user function 'centre2_processDataPoint'. So where can i find the possible Parameters for this function? I would like to have e.g. something like:

bool centre2_processDataPoint(
(
 Dpoint3d *datapointP,  // Pointer to placed datapoint
 int view               // View-number in datapoint was placed
)
{ ... }

Because the distance for which an update of a view should take place is depending on the size of the view, I would need as well a user function that is called by mdlWindow_setFunction(WINDOW_MODIFYEVENTS , centre2_viewChanged) with a user function like this:

bool centre2_viewChanged(
(
 int event,  // Event-Type
 int viewNr  // View-Number
)
{...}

Where can I find possible Parameters for a user function that is set for a certain Event in mdlWindow_setFunction, mdlView_setFunction, mdlState_setFunction etc.?

So I am not sure where I can find the possible Parameters for user functions that are set for a certain event-Typ (like mdlWindow_setFunction, mdlView_setFunction, mdlState_setFunction etc.), to be sure that only Parameters are used that can be filled and used properly.

Many thanks for any help,

Ines Wieland

Parents Reply Children
No Data