|
|
C_SetSimulationDrawTime |
C_SetSimulationDrawTime sets the model's simulation draw time.
The simulation draw time controls the way drawing functions (C_CreateModel3DViewBitmap, C_SaveModel3DViewBitmapToFile, etc.) behave. These functions draw an OrcaFlex model and the simulation time used for this drawing is controlled by this function. This allows you to produce drawings of the OrcaFlex model at a number of different points of a simulation. The C_GetSimulationDrawTime function can be called to retrieve the current value of simulation draw time.
The handle of the model.
The simulation time used by drawing functions. Subsequent calls to drawing functions will use the time specified by this parameter when drawing the model.
If the simulation draw time is before the start of the simulation then the model will be drawn at the simulation start (i.e. the beginning of the build-up period). Likewise if the simulation draw time is after the end of the simulation then the model will be drawn at the simulation end.
If you wish to draw the model in its latest state then you should pass OrcinaDefaultReal() for this parameter. By latest state we mean the configuration of the model after the latest calculation. In more detail this is:
C_GetModelState returns a value ≥ msRunningSimulation) then the configuration of the model after the latest time step of the simulation is used.Points to a variable in which the status result for the function call will be returned.
C_CreateModel3DViewBitmap, C_DrawModel3DViewToBitmapCanvas, C_GetSimulationDrawTime, C_SaveModel3DViewBitmapMem, C_SaveModel3DViewBitmapToFile, C_SaveModel3DViewMetafileMem, C_SaveModel3DViewMetafileToFile.