Fraxinus  16.5.0-fx-rc6
An IGT application
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
cx::TransferFunctions3DPresets Class Reference

Handles transfer function presets. More...

#include <cxTransferFunctions3DPresets.h>

Inheritance diagram for cx::TransferFunctions3DPresets:
cx::Presets

Public Member Functions

 TransferFunctions3DPresets (XmlOptionFile presetFile, XmlOptionFile customFile)
 
virtual ~TransferFunctions3DPresets ()
 
virtual void save (QString name, ImagePtr image, bool _2D=true, bool _3D=true)
 
void load (QString name, ImagePtr image, bool _2D=true, bool _3D=true)
 
void save2D (QString name, ImagePtr image)
 
void save3D (QString name, ImagePtr image)
 
void load2D (QString name, ImagePtr image)
 
void load3D (QString name, ImagePtr image)
 
void deletePresetData (QString name, bool _2D=true, bool _3D=true)
 Delete the preset data node. More...
 
- Public Member Functions inherited from cx::Presets
 Presets (XmlOptionFile presetFile, XmlOptionFile customFile)
 
virtual ~Presets ()
 
QString getId () const
 
void addCustomPreset (QDomElement &element)
 adds a custom preset More...
 
virtual void deleteCustomPreset (QString name)
 deletes the custom preset with the given name if it exists More...
 
virtual void save ()
 saves the presets to file More...
 
virtual void remove ()
 removes the presets from file More...
 
QStringList getPresetList (QString tag="")
 returns a list of the preset names for the given tag More...
 
bool isDefaultPreset (QString presetName)
 Check is the preset is one of the "system presets". More...
 
XmlOptionFile getCustomFile ()
 

Protected Member Functions

QStringList generatePresetList (QString modality)
 internally generate the preset list More...
 
- Protected Member Functions inherited from cx::Presets
XmlOptionFile getPresetNode (const QString &presetName)
 Look for a preset with the given name. Create one if not found. More...
 
void addDefaultPreset (QDomElement &element)
 
void addPreset (XmlOptionFile &file, QDomElement &element)
 
void print (QDomElement element)
 debugging function for printing xml elements More...
 

Additional Inherited Members

- Signals inherited from cx::Presets
void changed ()
 
- Protected Attributes inherited from cx::Presets
QString mLastCustomPresetAdded
 
QString mLastCustomPresetRemoved
 < the name of the last custom preset added More...
 
XmlOptionFile mPresetFile
 < the name of the last custom preset removed More...
 

Detailed Description

Handles transfer function presets.

Date
11. juni 2010
Author
: Janne Beate Bakeng, SINTEF

Definition at line 63 of file cxTransferFunctions3DPresets.h.

Constructor & Destructor Documentation

cx::TransferFunctions3DPresets::TransferFunctions3DPresets ( XmlOptionFile  presetFile,
XmlOptionFile  customFile 
)

Definition at line 51 of file cxTransferFunctions3DPresets.cpp.

virtual cx::TransferFunctions3DPresets::~TransferFunctions3DPresets ( )
inlinevirtual

Definition at line 68 of file cxTransferFunctions3DPresets.h.

Member Function Documentation

void cx::TransferFunctions3DPresets::deletePresetData ( QString  name,
bool  _2D = true,
bool  _3D = true 
)

Delete the preset data node.

Definition at line 203 of file cxTransferFunctions3DPresets.cpp.

QStringList cx::TransferFunctions3DPresets::generatePresetList ( QString  modality)
protectedvirtual

internally generate the preset list

Reimplemented from cx::Presets.

Definition at line 172 of file cxTransferFunctions3DPresets.cpp.

void cx::TransferFunctions3DPresets::load ( QString  name,
ImagePtr  image,
bool  _2D = true,
bool  _3D = true 
)

Definition at line 126 of file cxTransferFunctions3DPresets.cpp.

void cx::TransferFunctions3DPresets::load2D ( QString  name,
ImagePtr  image 
)

Definition at line 134 of file cxTransferFunctions3DPresets.cpp.

void cx::TransferFunctions3DPresets::load3D ( QString  name,
ImagePtr  image 
)

Definition at line 151 of file cxTransferFunctions3DPresets.cpp.

void cx::TransferFunctions3DPresets::save ( QString  name,
ImagePtr  image,
bool  _2D = true,
bool  _3D = true 
)
virtual

Definition at line 56 of file cxTransferFunctions3DPresets.cpp.

void cx::TransferFunctions3DPresets::save2D ( QString  name,
ImagePtr  image 
)

Definition at line 64 of file cxTransferFunctions3DPresets.cpp.

void cx::TransferFunctions3DPresets::save3D ( QString  name,
ImagePtr  image 
)

Definition at line 95 of file cxTransferFunctions3DPresets.cpp.


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