MCPcopy Create free account
hub / github.com/Kitware/VTK / Push

Method Push

Common/Transforms/vtkAbstractTransform.cxx:1060–1083  ·  view source on GitHub ↗

------------------------------------------------------------------------------

Source from the content-addressed store, hash-verified

1058
1059//------------------------------------------------------------------------------
1060void vtkTransformConcatenationStack::Push(vtkTransformConcatenation** concat)
1061{
1062 // check stack size and grow if necessary
1063 if ((this->Stack - this->StackBottom) == this->StackSize)
1064 {
1065 int newStackSize = this->StackSize + 10;
1066 vtkTransformConcatenation** newStackBottom = new vtkTransformConcatenation*[newStackSize];
1067 for (int i = 0; i < this->StackSize; i++)
1068 {
1069 newStackBottom[i] = this->StackBottom[i];
1070 }
1071 delete[] this->StackBottom;
1072 this->StackBottom = newStackBottom;
1073 this->Stack = this->StackBottom + this->StackSize;
1074 this->StackSize = newStackSize;
1075 }
1076
1077 // add item to the stack
1078 *this->Stack++ = *concat;
1079
1080 // make a copy of that item the current item
1081 *concat = vtkTransformConcatenation::New();
1082 (*concat)->DeepCopy(*(this->Stack - 1));
1083}
1084
1085//------------------------------------------------------------------------------
1086void vtkTransformConcatenationStack::DeepCopy(vtkTransformConcatenationStack* stack)

Callers 3

PushFunction · 0.45
PushFunction · 0.45
PushFunction · 0.45

Calls 2

NewFunction · 0.50
DeepCopyMethod · 0.45

Tested by 1

PushFunction · 0.36