You cannot select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
AppFlow/FITK_Interface/FITKInterfaceIOHDF5/FITKInterfaceHDF5AdaptorCoo...

55 lines
1.6 KiB
C++

#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<Interface::FITKCoordinateSystem*>(_dataObj);
if (!_reader || !coor || !_h5Group) return false;
bool isR = true;
isR &= readCoordinateSystem(coor, *_h5Group);
return isR;
}
bool FITKInterfaceHDF5AdaptorCoordinateSystem::adaptW()
{
auto coor = dynamic_cast<Interface::FITKCoordinateSystem*>(_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<int> materialIDs;
bool isW = true;
//double origin[3];
//coor->getOrigin(origin);
//double direction1[3];
//coor->getDirection1(direction1);
return isW;
}
}