Esempio n. 1
0
Chart::~Chart()
{
	SAFE_REMOVE_OBSERVER(this, m_horizScrolledAxis);
	SAFE_REMOVE_OBSERVER(this, m_vertScrolledAxis);

	SAFE_REMOVE_OBSERVER(this, m_plot);
	wxDELETE(m_plot);
	wxDELETE(m_background);
	wxDELETE(m_header);
	wxDELETE(m_footer);
}
Esempio n. 2
0
AxisPlot::~AxisPlot()
{
	for (size_t n = 0; n < m_datasets.Count(); n++) {
		Dataset *dataset = m_datasets[n];
		dataset->RemoveObserver(this);
	}

	for (size_t n = 0; n < m_horizontalAxes.Count(); n++) {
		Axis *axis = m_horizontalAxes[n];
		wxDELETE(axis);
	}

	for (size_t n = 0; n < m_verticalAxes.Count(); n++) {
		Axis *axis = m_verticalAxes[n];
		wxDELETE(axis);
	}

	SAFE_REMOVE_OBSERVER(this, m_dataBackground);
	wxDELETE(m_dataBackground);

	wxDELETE(m_legend);
}
Esempio n. 3
0
wxChartPanel::~wxChartPanel()
{
    SAFE_REMOVE_OBSERVER(this, m_chart);
    wxDELETE(m_chart);
}