------------------------------------------------------------------------------
| 1036 | |
| 1037 | //------------------------------------------------------------------------------ |
| 1038 | void vtkTransformConcatenationStack::Pop(vtkTransformConcatenation** concat) |
| 1039 | { |
| 1040 | // if we're at the bottom of the stack, don't pop |
| 1041 | if (this->Stack == this->StackBottom) |
| 1042 | { |
| 1043 | return; |
| 1044 | } |
| 1045 | |
| 1046 | // get the previous PreMultiplyFlag |
| 1047 | vtkTypeBool preMultiplyFlag = (*concat)->GetPreMultiplyFlag(); |
| 1048 | |
| 1049 | // delete the previous item |
| 1050 | (*concat)->Delete(); |
| 1051 | |
| 1052 | // pop new item off the stack |
| 1053 | *concat = *--this->Stack; |
| 1054 | |
| 1055 | // re-set the PreMultiplyFlag |
| 1056 | (*concat)->SetPreMultiplyFlag(preMultiplyFlag); |
| 1057 | } |
| 1058 | |
| 1059 | //------------------------------------------------------------------------------ |
| 1060 | void vtkTransformConcatenationStack::Push(vtkTransformConcatenation** concat) |