#include "FITKInterfaceHDF5AdaptorCoordinateSystem.h" #include "FITK_Kernel/FITKCore/FITKEnumTransformer.hpp" #include "FITK_Interface/FITKInterfaceIO/FITKAbstractHDF5Reader.h" #include "FITK_Interface/FITKInterfaceIO/FITKAbstractHDF5Writer.h" #include "FITK_Interface/FITKInterfaceModel/FITKCoordinateSystem.h" namespace IO { QString FITKInterfaceHDF5AdaptorCoordinateSystem::getAdaptorClass() { return "FITKInterfaceHDF5AdaptorCoordinateSystem"; } bool FITKInterfaceHDF5AdaptorCoordinateSystem::adaptR() { auto coor = dynamic_cast(_dataObj); if (!_reader || !coor || !_h5Group) return false; bool isR = true; isR &= readCoordinateSystem(coor, *_h5Group); return isR; } bool FITKInterfaceHDF5AdaptorCoordinateSystem::adaptW() { auto coor = dynamic_cast(_dataObj); if (!_writer || !coor || !_h5Group) return false; bool isW = true; isW &= writeCoordinateSystem(coor, *_h5Group); return isW; } bool FITKInterfaceHDF5AdaptorCoordinateSystem::readCoordinateSystem(Interface::FITKCoordinateSystem * coor, H5::Group & h5Group) { return false; } bool FITKInterfaceHDF5AdaptorCoordinateSystem::writeCoordinateSystem(Interface::FITKCoordinateSystem * coor, H5::Group & h5Group) { if (!coor)return false; QList materialIDs; bool isW = true; //double origin[3]; //coor->getOrigin(origin); //double direction1[3]; //coor->getDirection1(direction1); return isW; } }