Commit a6ae66c6 authored by Stéphane Albert's avatar Stéphane Albert

ENH: Added skeleton files for ImageModel dans DatasetModel hierarchy.

parent 020efcca
/*=========================================================================
Program: Monteverdi2
Language: C++
Date: $Date$
Version: $Revision$
Copyright (c) Centre National d'Etudes Spatiales. All rights reserved.
See OTBCopyright.txt for details.
This software is distributed WITHOUT ANY WARRANTY; without even
the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR
PURPOSE. See the above copyright notices for more information.
=========================================================================*/
#include "mvdAbstractImageModel.h"
//
// System includes (sorted by alphabetic order)
//
// Qt includes (sorted by alphabetic order)
//
// ITK includes (sorted by alphabetic order)
//
// OTB includes (sorted by alphabetic order)
//
// Monteverdi includes (sorted by alphabetic order)
namespace mvd
{
/*
TRANSLATOR mvd::AbstractImageModel
Necessary for lupdate to be aware of C++ namespaces.
Context comment for translator.
*/
/*******************************************************************************/
AbstractImageModel
::AbstractImageModel( QObject* parent ) :
AbstractModel( parent )
{
}
/*******************************************************************************/
AbstractImageModel
::~AbstractImageModel()
{
}
/*******************************************************************************/
/* SLOTS */
/*******************************************************************************/
/*******************************************************************************/
} // end namespace 'mvd'
/*=========================================================================
Program: Monteverdi2
Language: C++
Date: $Date$
Version: $Revision$
Copyright (c) Centre National d'Etudes Spatiales. All rights reserved.
See OTBCopyright.txt for details.
This software is distributed WITHOUT ANY WARRANTY; without even
the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR
PURPOSE. See the above copyright notices for more information.
=========================================================================*/
#ifndef __mvdAbstractImageModel_h
#define __mvdAbstractImageModel_h
//
// System includes (sorted by alphabetic order)
//
// Qt includes (sorted by alphabetic order)
//
// ITK includes (sorted by alphabetic order)
//
// OTB includes (sorted by alphabetic order)
#include <otbImage.h>
#include <otbImageFileReader.h>
#include <otbVectorImage.h>
//
// Monteverdi includes (sorted by alphabetic order)
#include "ConfigureMonteverdi2.h"
#include "mvdAbstractModel.h"
//
// External classes pre-declaration.
namespace
{
}
namespace mvd
{
//
// Internal classes pre-declaration.
/** \class AbstractImageModel
*
*/
class Monteverdi2_EXPORT AbstractImageModel :
public AbstractModel
{
Q_OBJECT;
//
// Public methods.
public:
/**
*/
typedef otb::Image< Monteverdi2_FLOATING_TYPE, Monteverdi2_DIMENSION_TYPE >
TImage2f;
/**
*/
typedef otb::ImageFileReader< TImage2f >
TImageFileReader2f;
/**
*/
typedef
otb::VectorImage< Monteverdi2_FLOATING_TYPE, Monteverdi2_DIMENSION_TYPE >
TVectorImage2f;
/**
*/
typedef otb::ImageFileReader< TVectorImage2f >
TVectorImageFileReader2f;
/** Constructor */
AbstractImageModel( QObject* parent =NULL );
/** Destructor */
virtual ~AbstractImageModel();
//
// SIGNALS.
signals:
//
// Protected methods.
protected:
//
// Protected attributes.
protected:
//
// Private methods.
private:
//
// Private attributes.
private:
//
// SLOTS.
private slots:
};
} // end namespace 'mvd'
#endif // __mvdAbstractImageModel_h
/*=========================================================================
Program: Monteverdi2
Language: C++
Date: $Date$
Version: $Revision$
Copyright (c) Centre National d'Etudes Spatiales. All rights reserved.
See OTBCopyright.txt for details.
This software is distributed WITHOUT ANY WARRANTY; without even
the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR
PURPOSE. See the above copyright notices for more information.
=========================================================================*/
#include "mvdAbstractModel.h"
//
// System includes (sorted by alphabetic order)
//
// Qt includes (sorted by alphabetic order)
//
// ITK includes (sorted by alphabetic order)
//
// OTB includes (sorted by alphabetic order)
//
// Monteverdi includes (sorted by alphabetic order)
namespace mvd
{
/*
TRANSLATOR mvd::AbstractModel
Necessary for lupdate to be aware of C++ namespaces.
Context comment for translator.
*/
/*******************************************************************************/
AbstractModel
::AbstractModel( QObject* parent ) :
QObject( parent )
{
}
/*******************************************************************************/
AbstractModel
::~AbstractModel()
{
}
/*******************************************************************************/
/* SLOTS */
/*******************************************************************************/
/*******************************************************************************/
} // end namespace 'mvd'
/*=========================================================================
Program: Monteverdi2
Language: C++
Date: $Date$
Version: $Revision$
Copyright (c) Centre National d'Etudes Spatiales. All rights reserved.
See OTBCopyright.txt for details.
This software is distributed WITHOUT ANY WARRANTY; without even
the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR
PURPOSE. See the above copyright notices for more information.
=========================================================================*/
#ifndef __mvdAbstractModel_h
#define __mvdAbstractModel_h
//
// System includes (sorted by alphabetic order)
//
// Qt includes (sorted by alphabetic order)
#include <QObject>
//
// ITK includes (sorted by alphabetic order)
//
// OTB includes (sorted by alphabetic order)
//
// Monteverdi includes (sorted by alphabetic order)
#include "ConfigureMonteverdi2.h"
//
// External classes pre-declaration.
namespace
{
}
namespace mvd
{
//
// Internal classes pre-declaration.
/** \class AbstractModel
*
*/
class Monteverdi2_EXPORT AbstractModel :
public QObject
{
Q_OBJECT;
//
// Public methods.
public:
/** Constructor */
AbstractModel( QObject* parent =NULL );
/** Destructor */
virtual ~AbstractModel();
//
// SIGNALS.
signals:
//
// Protected methods.
protected:
//
// Protected attributes.
protected:
//
// Private methods.
private:
//
// Private attributes.
private:
//
// SLOTS.
private slots:
};
} // end namespace 'mvd'
#endif // __mvdAbstractModel_h
/*=========================================================================
Program: Monteverdi2
Language: C++
Date: $Date$
Version: $Revision$
Copyright (c) Centre National d'Etudes Spatiales. All rights reserved.
See OTBCopyright.txt for details.
This software is distributed WITHOUT ANY WARRANTY; without even
the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR
PURPOSE. See the above copyright notices for more information.
=========================================================================*/
#include "mvdDatasetModel.h"
//
// System includes (sorted by alphabetic order)
//
// Qt includes (sorted by alphabetic order)
//
// ITK includes (sorted by alphabetic order)
//
// OTB includes (sorted by alphabetic order)
//
// Monteverdi includes (sorted by alphabetic order)
namespace mvd
{
/*
TRANSLATOR mvd::DatasetModel
Necessary for lupdate to be aware of C++ namespaces.
Context comment for translator.
*/
/*******************************************************************************/
DatasetModel
::DatasetModel( QObject* parent ) :
AbstractModel( parent )
{
}
/*******************************************************************************/
DatasetModel
::~DatasetModel()
{
}
/*******************************************************************************/
/* SLOTS */
/*******************************************************************************/
/*******************************************************************************/
} // end namespace 'mvd'
/*=========================================================================
Program: Monteverdi2
Language: C++
Date: $Date$
Version: $Revision$
Copyright (c) Centre National d'Etudes Spatiales. All rights reserved.
See OTBCopyright.txt for details.
This software is distributed WITHOUT ANY WARRANTY; without even
the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR
PURPOSE. See the above copyright notices for more information.
=========================================================================*/
#ifndef __mvdDatasetModel_h
#define __mvdDatasetModel_h
//
// System includes (sorted by alphabetic order)
//
// Qt includes (sorted by alphabetic order)
//
// ITK includes (sorted by alphabetic order)
//
// OTB includes (sorted by alphabetic order)
//
// Monteverdi includes (sorted by alphabetic order)
#include "ConfigureMonteverdi2.h"
#include "mvdAbstractModel.h"
//
// External classes pre-declaration.
namespace
{
}
namespace mvd
{
//
// Internal classes pre-declaration.
/** \class DatasetModel
*
*/
class Monteverdi2_EXPORT DatasetModel :
public AbstractModel
{
Q_OBJECT;
//
// Public methods.
public:
/** Constructor */
DatasetModel( QObject* parent =NULL );
/** Destructor */
virtual ~DatasetModel();
//
// SIGNALS.
signals:
//
// Protected methods.
protected:
//
// Protected attributes.
protected:
//
// Private methods.
private:
//
// Private attributes.
private:
//
// SLOTS.
private slots:
};
} // end namespace 'mvd'
#endif // __mvdDatasetModel_h
......@@ -31,6 +31,7 @@
//
// Monteverdi includes (sorted by alphabetic order)
#include "ConfigureMonteverdi2.h"
//
// Class pre-declaration.
......@@ -42,7 +43,7 @@ namespace mvd
/** \class I18nApplication
*
*/
class I18nApplication
class Monteverdi2_EXPORT I18nApplication
: public QApplication
{
Q_OBJECT;
......
......@@ -34,6 +34,7 @@
//
// Monteverdi includes (sorted by alphabetic order)
#include "ConfigureMonteverdi2.h"
//
// External classes pre-declaration.
......@@ -49,7 +50,7 @@ namespace mvd
/** \class MyClass
*
*/
class MyClass :
class Monteverdi2_EXPORT MyClass :
public QObject
{
Q_OBJECT;
......
/*=========================================================================
Program: Monteverdi2
Language: C++
Date: $Date$
Version: $Revision$
Copyright (c) Centre National d'Etudes Spatiales. All rights reserved.
See OTBCopyright.txt for details.
This software is distributed WITHOUT ANY WARRANTY; without even
the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR
PURPOSE. See the above copyright notices for more information.
=========================================================================*/
#include "mvdVectorImageModel.h"
//
// System includes (sorted by alphabetic order)
//
// Qt includes (sorted by alphabetic order)
//
// ITK includes (sorted by alphabetic order)
//
// OTB includes (sorted by alphabetic order)
//
// Monteverdi includes (sorted by alphabetic order)
namespace mvd
{
/*
TRANSLATOR mvd::VectorImageModel
Necessary for lupdate to be aware of C++ namespaces.
Context comment for translator.
*/
/*******************************************************************************/
VectorImageModel
::VectorImageModel( QObject* parent ) :
AbstractImageModel( parent )
{
}
/*******************************************************************************/
VectorImageModel
::~VectorImageModel()
{
}
/*******************************************************************************/
/* SLOTS */
/*******************************************************************************/
/*******************************************************************************/
} // end namespace 'mvd'
/*=========================================================================
Program: Monteverdi2
Language: C++
Date: $Date$
Version: $Revision$
Copyright (c) Centre National d'Etudes Spatiales. All rights reserved.
See OTBCopyright.txt for details.
This software is distributed WITHOUT ANY WARRANTY; without even
the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR
PURPOSE. See the above copyright notices for more information.
=========================================================================*/
#ifndef __mvdVectorImageModel_h
#define __mvdVectorImageModel_h
//
// System includes (sorted by alphabetic order)
//
// Qt includes (sorted by alphabetic order)
//
// ITK includes (sorted by alphabetic order)
//
// OTB includes (sorted by alphabetic order)
//
// Monteverdi includes (sorted by alphabetic order)
#include "ConfigureMonteverdi2.h"
#include "mvdAbstractImageModel.h"
//
// External classes pre-declaration.
namespace
{
}
namespace mvd
{
//
// Internal classes pre-declaration.
/** \class VectorImageModel
*
*/
class Monteverdi2_EXPORT VectorImageModel :
public AbstractImageModel
{
Q_OBJECT;
//
// Public methods.
public: