Public Member Functions | Static Public Member Functions | Friends

Slice Class Reference

Inheritance diagram for Slice:
VolumeIndex

List of all members.

Public Member Functions

 Slice (const QString &name)
void Save (QXmlStreamWriter &xmlWriter)
QString Initialize (const QFileInfo &slice)
QString InitializeFromXml (const QFileInfo &slice)
unsigned SliceNum () const
int NumImages ()
void SetSection (Section *section)
Sliceoperator= (const Slice &rhs)
void RefreshRowCount ()
SectionGetSection () const
ImageGetImage (int row)
int IndexOf (Image *image)
QList< Image * > GetImages ()
void Dirty ()

Static Public Member Functions

static bool ReplaceSymbols (QString &str, const QString &channel, const VolumeIndex *slice=NULL, const VolumeIndex *nextSlice=NULL, const QString &save="")
static bool InsertSymbols (QString &str, const VolumeIndex *slice=NULL, const VolumeIndex *nextSlice=NULL)
static QString GetChannel ()
static QString GetDownsample ()
static QString GetSubDirs ()
static QString ParentName (const QFileInfo &fileInfo)

Friends

class Section
class Iris::IrisTests
void Volume::ChannelChanged (const QString &ch)
void Volume::DownsampleChanged (const QString &ds)
void Volume::AddSlice (Section *section, Slice *slice, int idx)
void Volume::AddImage (Slice *slice, Image *image, int idx)
void Volume::RefreshImages ()
void Volume::ClearImages (Slice *slice)
void Volume::RefreshImages (Slice *slice)
void Volume::DeleteImage (Image *image, bool trueDelete)
void Volume::MoveImage (Slice *oldSlice, int oldRow, Slice *newSlice)

Member Function Documentation

bool Slice::ReplaceSymbols ( QString &  str,
const QString &  channel,
const VolumeIndex index = NULL,
const VolumeIndex prevIndex = NULL,
const QString &  save = "" 
) [static]

Replaces symbols used in the ToolList.xml with the actual information about this slice. This is very useful when the information is dynamic, such as slice, channel, and downsample names.

Valid Symbols
  • Save - Replaced with the save name of the tool.
  • [0] - Replaced with the current section's name.
  • StackName - Replaced with the current section's name.
  • [-1] - Replaced with the previous section's name.
  • Name - Replaced with the current section's name.
  • Channel - Replaced with the current selected channel.
  • Downsample - Replaced with the current selected downsample.


The documentation for this class was generated from the following files:
 All Classes Functions Variables