creaImageIO_lib
creaImageIO::MultiThreadImageReader::ImageToLoad Class Reference

Class that represents an image to be loaded. More...

#include <creaImageIOMultiThreadImageReader.h>

Collaboration diagram for creaImageIO::MultiThreadImageReader::ImageToLoad:

Public Member Functions

 ImageToLoad (MultiThreadImageReaderUser *user, const std::string &filename, int prio=0)
 
 ~ImageToLoad ()
 
MultiThreadImageReaderUserGetUser () const
 
void SetUser (MultiThreadImageReaderUser *u)
 
const std::string & GetFilename () const
 
int GetPriority () const
 
void SetPriority (int p)
 
int & Index ()
 
int & UnloadIndex ()
 
vtkImageData * GetImage () const
 
void SetImage (vtkImageData *i)
 
std::map< std::string,
std::string > 
getAttributes (const std::vector< std::string > i_attr)
 
 ImageToLoad (MultiThreadImageReaderUser *user, const std::string &filename, int prio=0)
 
 ~ImageToLoad ()
 
MultiThreadImageReaderUserGetUser () const
 
void SetUser (MultiThreadImageReaderUser *u)
 
const std::string & GetFilename () const
 
int GetPriority () const
 
void SetPriority (int p)
 
int & Index ()
 
int & UnloadIndex ()
 
vtkImageData * GetImage () const
 
void SetImage (vtkImageData *i)
 
std::map< std::string,
std::string > 
getAttributes (const std::vector< std::string > i_attr)
 

Private Attributes

MultiThreadImageReaderUsermUser
 
std::string mFilename
 
int mPriority
 
int mIndex
 
int mUnloadIndex
 
vtkImageData * mImage
 

Detailed Description

Class that represents an image to be loaded.

Definition at line 143 of file creaImageIOMultiThreadImageReader.h.

Constructor & Destructor Documentation

creaImageIO::MultiThreadImageReader::ImageToLoad::ImageToLoad ( MultiThreadImageReaderUser user,
const std::string &  filename,
int  prio = 0 
)
inline

Definition at line 146 of file creaImageIOMultiThreadImageReader.h.

149  : mUser(user),
150  mFilename(filename),
151  mPriority(prio),
152  mIndex(-1),
153  mUnloadIndex(-1),
154  mImage(0)
155  {}
creaImageIO::MultiThreadImageReader::ImageToLoad::~ImageToLoad ( )
inline

Definition at line 156 of file creaImageIOMultiThreadImageReader.h.

References mImage.

157  {
158  if (mImage>0)
159  {
160  // std::cout << "Refs = "<<mImage->GetReferenceCount()<<std::endl;
161  mImage->Delete();
162  }
163  }
creaImageIO::MultiThreadImageReader::ImageToLoad::ImageToLoad ( MultiThreadImageReaderUser user,
const std::string &  filename,
int  prio = 0 
)
inline

Definition at line 147 of file creaImageIOQMultiThreadImageReader.h.

150  : mUser(user),
151  mFilename(filename),
152  mPriority(prio),
153  mIndex(-1),
154  mUnloadIndex(-1),
155  mImage(0)
156  {}
creaImageIO::MultiThreadImageReader::ImageToLoad::~ImageToLoad ( )
inline

Definition at line 157 of file creaImageIOQMultiThreadImageReader.h.

References mImage.

158  {
159  if (mImage>0)
160  {
161  // std::cout << "Refs = "<<mImage->GetReferenceCount()<<std::endl;
162  mImage->Delete();
163  }
164  }

Member Function Documentation

std::map<std::string, std::string> creaImageIO::MultiThreadImageReader::ImageToLoad::getAttributes ( const std::vector< std::string >  i_attr)
std::map<std::string, std::string> creaImageIO::MultiThreadImageReader::ImageToLoad::getAttributes ( const std::vector< std::string >  i_attr)
const std::string& creaImageIO::MultiThreadImageReader::ImageToLoad::GetFilename ( ) const
inline
const std::string& creaImageIO::MultiThreadImageReader::ImageToLoad::GetFilename ( ) const
inline

Definition at line 167 of file creaImageIOQMultiThreadImageReader.h.

References mFilename.

167 { return mFilename; }
vtkImageData* creaImageIO::MultiThreadImageReader::ImageToLoad::GetImage ( ) const
inline
vtkImageData* creaImageIO::MultiThreadImageReader::ImageToLoad::GetImage ( ) const
inline

Definition at line 172 of file creaImageIOQMultiThreadImageReader.h.

References mImage.

172 { return mImage; }
int creaImageIO::MultiThreadImageReader::ImageToLoad::GetPriority ( ) const
inline
int creaImageIO::MultiThreadImageReader::ImageToLoad::GetPriority ( ) const
inline

