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

Method CopyFlags

Common/DataModel/vtkFieldData.cxx:938–955  ·  view source on GitHub ↗

------------------------------------------------------------------------------ Copy the fields list (with strcpy)

Source from the content-addressed store, hash-verified

936//------------------------------------------------------------------------------
937// Copy the fields list (with strcpy)
938void vtkFieldData::CopyFlags(const vtkFieldData* source)
939{
940 this->ClearFieldFlags();
941 this->NumberOfFieldFlags = source->NumberOfFieldFlags;
942 if (this->NumberOfFieldFlags > 0)
943 {
944 this->CopyFieldFlags = new vtkFieldData::CopyFieldFlag[this->NumberOfFieldFlags];
945 for (int i = 0; i < this->NumberOfFieldFlags; ++i)
946 {
947 this->CopyFieldFlags[i].ArrayName = new char[strlen(source->CopyFieldFlags[i].ArrayName) + 1];
948 strcpy(this->CopyFieldFlags[i].ArrayName, source->CopyFieldFlags[i].ArrayName);
949 }
950 }
951 else
952 {
953 this->CopyFieldFlags = nullptr;
954 }
955}
956
957//------------------------------------------------------------------------------
958void vtkFieldData::PassData(vtkFieldData* fd)

Callers 2

DeepCopyMethod · 0.95
ShallowCopyMethod · 0.95

Calls 1

ClearFieldFlagsMethod · 0.95

Tested by

no test coverage detected