9 #include "fwData/config.hpp" 10 #include "fwData/factory/new.hpp" 11 #include "fwData/PlaneList.hpp" 12 #include "fwData/Reconstruction.hpp" 14 #include <fwCom/Signal.hpp> 15 #include <fwCom/Signals.hpp> 19 fwCampAutoDeclareDataMacro((
fwData)(Resection), FWDATA_API);
30 (()), ::fwData::factory::New< Resection >);
34 typedef std::vector< ::fwData::Reconstruction::sptr > ResectionInputs;
35 typedef std::vector< ::fwData::Reconstruction::sptr > ResectionOutputs;
47 FWDATA_API
void shallowCopy(
const Object::csptr& _source )
override;
50 FWDATA_API
void cachedDeepCopy(
const Object::csptr& _source, DeepCopyCacheType& cache)
override;
56 ::fwData::PlaneList::sptr& getPlaneList();
57 const ::fwData::PlaneList::sptr& getPlaneList()
const;
58 void setPlaneList (const ::fwData::PlaneList::sptr& _planeList);
65 ResectionInputs& getInputs ();
66 const ResectionInputs& getInputs ()
const;
67 void setInputs (
const ResectionInputs& _vInputs);
74 ResectionOutputs& getOutputs ();
75 const ResectionOutputs& getOutputs ()
const;
76 void setOutputs (
const ResectionOutputs& _vOutputs);
83 bool getIsSafePart ()
const;
84 void setIsSafePart (
const bool _isSafePart);
91 std::string& getName ();
92 const std::string& getName ()
const;
93 void setName (
const std::string& _name);
101 bool getIsVisible ()
const;
102 void setIsVisible (
const bool _isVisible);
110 bool getIsValid ()
const;
111 void setIsValid (
const bool _isValid);
165 ReconstructionAddedSignalType::sptr m_sigReconstructionAdded;
169 VisibilityModifiedSignalType::sptr m_sigVisibilityModified;
194 m_planeList = _planeList;
215 m_vInputs = _vInputs;
236 m_vOutputs = _vOutputs;
250 m_isSafePart = _isSafePart;
285 m_isVisible = _isVisible;
299 m_isValid = _isValid;
bool m_isSafePart
flag if the part is safe
void setInputs(const ResectionInputs &_vInputs)
Get/Set value of the inputs.
ResectionOutputs & getOutputs()
Get/Set value of the outputs.
ResectionInputs & getInputs()
Get/Set value of the inputs.
void setIsVisible(const bool _isVisible)
Get/Set value of the IsVisible.
Key class used to restrict access to Object construction. See http://www.drdobbs.com/184402053.
This class defines a resection.
bool getIsVisible() const
Get/Set value of the IsVisible.
void setIsSafePart(const bool _isSafePart)
Get/Set value of the IsSafePart.
void setName(const std::string &_name)
Get/Set value of the name.
ResectionOutputs m_vOutputs
Outputs (reconstructions)
#define fwCoreClassDefinitionsWithFactoryMacro(_classinfo_, _parameters_, _factory_)
Generate common construction methods for classes with one factory.
void setIsValid(const bool _isValid)
Get/Set value of the IsValid.
::fwCom::Signal< void() > VisibilityModifiedSignalType
Type of signal when the resection visibility is modified.
bool getIsSafePart() const
Get/Set value of the IsSafePart.
ResectionInputs m_vInputs
Inputs (reconstructions)
std::string m_name
Resection name.
bool m_isValid
flag if the resection is valid
Base class for each data object.
bool m_isVisible
flag if the resection is visible
::fwData::PlaneList::sptr m_planeList
Planes list.
void setPlaneList(const ::fwData::PlaneList::sptr &_planeList)
Get/Set value of the planeList.
Contains the representation of the data objects used in the framework.
::fwData::PlaneList::sptr & getPlaneList()
Get/Set value of the planeList.
static FWDATA_APIconst::fwCom::Signals::SignalKeyType s_RECONSTRUCTION_ADDED_SIG
Key in m_signals map of signal m_sigReconstructionAdded.
std::string & getName()
Get/Set value of the name.
::fwCom::Signal< void() > ReconstructionAddedSignalType
Type of signal when a reconstruction is added.
bool getIsValid() const
Get/Set value of the IsValid.
static FWDATA_APIconst::fwCom::Signals::SignalKeyType s_VISIBILITY_MODIFIED_SIG
Key in m_signals map of signal m_sigVisibilityModified.
void setOutputs(const ResectionOutputs &_vOutputs)
Get/Set value of the outputs.