OTB  6.7.0
Orfeo Toolbox
Public Member Functions | Private Types | Private Member Functions | Private Attributes | List of all members
mvd::ImageImporter Class Reference

#include <mvdImageImporter.h>

+ Inheritance diagram for mvd::ImageImporter:
+ Collaboration diagram for mvd::ImageImporter:

Public Member Functions

 ImageImporter (const QString &filename, bool isForceCreateEnabled, int width=-1, int height=-1, QObject *p=NULL)
 
 ImageImporter (const QString &filename, int width=-1, int height=-1, QObject *p=NULL)
 
 ~ImageImporter () override
 
- Public Member Functions inherited from mvd::AbstractWorker
QString GetFirstProgressText () const
 
 ~AbstractWorker () override
 

Private Types

enum  ModelType { IMAGE }
 

Private Member Functions

QObject * virtual_Do () override
 
QString virtual_GetFirstProgressText () const override
 

Private Attributes

QString m_Filename
 
int m_Height
 
bool m_IsForceCreateEnabled: 1
 
ModelType m_ModelType
 
int m_Width
 

Additional Inherited Members

- Public Slots inherited from mvd::AbstractWorker
void Do () throw ()
 
- Signals inherited from mvd::AbstractWorker
void Done (QObject *result=NULL)
 
void ExceptionRaised (QString what)
 
void Finished ()
 
void ProgressRangeChanged (int min, int max)
 
void ProgressTextChanged (const QString &text)
 
void ProgressValueChanged (int value)
 
- Protected Member Functions inherited from mvd::AbstractWorker
 AbstractWorker (QObject *p=NULL)
 

Detailed Description

Import image worker. It is parametrized by the image filename and the desired (width, height) best-fit size.

Definition at line 77 of file mvdImageImporter.h.

Member Enumeration Documentation

Signal emitted when job/task has correctly been done.

Parameters
resultResulting QObject instance of NULL if none. Signal emitted when an exception has been caught by this worker.
excThe copy (thread safety) exception which has been caught.
Enumerator
IMAGE 

Definition at line 164 of file mvdImageImporter.h.

Constructor & Destructor Documentation

mvd::ImageImporter::ImageImporter ( const QString &  filename,
bool  isForceCreateEnabled,
int  width = -1,
int  height = -1,
QObject *  p = NULL 
)

Constructor (dataset-model).

Parameters
filenameFilename of image to import.
widthWidth of the best-fit size or -1 if none.
heightHeight of the best-fit size or -1 if none.
isForceCreateEnabledtrue to force creation of dataset.
mvd::ImageImporter::ImageImporter ( const QString &  filename,
int  width = -1,
int  height = -1,
QObject *  p = NULL 
)

Constructor (image-model).

Parameters
filenameFilename of image to import.
widthWidth of the best-fit size or -1 if none.
heightHeight of the best-fit size or -1 if none.
isForceCreateEnabledtrue to force creation of dataset.
mvd::ImageImporter::~ImageImporter ( )
override

Destructor.

Member Function Documentation

QObject* mvd::ImageImporter::virtual_Do ( )
overrideprivatevirtual

Do job/task abstract method to implement.

Implements mvd::AbstractWorker.

QString mvd::ImageImporter::virtual_GetFirstProgressText ( ) const
overrideprivatevirtual

Implements mvd::AbstractWorker.

Member Data Documentation

QString mvd::ImageImporter::m_Filename
private

Definition at line 186 of file mvdImageImporter.h.

int mvd::ImageImporter::m_Height
private

Definition at line 198 of file mvdImageImporter.h.

bool mvd::ImageImporter::m_IsForceCreateEnabled
private

Definition at line 202 of file mvdImageImporter.h.

ModelType mvd::ImageImporter::m_ModelType
private

Definition at line 190 of file mvdImageImporter.h.

int mvd::ImageImporter::m_Width
private

Definition at line 194 of file mvdImageImporter.h.


The documentation for this class was generated from the following file: