Beispiel #1
0
bool Exporter::exportVTKXMLImageData(DataObject & image, const QString & fileName)
{
    auto writer = vtkSmartPointer<vtkXMLImageDataWriter>::New();
    writer->SetInputData(image.dataSet());

    return writeVTKXML(writer, fileName);
}
Beispiel #2
0
void CameraDolly::moveTo(DataObject & dataObject, vtkIdType index, IndexType indexType, bool overTime)
{
    auto dataSet = dataObject.dataSet();

    if (!dataSet)
    {
        qWarning() << "No data found in data object: " << dataObject.name();
        return;
    }

    moveTo(*dataSet, index, indexType, overTime);
}