| 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) |
| 308 | { |
| 309 | try { |
| 310 | ARG_ASSERT(1, (pChart!=0)); |
| 311 | ARG_ASSERT(2, (pNPoints>0)); |
| 312 | |
| 313 | common::Chart* chrt = getChart(pChart); |
| 314 | common::VectorField* field = new common::VectorField(pNPoints, |
| 315 | (forge::dtype)pType, |
| 316 | chrt->chartType()); |
| 317 | chrt->addRenderable(field->impl()); |
| 318 | *pField = getHandle(field); |
| 319 | } |
| 320 | CATCHALL |
| 321 | |
| 322 | return FG_ERR_NONE; |
| 323 | } |
| 324 | |
| 325 | fg_err fg_render_chart(const fg_window pWindow, const fg_chart pChart, |
| 326 | const int pX, const int pY, const int pWidth, const int pHeight) |
no test coverage detected