USGS

Isis 3.0 Object Programmers' Reference

Home

Isis::ConcurrentControlNetReader Class Reference

This reads a control net in the background. More...

#include <ConcurrentControlNetReader.h>

Inheritance diagram for Isis::ConcurrentControlNetReader:
Inheritance graph
Collaboration diagram for Isis::ConcurrentControlNetReader:
Collaboration graph

Classes

class  FileNameToControlFunctor
 

Signals

void networksReady (QList< Control * >)
 

Public Member Functions

 ConcurrentControlNetReader ()
 Allocates memory at construction instead of as needed.
 
 ~ConcurrentControlNetReader ()
 This destructor will cancel all running threads and block.
 
void read (QString filename)
 
void read (QStringList filenames)
 
ProgressBarprogressBar ()
 

Private Slots

void updateProgressValue ()
 
void mappedFinished ()
 

Private Member Functions

void nullify ()
 Initializes members to NULL.
 
void start ()
 
void initProgress ()
 

Private Attributes

QFutureWatcher< Control * > * m_watcher
 provides SIGNALS / SLOTS for FileNameToControlFunctor
 
QStringList m_backlog
 
bool m_mappedRunning
 
QList< Progress * > m_progress
 
QPointer< ProgressBarm_progressBar
 
QPointer< QTimer > m_progressUpdateTimer
 

Detailed Description

This reads a control net in the background.

This class provides progress for reading a ControlNet. Reading is done in separate threads using QtConcurrent. When reading large Pvl networks the progress will hang at zero percent for a while.

Author
2012-06-11 Ken Edmundson, Steven Lambright

Definition at line 56 of file ConcurrentControlNetReader.h.

Constructor & Destructor Documentation

Isis::ConcurrentControlNetReader::ConcurrentControlNetReader ( )

Allocates memory at construction instead of as needed.

Definition at line 55 of file ConcurrentControlNetReader.cpp.

References m_watcher, and nullify().

Isis::ConcurrentControlNetReader::~ConcurrentControlNetReader ( )

This destructor will cancel all running threads and block.

Definition at line 72 of file ConcurrentControlNetReader.cpp.

References m_watcher.

Member Function Documentation

void Isis::ConcurrentControlNetReader::nullify ( )
private

Initializes members to NULL.

Definition at line 123 of file ConcurrentControlNetReader.cpp.

References m_watcher.

Referenced by ConcurrentControlNetReader().

void Isis::ConcurrentControlNetReader::read ( QString  filename)
Parameters
filenameThe filename of the network to read

Definition at line 95 of file ConcurrentControlNetReader.cpp.

void Isis::ConcurrentControlNetReader::read ( QStringList  filenames)
Parameters
filenamesThe filenames of the networks to read

Definition at line 109 of file ConcurrentControlNetReader.cpp.

Member Data Documentation

QFutureWatcher<Control *>* Isis::ConcurrentControlNetReader::m_watcher
private

provides SIGNALS / SLOTS for FileNameToControlFunctor

Definition at line 84 of file ConcurrentControlNetReader.h.

Referenced by ConcurrentControlNetReader(), nullify(), and ~ConcurrentControlNetReader().


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