File tree Expand file tree Collapse file tree 3 files changed +36
-0
lines changed Expand file tree Collapse file tree 3 files changed +36
-0
lines changed Original file line number Diff line number Diff line change @@ -308,6 +308,16 @@ Remove a Histogram object from the current chart
308
308
FGAPI fg_err fg_remove_histogram_from_chart (fg_chart pHandle,
309
309
fg_histogram pHistogram);
310
310
311
+ /* *
312
+ Remove a Pie object from the current chart
313
+
314
+ \param[in] pHandle is chart handle
315
+ \param[in] pPie is the handle of the pie object to remove
316
+
317
+ \return \ref fg_err error code
318
+ */
319
+ FGAPI fg_err fg_remove_pie_from_chart (fg_chart pHandle, fg_pie pPie);
320
+
311
321
/* *
312
322
Remove a Plot object from the current chart
313
323
@@ -526,6 +536,13 @@ class Chart {
526
536
*/
527
537
FGAPI void remove (const Histogram &pHistogram);
528
538
539
+ /* *
540
+ Remove an existing Pie object to the current chart
541
+
542
+ \param[in] pPie is the Pie to remove from the chart
543
+ */
544
+ FGAPI void remove (const Pie &pPie);
545
+
529
546
/* *
530
547
Remove an existing Plot object to the current chart
531
548
Original file line number Diff line number Diff line change @@ -375,6 +375,21 @@ fg_err fg_remove_histogram_from_chart(fg_chart pChart,
375
375
return FG_ERR_NONE;
376
376
}
377
377
378
+ fg_err fg_remove_pie_from_chart (fg_chart pChart, fg_pie pPie) {
379
+ try {
380
+ ARG_ASSERT (0 , (pPie != 0 ));
381
+ ARG_ASSERT (1 , (pChart != 0 ));
382
+
383
+ common::Chart* chrt = getChart (pChart);
384
+
385
+ common::Pie* pie = getPie (pPie);
386
+ chrt->removeRenderable (pie->impl ());
387
+ }
388
+ CATCHALL
389
+
390
+ return FG_ERR_NONE;
391
+ }
392
+
378
393
fg_err fg_remove_plot_from_chart (fg_chart pChart, fg_plot pPlot) {
379
394
try {
380
395
ARG_ASSERT (0 , (pPlot != 0 ));
Original file line number Diff line number Diff line change @@ -92,6 +92,10 @@ void Chart::remove(const Histogram& pHistogram) {
92
92
FG_THROW (fg_remove_histogram_from_chart (get (), pHistogram.get ()));
93
93
}
94
94
95
+ void Chart::remove (const Pie& pPie) {
96
+ FG_THROW (fg_remove_pie_from_chart (get (), pPie.get ()));
97
+ }
98
+
95
99
void Chart::remove (const Plot& pPlot) {
96
100
FG_THROW (fg_remove_plot_from_chart (get (), pPlot.get ()));
97
101
}
You can’t perform that action at this time.
0 commit comments