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

Method ShallowCopy

Rendering/Core/vtkPolyDataMapper.cxx:159–179  ·  view source on GitHub ↗

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

Source from the content-addressed store, hash-verified

157
158//------------------------------------------------------------------------------
159void vtkPolyDataMapper::ShallowCopy(vtkAbstractMapper* mapper)
160{
161 vtkPolyDataMapper* m = vtkPolyDataMapper::SafeDownCast(mapper);
162 if (m != nullptr)
163 {
164 this->SetInputConnection(m->GetInputConnection(0, 0));
165 this->SetGhostLevel(m->GetGhostLevel());
166 this->SetNumberOfPieces(m->GetNumberOfPieces());
167 this->SetNumberOfSubPieces(m->GetNumberOfSubPieces());
168 this->SetSeamlessU(m->GetSeamlessU());
169 this->SetSeamlessV(m->GetSeamlessV());
170 this->SetVBOShiftScaleMethod(m->GetVBOShiftScaleMethod());
171 this->SetPauseShiftScale(m->GetPauseShiftScale());
172 this->SetCellIdArrayName(m->GetCellIdArrayName());
173 this->SetPointIdArrayName(m->GetPointIdArrayName());
174 this->SetProcessIdArrayName(m->GetProcessIdArrayName());
175 }
176
177 // Now do superclass
178 this->vtkMapper::ShallowCopy(mapper);
179}
180
181//------------------------------------------------------------------------------
182void vtkPolyDataMapper::MapDataArrayToVertexAttribute(const char* vtkNotUsed(vertexAttributeName),

Callers

nothing calls this directly

Calls 8

GetNumberOfSubPiecesMethod · 0.80
SetPauseShiftScaleMethod · 0.80
SetInputConnectionMethod · 0.45
GetInputConnectionMethod · 0.45
GetGhostLevelMethod · 0.45
SetNumberOfPiecesMethod · 0.45
GetNumberOfPiecesMethod · 0.45

Tested by

no test coverage detected