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

Method SetBuffer

Common/Core/vtkBuffer.h:117–128  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

115//------------------------------------------------------------------------------
116template <typename ScalarT>
117void vtkBuffer<ScalarT>::SetBuffer(typename vtkBuffer<ScalarT>::ScalarType* array, vtkIdType sz)
118{
119 if (this->Pointer != array)
120 {
121 if (this->DeleteFunction)
122 {
123 this->DeleteFunction(this->Pointer);
124 }
125 this->Pointer = array;
126 }
127 this->Size = sz;
128}
129//------------------------------------------------------------------------------
130template <typename ScalarT>
131void vtkBuffer<ScalarT>::SetMallocFunction(vtkMallocingFunction mallocFunction)

Callers 7

AllocateMethod · 0.95
ReallocateMethod · 0.95
SetArrayMethod · 0.45
~vtkBufferFunction · 0.45
GetNoiseTextureUnitMethod · 0.45
SetDashboardImageDataMethod · 0.45

Calls

no outgoing calls

Tested by

no test coverage detected