46 #ifndef OME_XML_MODEL_CHANNEL_H 47 #define OME_XML_MODEL_CHANNEL_H 57 #include <ome/common/xml/dom/Document.h> 58 #include <ome/common/xml/dom/Element.h> 59 #include <ome/common/xml/dom/Node.h> 61 #include <ome/xml/model/primitives/Quantity.h> 63 #include <ome/xml/model/DetectorSettings.h> 64 #include <ome/xml/model/FilterSet.h> 65 #include <ome/xml/model/LightPath.h> 66 #include <ome/xml/model/LightSourceSettings.h> 67 #include <ome/xml/model/Pixels.h> 68 #include <ome/xml/model/detail/OMEModelObject.h> 69 #include <ome/xml/model/enums/AcquisitionMode.h> 70 #include <ome/xml/model/enums/ContrastMethod.h> 71 #include <ome/xml/model/enums/IlluminationType.h> 72 #include <ome/xml/model/enums/UnitsLength.h> 73 #include <ome/xml/model/primitives/Color.h> 74 #include <ome/xml/model/primitives/PositiveFloat.h> 75 #include <ome/xml/model/primitives/PositiveInteger.h> 96 std::shared_ptr<Impl>
impl;
127 static std::shared_ptr<Channel>
141 operator= (
const Channel&) =
delete;
156 link (std::shared_ptr<Reference>& reference,
157 std::shared_ptr<ome::xml::model::OMEModelObject>&
object);
164 std::shared_ptr<ome::xml::model::primitives::Quantity<ome::xml::model::enums::UnitsLength > >&
172 const std::shared_ptr<ome::xml::model::primitives::Quantity<ome::xml::model::enums::UnitsLength > >&
188 std::shared_ptr<std::string>
196 const std::shared_ptr<std::string>
205 setName (std::shared_ptr<std::string>& name);
212 std::shared_ptr<ome::xml::model::enums::AcquisitionMode>
220 const std::shared_ptr<ome::xml::model::enums::AcquisitionMode>
229 setAcquisitionMode (std::shared_ptr<ome::xml::model::enums::AcquisitionMode>& acquisitionMode);
236 std::shared_ptr<ome::xml::model::primitives::Color>
244 const std::shared_ptr<ome::xml::model::primitives::Color>
253 setColor (std::shared_ptr<ome::xml::model::primitives::Color>& color);
260 std::shared_ptr<ome::xml::model::enums::ContrastMethod>
268 const std::shared_ptr<ome::xml::model::enums::ContrastMethod>
277 setContrastMethod (std::shared_ptr<ome::xml::model::enums::ContrastMethod>& contrastMethod);
284 std::shared_ptr<ome::xml::model::primitives::Quantity<ome::xml::model::enums::UnitsLength, ome::xml::model::primitives::PositiveFloat > >&
292 const std::shared_ptr<ome::xml::model::primitives::Quantity<ome::xml::model::enums::UnitsLength, ome::xml::model::primitives::PositiveFloat > >&
308 std::shared_ptr<ome::xml::model::enums::IlluminationType>
316 const std::shared_ptr<ome::xml::model::enums::IlluminationType>
325 setIlluminationType (std::shared_ptr<ome::xml::model::enums::IlluminationType>& illuminationType);
332 std::shared_ptr<std::string>
340 const std::shared_ptr<std::string>
349 setFluor (std::shared_ptr<std::string>& fluor);
356 std::shared_ptr<int32_t>
364 const std::shared_ptr<int32_t>
380 std::shared_ptr<double>
388 const std::shared_ptr<double>
404 std::shared_ptr<ome::xml::model::primitives::Quantity<ome::xml::model::enums::UnitsLength, ome::xml::model::primitives::PositiveFloat > >&
412 const std::shared_ptr<ome::xml::model::primitives::Quantity<ome::xml::model::enums::UnitsLength, ome::xml::model::primitives::PositiveFloat > >&
437 setID (
const std::string&
id);
444 std::shared_ptr<ome::xml::model::primitives::PositiveInteger>
452 const std::shared_ptr<ome::xml::model::primitives::PositiveInteger>
461 setSamplesPerPixel (std::shared_ptr<ome::xml::model::primitives::PositiveInteger>& samplesPerPixel);
468 std::shared_ptr<ome::xml::model::LightSourceSettings>
476 const std::shared_ptr<ome::xml::model::LightSourceSettings>
492 std::shared_ptr<ome::xml::model::DetectorSettings>
500 const std::shared_ptr<ome::xml::model::DetectorSettings>
509 setDetectorSettings (std::shared_ptr<ome::xml::model::DetectorSettings>& detectorSettings);
517 std::weak_ptr<ome::xml::model::FilterSet>
526 const std::weak_ptr<ome::xml::model::FilterSet>
535 linkFilterSet (std::shared_ptr<ome::xml::model::FilterSet>& filterSet);
547 unlinkFilterSet (std::shared_ptr<ome::xml::model::FilterSet>& filterSet);
572 const std::weak_ptr<ome::xml::model::Annotation>&
585 const std::weak_ptr<ome::xml::model::Annotation>&
587 const std::shared_ptr<ome::xml::model::Annotation>& annotation);
600 linkAnnotation (
const std::shared_ptr<ome::xml::model::Annotation>& annotation);
618 unlinkAnnotation (
const std::shared_ptr<ome::xml::model::Annotation>& annotation);
625 std::shared_ptr<ome::xml::model::LightPath>
633 const std::shared_ptr<ome::xml::model::LightPath>
642 setLightPath (std::shared_ptr<ome::xml::model::LightPath>& lightPath);
649 std::weak_ptr<ome::xml::model::Pixels>
657 const std::weak_ptr<ome::xml::model::Pixels>
666 setPixels (std::weak_ptr<ome::xml::model::Pixels>& pixels_BackReference);
684 #endif // OME_XML_MODEL_CHANNEL_H OME model interface (abstract top-level container)
Definition: OMEModel.h:61
std::shared_ptr< ome::xml::model::primitives::Quantity< ome::xml::model::enums::UnitsLength > > & getPinholeSize()
Get the PinholeSize property.
Definition: Channel.cpp:567
void setPockelCellSetting(std::shared_ptr< int32_t > &pockelCellSetting)
Set the PockelCellSetting property.
Definition: Channel.cpp:749
bool linkAnnotation(const std::shared_ptr< ome::xml::model::Annotation > &annotation)
Link Annotation.
Definition: Channel.cpp:932
void setExcitationWavelength(const std::shared_ptr< ome::xml::model::primitives::Quantity< ome::xml::model::enums::UnitsLength, ome::xml::model::primitives::PositiveFloat > > &excitationWavelength)
Set the ExcitationWavelength property.
Definition: Channel.cpp:686
bool unlinkAnnotation(const std::shared_ptr< ome::xml::model::Annotation > &annotation)
Unlink Annotation.
Definition: Channel.cpp:946
void setAcquisitionMode(std::shared_ptr< ome::xml::model::enums::AcquisitionMode > &acquisitionMode)
Set the AcquisitionMode property.
Definition: Channel.cpp:623
std::shared_ptr< Impl > impl
Private implementation details.
Definition: Channel.h:94
void setPinholeSize(const std::shared_ptr< ome::xml::model::primitives::Quantity< ome::xml::model::enums::UnitsLength > > &pinholeSize)
Set the PinholeSize property.
Definition: Channel.cpp:581
Channel()
Default constructor.
Definition: Channel.cpp:263
std::shared_ptr< std::string > getName()
Get the Name property.
Definition: Channel.cpp:588
virtual SKIP void update(const common::xml::dom::Element &element, ome::xml::model::OMEModel &model)
Update the object hierarchy recursively from an XML DOM tree.
Definition: Channel.cpp:309
void setIlluminationType(std::shared_ptr< ome::xml::model::enums::IlluminationType > &illuminationType)
Set the IlluminationType property.
Definition: Channel.cpp:707
virtual ~Channel()
Destructor.
Definition: Channel.cpp:282
boost::multi_index_container< Ptr< T >, boost::multi_index::indexed_by< boost::multi_index::random_access<>, boost::multi_index::ordered_unique< boost::multi_index::identity< Ptr< T > >, std::owner_less< Ptr< T > > > > > type
Multi-index container type.
Definition: OMEModelObject.h:93
const std::string & getID() const
Get the ID property.
Definition: Channel.cpp:798
OME model object (concrete implementation).
Definition: OMEModelObject.h:64
Channel model object.
Definition: Channel.h:91
const std::weak_ptr< ome::xml::model::Annotation > & getLinkedAnnotation(OMEModelObject::indexed_container< ome::xml::model::Annotation, std::weak_ptr >::type::size_type index) const
Get linked Annotation.
Definition: Channel.cpp:916
std::weak_ptr< ome::xml::model::Pixels > getPixels()
Get the Pixels property.
Definition: Channel.cpp:985
bool validElementName(const std::string &name) const
Check if a given element name is valid for processing by this model object.
Definition: Channel.cpp:303
std::weak_ptr< ome::xml::model::FilterSet > getLinkedFilterSet()
Get linked FilterSet.
Definition: Channel.cpp:875
void setLightPath(std::shared_ptr< ome::xml::model::LightPath > &lightPath)
Set the LightPath property.
Definition: Channel.cpp:978
void setSamplesPerPixel(std::shared_ptr< ome::xml::model::primitives::PositiveInteger > &samplesPerPixel)
Set the SamplesPerPixel property.
Definition: Channel.cpp:826
const std::string & getXMLNamespace() const
Get the XML namespace for this model object.
Definition: Channel.cpp:1207
std::shared_ptr< ome::xml::model::primitives::PositiveInteger > getSamplesPerPixel()
Get the SamplesPerPixel property.
Definition: Channel.cpp:812
std::shared_ptr< ome::xml::model::primitives::Quantity< ome::xml::model::enums::UnitsLength, ome::xml::model::primitives::PositiveFloat > > & getEmissionWavelength()
Get the EmissionWavelength property.
Definition: Channel.cpp:777
void linkFilterSet(std::shared_ptr< ome::xml::model::FilterSet > &filterSet)
Link FilterSet.
Definition: Channel.cpp:888
virtual void asXMLElementInternal(common::xml::dom::Document &document, common::xml::dom::Element &element) const
Transform the object hierarchy rooted at this element to XML.
Definition: Channel.cpp:1005
std::shared_ptr< ome::xml::model::enums::AcquisitionMode > getAcquisitionMode()
Get the AcquisitionMode property.
Definition: Channel.cpp:609
Multi-index container for efficient ordered insertion and deletion of model object references...
Definition: OMEModelObject.h:84
std::shared_ptr< int32_t > getPockelCellSetting()
Get the PockelCellSetting property.
Definition: Channel.cpp:735
Open Microscopy Environment C++ implementation.
static std::shared_ptr< Channel > create(const common::xml::dom::Element &element, ome::xml::model::OMEModel &model)
Create a Channel model object from DOM element.
Definition: Channel.cpp:287
std::shared_ptr< ome::xml::model::DetectorSettings > getDetectorSettings()
Get the DetectorSettings property.
Definition: Channel.cpp:854
const std::string & elementName() const
Get the element name of this model object.
Definition: Channel.cpp:296
std::shared_ptr< ome::xml::model::LightPath > getLightPath()
Get the LightPath property.
Definition: Channel.cpp:964
void unlinkFilterSet(std::shared_ptr< ome::xml::model::FilterSet > &filterSet)
Unlink FilterSet.
Definition: Channel.cpp:894
void setEmissionWavelength(const std::shared_ptr< ome::xml::model::primitives::Quantity< ome::xml::model::enums::UnitsLength, ome::xml::model::primitives::PositiveFloat > > &emissionWavelength)
Set the EmissionWavelength property.
Definition: Channel.cpp:791
Private implementation details of Channel model object.
Definition: Channel.cpp:94
void setColor(std::shared_ptr< ome::xml::model::primitives::Color > &color)
Set the Color property.
Definition: Channel.cpp:644
const std::weak_ptr< ome::xml::model::Annotation > & setLinkedAnnotation(OMEModelObject::indexed_container< ome::xml::model::Annotation, std::weak_ptr >::type::size_type index, const std::shared_ptr< ome::xml::model::Annotation > &annotation)
Set linked Annotation.
Definition: Channel.cpp:922
void setDetectorSettings(std::shared_ptr< ome::xml::model::DetectorSettings > &detectorSettings)
Set the DetectorSettings property.
Definition: Channel.cpp:868
void setFluor(std::shared_ptr< std::string > &fluor)
Set the Fluor property.
Definition: Channel.cpp:728
std::shared_ptr< ome::xml::model::primitives::Quantity< ome::xml::model::enums::UnitsLength, ome::xml::model::primitives::PositiveFloat > > & getExcitationWavelength()
Get the ExcitationWavelength property.
Definition: Channel.cpp:672
void setLightSourceSettings(std::shared_ptr< ome::xml::model::LightSourceSettings > &lightSourceSettings)
Set the LightSourceSettings property.
Definition: Channel.cpp:847
void setPixels(std::weak_ptr< ome::xml::model::Pixels > &pixels_BackReference)
Set the Pixels property.
Definition: Channel.cpp:999
std::shared_ptr< ome::xml::model::primitives::Color > getColor()
Get the Color property.
Definition: Channel.cpp:630
bool link(std::shared_ptr< Reference > &reference, std::shared_ptr< ome::xml::model::OMEModelObject > &object)
Link a given OME model object to this model object.
Definition: Channel.cpp:525
std::shared_ptr< std::string > getFluor()
Get the Fluor property.
Definition: Channel.cpp:714
A quantity of a defined unit.
Definition: Quantity.h:57
std::shared_ptr< ome::xml::model::LightSourceSettings > getLightSourceSettings()
Get the LightSourceSettings property.
Definition: Channel.cpp:833
void setName(std::shared_ptr< std::string > &name)
Set the Name property.
Definition: Channel.cpp:602
OMEModelObject::indexed_container< ome::xml::model::Annotation, std::weak_ptr >::type::size_type sizeOfLinkedAnnotationList() const
Get size of linked Annotation list.
Definition: Channel.cpp:904
OMEModelObject::indexed_container< ome::xml::model::Annotation, std::weak_ptr >::type getLinkedAnnotationList() const
Get the linked Annotation list.
Definition: Channel.cpp:910
std::shared_ptr< ome::xml::model::enums::ContrastMethod > getContrastMethod()
Get the ContrastMethod property.
Definition: Channel.cpp:651
void setID(const std::string &id)
Set the ID property.
Definition: Channel.cpp:805
void setNDFilter(std::shared_ptr< double > &ndFilter)
Set the NDFilter property.
Definition: Channel.cpp:770
std::shared_ptr< double > getNDFilter()
Get the NDFilter property.
Definition: Channel.cpp:756
void setContrastMethod(std::shared_ptr< ome::xml::model::enums::ContrastMethod > &contrastMethod)
Set the ContrastMethod property.
Definition: Channel.cpp:665
std::shared_ptr< ome::xml::model::enums::IlluminationType > getIlluminationType()
Get the IlluminationType property.
Definition: Channel.cpp:693