------------------------------------------------------------------------------ Free-up axes and related stuff
| 152 | //------------------------------------------------------------------------------ |
| 153 | // Free-up axes and related stuff |
| 154 | void vtkBarChartActor::Initialize() |
| 155 | { |
| 156 | if (this->BarActors) |
| 157 | { |
| 158 | for (int i = 0; i < this->N; i++) |
| 159 | { |
| 160 | this->BarMappers[i]->Delete(); |
| 161 | this->BarActors[i]->Delete(); |
| 162 | } |
| 163 | delete[] this->BarMappers; |
| 164 | this->BarMappers = nullptr; |
| 165 | delete[] this->BarActors; |
| 166 | this->BarActors = nullptr; |
| 167 | } |
| 168 | |
| 169 | this->N = 0; |
| 170 | delete[] this->Heights; |
| 171 | this->Heights = nullptr; |
| 172 | } |
| 173 | |
| 174 | //------------------------------------------------------------------------------ |
| 175 | // Plot scalar data for each input dataset. |