fw4spl
fwDataTools::helper::Composite Class Reference

Defines an helper to modify an fwData::Composite and create in parallel the message to announce this modification. More...

#include <Composite.hpp>

Public Member Functions

FWDATATOOLS_API Composite (::fwData::Composite::wptr _composite)
 Constructor. Initialize parameters.
 
FWDATATOOLS_API ~Composite ()
 Destrucotr. Do nothing.
 
FWDATATOOLS_API void add (std::string _compositeKey,::fwData::Object::sptr _newObject)
 Add an object in the composite. More...
 
FWDATATOOLS_API void remove (std::string _compositeKey)
 Remove an object in the composite. More...
 
FWDATATOOLS_API void clear ()
 Clear all objects in the composite. More...
 
FWDATATOOLS_API void swap (std::string _compositeKey,::fwData::Object::sptr _newObject)
 Replace an object in the composite. More...
 
FWDATATOOLS_API void notify ()
 Send the message of modification. More...
 

Detailed Description

Defines an helper to modify an fwData::Composite and create in parallel the message to announce this modification.

Definition at line 22 of file SrcLib/core/fwDataTools/include/fwDataTools/helper/Composite.hpp.

Member Function Documentation

void fwDataTools::helper::Composite::add ( std::string  _compositeKey,
::fwData::Object::sptr  _newObject 
)

Add an object in the composite.

Parameters
[in]_compositeKeykey of the object in the composite.
[in]_newObjectobject to add in the composite

Prepare the message to announce the modification.

Definition at line 38 of file SrcLib/core/fwDataTools/src/fwDataTools/helper/Composite.cpp.

References OSLM_FATAL_IF.

Referenced by ctrlSelection::SManage::addOrSwap(), ctrlSelection::SManage::clear(), fwDataTools::helper::MedicalImageAdaptor::createTransferFunction(), fwDataTools::helper::Image::createTransferFunctionPool(), uiTF::TransferFunctionEditor::initTransferFunctions(), uiTF::TransferFunctionEditor::swapping(), and uiMedDataQt::editor::SOrganTransformation::updating().

+ Here is the caller graph for this function:

void fwDataTools::helper::Composite::clear ( )

Clear all objects in the composite.

Prepare the message to announce the modification.

Definition at line 71 of file SrcLib/core/fwDataTools/src/fwDataTools/helper/Composite.cpp.

Referenced by ctrlSelection::SManage::clear(), and uiTF::TransferFunctionEditor::swapping().

+ Here is the caller graph for this function:

void fwDataTools::helper::Composite::notify ( )
void fwDataTools::helper::Composite::remove ( std::string  _compositeKey)

Remove an object in the composite.

Parameters
[in]_compositeKeykey of the object in the composite.

Prepare the message to announce the modification.

Definition at line 53 of file SrcLib/core/fwDataTools/src/fwDataTools/helper/Composite.cpp.

References OSLM_FATAL_IF.

Referenced by ctrlSelection::SManage::remove(), ctrlSelection::SManage::removeIfPresent(), uiTF::TransferFunctionEditor::swapping(), and uiMedDataQt::editor::SOrganTransformation::updating().

+ Here is the caller graph for this function:

void fwDataTools::helper::Composite::swap ( std::string  _compositeKey,
::fwData::Object::sptr  _newObject 
)

Replace an object in the composite.

Parameters
[in]_compositeKeykey of the object in the composite.
[in]_newObjectthe new object to add in the composite.

Prepare the message to announce the modification.

Definition at line 87 of file SrcLib/core/fwDataTools/src/fwDataTools/helper/Composite.cpp.

References OSLM_FATAL_IF, and OSLM_INFO.

Referenced by ctrlSelection::SManage::addOrSwap(), ctrlSelection::SManage::swap(), and uiMedDataQt::editor::SOrganTransformation::updating().

+ Here is the caller graph for this function:


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