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

Function DispatchDataObjectImpl

Testing/Core/vtkTestUtilities.cxx:2000–2014  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1998//----------------------------------------------------------------------------
1999template <template <class...> class ImplT, class DataObjectT>
2000bool DispatchDataObjectImpl(
2001 vtkDataObject* do1, vtkDataObject* do2, double toleranceFactor, bool& retVal)
2002{
2003 if (auto do1T = DataObjectT::SafeDownCast(do1))
2004 {
2005 if (auto do2T = DataObjectT::SafeDownCast(do2))
2006 {
2007 retVal = ImplT<DataObjectT>::Execute(do1T, DataObjectT::SafeDownCast(do2), toleranceFactor);
2008 return true;
2009 }
2010 vtkLog(ERROR,
2011 "Input dataset types do not match: " << do1->GetClassName() << " != " << do2->GetClassName());
2012 }
2013 return false;
2014}
2015
2016//----------------------------------------------------------------------------
2017template <template <class...> class ImplT, class DataObjectT>

Callers

nothing calls this directly

Calls 2

ExecuteFunction · 0.70
GetClassNameMethod · 0.45

Tested by

no test coverage detected