20 vtkAlgorithm* inputAlgorithm)
25 if (inputAlgorithm->GetNumberOfInputPorts() &&
26 inputAlgorithm->GetNumberOfInputConnections(0))
28 vtkAlgorithmOutput* ao = inputAlgorithm->GetInputConnection(0, 0);
32 vtkAlgorithm* parentAlg = ao->GetProducer();
34 if (dynamic_cast<VtkPolylinesSource*>(parentAlg) != nullptr)
36 _type = GeoLib::GEOTYPE::POLYLINE;
38 else if (dynamic_cast<VtkSurfacesSource*>(parentAlg) != nullptr)
40 _type = GeoLib::GEOTYPE::SURFACE;
42 else if (dynamic_cast<VtkStationSource*>(parentAlg) != nullptr)