Definition at line 168 of file creaImageIOQMultiThreadImageReader.h.

References mPriority.

168 { return mPriority; }
MultiThreadImageReaderUser* creaImageIO::MultiThreadImageReader::ImageToLoad::GetUser ( ) const
inline

Definition at line 164 of file creaImageIOMultiThreadImageReader.h.

References mUser.

Referenced by creaImageIO::MultiThreadImageReader::SignalImageRead().

164 { return mUser; }

Here is the caller graph for this function:

MultiThreadImageReaderUser* creaImageIO::MultiThreadImageReader::ImageToLoad::GetUser ( ) const
inline

Definition at line 165 of file creaImageIOQMultiThreadImageReader.h.

References mUser.

165 { return mUser; }
int& creaImageIO::MultiThreadImageReader::ImageToLoad::Index ( )
inline
int& creaImageIO::MultiThreadImageReader::ImageToLoad::Index ( )
inline

Definition at line 170 of file creaImageIOQMultiThreadImageReader.h.

References mIndex.

170 { return mIndex; }
void creaImageIO::MultiThreadImageReader::ImageToLoad::SetImage ( vtkImageData *  i)
inline

Definition at line 172 of file creaImageIOMultiThreadImageReader.h.

References mImage.

Referenced by creaImageIO::ThreadedImageReader::Entry(), creaImageIO::MultiThreadImageReader::GetImage(), and creaImageIO::MultiThreadImageReader::Request().

172 { mImage=i; }

Here is the caller graph for this function:

void creaImageIO::MultiThreadImageReader::ImageToLoad::SetImage ( vtkImageData *  i)
inline

Definition at line 173 of file creaImageIOQMultiThreadImageReader.h.

References mImage.

173 { mImage=i; }
void creaImageIO::MultiThreadImageReader::ImageToLoad::SetPriority ( int  p)
inline

Definition at line 168 of file creaImageIOMultiThreadImageReader.h.

References mPriority.

Referenced by creaImageIO::MultiThreadImageReader::Request(), and creaImageIO::MultiThreadImageReader::UpdateUnloadPriority().

168 { mPriority=p; }

Here is the caller graph for this function:

void creaImageIO::MultiThreadImageReader::ImageToLoad::SetPriority ( int  p)
inline

Definition at line 169 of file creaImageIOQMultiThreadImageReader.h.

References mPriority.

169 { mPriority=p; }
void creaImageIO::MultiThreadImageReader::ImageToLoad::SetUser ( MultiThreadImageReaderUser u)
inline

Definition at line 165 of file creaImageIOMultiThreadImageReader.h.

References mUser.

Referenced by creaImageIO::MultiThreadImageReader::Request().

165 { mUser = u; }

Here is the caller graph for this function:

void creaImageIO::MultiThreadImageReader::ImageToLoad::SetUser ( MultiThreadImageReaderUser u)
inline

Definition at line 166 of file creaImageIOQMultiThreadImageReader.h.

References mUser.

166 { mUser = u; }
int& creaImageIO::MultiThreadImageReader::ImageToLoad::UnloadIndex ( )
inline
int& creaImageIO::MultiThreadImageReader::ImageToLoad::UnloadIndex ( )
inline

Definition at line 171 of file creaImageIOQMultiThreadImageReader.h.

References mUnloadIndex.

171 { return mUnloadIndex; }

Member Data Documentation

std::string creaImageIO::MultiThreadImageReader::ImageToLoad::mFilename
private

Definition at line 177 of file creaImageIOMultiThreadImageReader.h.

Referenced by GetFilename().

vtkImageData * creaImageIO::MultiThreadImageReader::ImageToLoad::mImage
private

Definition at line 181 of file creaImageIOMultiThreadImageReader.h.

Referenced by GetImage(), SetImage(), and ~ImageToLoad().

int creaImageIO::MultiThreadImageReader::ImageToLoad::mIndex
private

Definition at line 179 of file creaImageIOMultiThreadImageReader.h.

Referenced by Index().

int creaImageIO::MultiThreadImageReader::ImageToLoad::mPriority
private

Definition at line 178 of file creaImageIOMultiThreadImageReader.h.

Referenced by GetPriority(), and SetPriority().

int creaImageIO::MultiThreadImageReader::ImageToLoad::mUnloadIndex
private

Definition at line 180 of file creaImageIOMultiThreadImageReader.h.

Referenced by UnloadIndex().

MultiThreadImageReaderUser * creaImageIO::MultiThreadImageReader::ImageToLoad::mUser
private

Definition at line 176 of file creaImageIOMultiThreadImageReader.h.

Referenced by GetUser(), and SetUser().


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