//------------------------------------------------------------------------------
ctkDICOMObjectModel::~ctkDICOMObjectModel()
{
}

//------------------------------------------------------------------------------
void ctkDICOMObjectModel::setFile(const QString &fileName)
{
  Q_D(ctkDICOMObjectModel);

  OFCondition status = d->fileFormat.loadFile( fileName.toLatin1().data());
  if( !status.good() )
    {
    // TODO: Through an error message.