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

Method SetData

Common/DataModel/vtkCellArray.cxx:831–856  ·  view source on GitHub ↗

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

Source from the content-addressed store, hash-verified

829
830//------------------------------------------------------------------------------
831void vtkCellArray::SetData(AOSArray32* offsets, AOSArray32* connectivity)
832{
833 if (!offsets || !connectivity)
834 {
835 vtkErrorMacro("Empty offsets or connectivity array.");
836 return;
837 }
838 if (offsets->GetNumberOfComponents() != 1 || connectivity->GetNumberOfComponents() != 1)
839 {
840 vtkErrorMacro("Only single component arrays may be used for vtkCellArray "
841 "storage.");
842 return;
843 }
844
845 if (this->Offsets.Get() != offsets)
846 {
847 this->Offsets = offsets;
848 this->Modified();
849 }
850 if (this->Connectivity.Get() != connectivity)
851 {
852 this->Connectivity = connectivity;
853 this->Modified();
854 }
855 this->StorageType = StorageTypes::Int32;
856}
857
858//------------------------------------------------------------------------------
859void vtkCellArray::SetData(AOSArray64* offsets, AOSArray64* connectivity)

Callers 15

ConvertTo32BitStorageMethod · 0.95
ConvertTo64BitStorageMethod · 0.95
Deserialize_vtkCellArrayFunction · 0.45
operator()Method · 0.45
SetDataFixedCellSizeImplFunction · 0.45
GetPointsMethod · 0.45
GetCellArrayMethod · 0.45
GetPointsMethod · 0.45
StartPassMethod · 0.45
NewMethod · 0.45

Calls 6

ExecuteFunction · 0.50
GetNumberOfComponentsMethod · 0.45
GetMethod · 0.45
ModifiedMethod · 0.45
GetNumberOfTuplesMethod · 0.45
GetDataTypeMethod · 0.45

Tested by 11

NewMethod · 0.36
TestSetDataImplFunction · 0.36
MakeCubeFunction · 0.36
MakeDodecahedronFunction · 0.36
MakePolyhedron1Function · 0.36
MakePolyhedron2Function · 0.36
RunTestFunction · 0.36
MakeDodecahedronFunction · 0.36
MakeConcavePolyhedronFunction · 0.36