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

Function NewInstance

Common/DataModel/vtkCellMetadata.h:79–85  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

77
78 template <typename Subclass>
79 static vtkSmartPointer<Subclass> NewInstance(vtkCellGrid* grid = nullptr)
80 {
81 vtkStringToken name = vtk::TypeName<Subclass>();
82 auto metadata = vtkCellMetadata::NewInstance(name, grid);
83 vtkSmartPointer<Subclass> result(Subclass::SafeDownCast(metadata));
84 return result;
85 }
86
87 static vtkSmartPointer<vtkCellMetadata> NewInstance(
88 vtkStringToken className, vtkCellGrid* grid = nullptr);

Callers 2

AddCellMetadataMethod · 0.70
AddAllCellMetadataMethod · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected