CustusX  2023.01.05-dev+develop.0da12
An IGT application
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 ()
 
IMAGE_MODALITY 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 (IMAGE_MODALITY tag=imUNKNOWN)
 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

virtual QStringList generatePresetList (IMAGE_MODALITY 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 42 of file cxTransferFunctions3DPresets.h.

Constructor & Destructor Documentation

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

Definition at line 31 of file cxTransferFunctions3DPresets.cpp.

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

Definition at line 47 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 186 of file cxTransferFunctions3DPresets.cpp.

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

internally generate the preset list

Reimplemented from cx::Presets.

Definition at line 155 of file cxTransferFunctions3DPresets.cpp.

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

Definition at line 106 of file cxTransferFunctions3DPresets.cpp.

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

Definition at line 114 of file cxTransferFunctions3DPresets.cpp.

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

Definition at line 134 of file cxTransferFunctions3DPresets.cpp.

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

Definition at line 36 of file cxTransferFunctions3DPresets.cpp.

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

Definition at line 44 of file cxTransferFunctions3DPresets.cpp.

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

Definition at line 75 of file cxTransferFunctions3DPresets.cpp.


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