| 280 | } |
| 281 | |
| 282 | fg_err fg_add_surface_to_chart(fg_surface* pSurface, fg_chart pChart, |
| 283 | const unsigned pXPoints, const unsigned pYPoints, const fg_dtype pType, |
| 284 | const fg_plot_type pPlotType, const fg_marker_type pMarkerType) |
| 285 | { |
| 286 | try { |
| 287 | ARG_ASSERT(1, (pChart!=0)); |
| 288 | ARG_ASSERT(2, (pXPoints>0)); |
| 289 | ARG_ASSERT(3, (pYPoints>0)); |
| 290 | |
| 291 | common::Chart* chrt = getChart(pChart); |
| 292 | |
| 293 | // Surface is only allowed in FG_CHART_3D |
| 294 | ARG_ASSERT(5, chrt->chartType() == FG_CHART_3D); |
| 295 | |
| 296 | common::Surface* surf = new common::Surface(pXPoints, pYPoints, (forge::dtype)pType, |
| 297 | pPlotType, pMarkerType); |
| 298 | chrt->addRenderable(surf->impl()); |
| 299 | *pSurface = getHandle(surf); |
| 300 | } |
| 301 | CATCHALL |
| 302 | |
| 303 | return FG_ERR_NONE; |
| 304 | } |
| 305 | |
| 306 | fg_err fg_add_vector_field_to_chart(fg_vector_field* pField, fg_chart pChart, |
| 307 | const unsigned pNPoints, const fg_dtype pType) |
no test coverage detected