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>
60 #include <ome/common/xml/dom/NodeList.h>
62 #include <ome/xml/model/DetectorSettings.h>
63 #include <ome/xml/model/FilterSet.h>
64 #include <ome/xml/model/LightPath.h>
65 #include <ome/xml/model/LightSourceSettings.h>
66 #include <ome/xml/model/Pixels.h>
67 #include <ome/xml/model/detail/OMEModelObject.h>
68 #include <ome/xml/model/enums/AcquisitionMode.h>
69 #include <ome/xml/model/enums/ContrastMethod.h>
70 #include <ome/xml/model/enums/IlluminationType.h>
71 #include <ome/xml/model/primitives/Color.h>
72 #include <ome/xml/model/primitives/PositiveInteger.h>
93 ome::compat::shared_ptr<Impl>
impl;
124 static ome::compat::shared_ptr< Channel>
149 link (ome::compat::shared_ptr<Reference>& reference,
150 ome::compat::shared_ptr< ome::xml::model::OMEModelObject>&
object);
157 ome::compat::shared_ptr<double>
165 const ome::compat::shared_ptr<double>
181 ome::compat::shared_ptr<std::string>
189 const ome::compat::shared_ptr<std::string>
198 setName (ome::compat::shared_ptr<std::string>& name);
205 ome::compat::shared_ptr<ome::xml::model::enums::AcquisitionMode>
213 const ome::compat::shared_ptr<ome::xml::model::enums::AcquisitionMode>
222 setAcquisitionMode (ome::compat::shared_ptr<ome::xml::model::enums::AcquisitionMode>& acquisitionMode);
229 ome::compat::shared_ptr<ome::xml::model::primitives::Color>
237 const ome::compat::shared_ptr<ome::xml::model::primitives::Color>
246 setColor (ome::compat::shared_ptr<ome::xml::model::primitives::Color>& color);
253 ome::compat::shared_ptr<ome::xml::model::enums::ContrastMethod>
261 const ome::compat::shared_ptr<ome::xml::model::enums::ContrastMethod>
270 setContrastMethod (ome::compat::shared_ptr<ome::xml::model::enums::ContrastMethod>& contrastMethod);
277 ome::compat::shared_ptr<ome::xml::model::primitives::PositiveInteger>
285 const ome::compat::shared_ptr<ome::xml::model::primitives::PositiveInteger>
294 setExcitationWavelength (ome::compat::shared_ptr<ome::xml::model::primitives::PositiveInteger>& excitationWavelength);
301 ome::compat::shared_ptr<ome::xml::model::enums::IlluminationType>
309 const ome::compat::shared_ptr<ome::xml::model::enums::IlluminationType>
318 setIlluminationType (ome::compat::shared_ptr<ome::xml::model::enums::IlluminationType>& illuminationType);
325 ome::compat::shared_ptr<std::string>
333 const ome::compat::shared_ptr<std::string>
342 setFluor (ome::compat::shared_ptr<std::string>& fluor);
349 ome::compat::shared_ptr<int32_t>
357 const ome::compat::shared_ptr<int32_t>
373 ome::compat::shared_ptr<ome::xml::model::primitives::PositiveInteger>
381 const ome::compat::shared_ptr<ome::xml::model::primitives::PositiveInteger>
390 setEmissionWavelength (ome::compat::shared_ptr<ome::xml::model::primitives::PositiveInteger>& emissionWavelength);
397 ome::compat::shared_ptr<double>
405 const ome::compat::shared_ptr<double>
414 setNDFilter (ome::compat::shared_ptr<double>& ndFilter);
430 setID (
const std::string&
id);
437 ome::compat::shared_ptr<ome::xml::model::primitives::PositiveInteger>
445 const ome::compat::shared_ptr<ome::xml::model::primitives::PositiveInteger>
454 setSamplesPerPixel (ome::compat::shared_ptr<ome::xml::model::primitives::PositiveInteger>& samplesPerPixel);
461 ome::compat::shared_ptr<ome::xml::model::LightSourceSettings>
469 const ome::compat::shared_ptr<ome::xml::model::LightSourceSettings>
478 setLightSourceSettings (ome::compat::shared_ptr<ome::xml::model::LightSourceSettings>& lightSourceSettings);
485 ome::compat::shared_ptr<ome::xml::model::DetectorSettings>
493 const ome::compat::shared_ptr<ome::xml::model::DetectorSettings>
502 setDetectorSettings (ome::compat::shared_ptr<ome::xml::model::DetectorSettings>& detectorSettings);
510 ome::compat::weak_ptr<ome::xml::model::FilterSet>
519 const ome::compat::weak_ptr<ome::xml::model::FilterSet>
528 linkFilterSet (ome::compat::shared_ptr<ome::xml::model::FilterSet>& filterSet);
540 unlinkFilterSet (ome::compat::shared_ptr<ome::xml::model::FilterSet>& filterSet);
565 const ome::compat::weak_ptr<ome::xml::model::Annotation>&
578 const ome::compat::weak_ptr<ome::xml::model::Annotation>&
580 const ome::compat::shared_ptr<ome::xml::model::Annotation>& annotation);
593 linkAnnotation (
const ome::compat::shared_ptr<ome::xml::model::Annotation>& annotation);
611 unlinkAnnotation (
const ome::compat::shared_ptr<ome::xml::model::Annotation>& annotation);
618 ome::compat::shared_ptr<ome::xml::model::LightPath>
626 const ome::compat::shared_ptr<ome::xml::model::LightPath>
635 setLightPath (ome::compat::shared_ptr<ome::xml::model::LightPath>& lightPath);
642 ome::compat::weak_ptr<ome::xml::model::Pixels>
650 const ome::compat::weak_ptr<ome::xml::model::Pixels>
659 setPixels (ome::compat::weak_ptr<ome::xml::model::Pixels>& pixels_BackReference);
683 #endif // OME_XML_MODEL_CHANNEL_H
OME model interface (abstract top-level container)
Definition: OMEModel.h:62
void setDetectorSettings(ome::compat::shared_ptr< ome::xml::model::DetectorSettings > &detectorSettings)
Set the DetectorSettings property.
Definition: Channel.cpp:850
ome::compat::shared_ptr< std::string > getFluor()
Get the Fluor property.
Definition: Channel.cpp:696
ome::compat::shared_ptr< ome::xml::model::primitives::PositiveInteger > getSamplesPerPixel()
Get the SamplesPerPixel property.
Definition: Channel.cpp:794
void setColor(ome::compat::shared_ptr< ome::xml::model::primitives::Color > &color)
Set the Color property.
Definition: Channel.cpp:626
ome::compat::shared_ptr< ome::xml::model::enums::ContrastMethod > getContrastMethod()
Get the ContrastMethod property.
Definition: Channel.cpp:633
Channel()
Default constructor.
Definition: Channel.cpp:257
void linkFilterSet(ome::compat::shared_ptr< ome::xml::model::FilterSet > &filterSet)
Link FilterSet.
Definition: Channel.cpp:870
ome::compat::shared_ptr< std::string > getName()
Get the Name property.
Definition: Channel.cpp:570
const std::string & getXMLNamespace() const
Get the XML namespace for this model object.
Definition: Channel.cpp:1230
ome::compat::shared_ptr< Impl > impl
Private implementation details.
Definition: Channel.h:91
virtual 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:306
ome::compat::weak_ptr< ome::xml::model::Pixels > getPixels()
Get the Pixels property.
Definition: Channel.cpp:967
void setSamplesPerPixel(ome::compat::shared_ptr< ome::xml::model::primitives::PositiveInteger > &samplesPerPixel)
Set the SamplesPerPixel property.
Definition: Channel.cpp:808
virtual ~Channel()
Destructor.
Definition: Channel.cpp:276
bool validElementName(const std::string &name) const
Check if a given element name is valid for processing by this model object.
Definition: Channel.cpp:297
DOM Document wrapper.
Definition: Document.h:83
DOM Element wrapper.
Definition: Element.h:66
OME model object (concrete implementation).
Definition: OMEModelObject.h:64
OMEModelObject::indexed_container< ome::xml::model::Annotation, ome::compat::weak_ptr >::type getLinkedAnnotationList() const
Get the linked Annotation list.
Definition: Channel.cpp:892
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 > >, ome::compat::owner_less< Ptr< T > > > > > type
Multi-index container type.
Definition: OMEModelObject.h:94
Channel model object.
Definition: Channel.h:88
const ome::compat::weak_ptr< ome::xml::model::Annotation > & getLinkedAnnotation(OMEModelObject::indexed_container< ome::xml::model::Annotation, ome::compat::weak_ptr >::type::size_type index) const
Get linked Annotation.
Definition: Channel.cpp:898
const std::string & getID() const
Get the ID property.
Definition: Channel.cpp:780
void setNDFilter(ome::compat::shared_ptr< double > &ndFilter)
Set the NDFilter property.
Definition: Channel.cpp:773
ome::compat::shared_ptr< double > getPinholeSize()
Get the PinholeSize property.
Definition: Channel.cpp:549
void setFluor(ome::compat::shared_ptr< std::string > &fluor)
Set the Fluor property.
Definition: Channel.cpp:710
ome::compat::shared_ptr< ome::xml::model::primitives::PositiveInteger > getExcitationWavelength()
Get the ExcitationWavelength property.
Definition: Channel.cpp:654
void setContrastMethod(ome::compat::shared_ptr< ome::xml::model::enums::ContrastMethod > &contrastMethod)
Set the ContrastMethod property.
Definition: Channel.cpp:647
void setLightPath(ome::compat::shared_ptr< ome::xml::model::LightPath > &lightPath)
Set the LightPath property.
Definition: Channel.cpp:960
Multi-index container for efficient ordered insertion and deletion of model object references...
Definition: OMEModelObject.h:85
ome::compat::shared_ptr< ome::xml::model::primitives::PositiveInteger > getEmissionWavelength()
Get the EmissionWavelength property.
Definition: Channel.cpp:738
bool linkAnnotation(const ome::compat::shared_ptr< ome::xml::model::Annotation > &annotation)
Link Annotation.
Definition: Channel.cpp:914
Open Microscopy Environment C++ implementation.
Definition: CoreMetadata.cpp:40
ome::compat::shared_ptr< ome::xml::model::enums::AcquisitionMode > getAcquisitionMode()
Get the AcquisitionMode property.
Definition: Channel.cpp:591
Private implementation details of Channel model object.
Definition: Channel.cpp:91
void setEmissionWavelength(ome::compat::shared_ptr< ome::xml::model::primitives::PositiveInteger > &emissionWavelength)
Set the EmissionWavelength property.
Definition: Channel.cpp:752
ome::compat::shared_ptr< ome::xml::model::LightSourceSettings > getLightSourceSettings()
Get the LightSourceSettings property.
Definition: Channel.cpp:815
void setName(ome::compat::shared_ptr< std::string > &name)
Set the Name property.
Definition: Channel.cpp:584
ome::compat::shared_ptr< double > getNDFilter()
Get the NDFilter property.
Definition: Channel.cpp:759
const ome::compat::weak_ptr< ome::xml::model::Annotation > & setLinkedAnnotation(OMEModelObject::indexed_container< ome::xml::model::Annotation, ome::compat::weak_ptr >::type::size_type index, const ome::compat::shared_ptr< ome::xml::model::Annotation > &annotation)
Set linked Annotation.
Definition: Channel.cpp:904
void setExcitationWavelength(ome::compat::shared_ptr< ome::xml::model::primitives::PositiveInteger > &excitationWavelength)
Set the ExcitationWavelength property.
Definition: Channel.cpp:668
ome::compat::shared_ptr< ome::xml::model::enums::IlluminationType > getIlluminationType()
Get the IlluminationType property.
Definition: Channel.cpp:675
ome::compat::shared_ptr< ome::xml::model::DetectorSettings > getDetectorSettings()
Get the DetectorSettings property.
Definition: Channel.cpp:836
void setLightSourceSettings(ome::compat::shared_ptr< ome::xml::model::LightSourceSettings > &lightSourceSettings)
Set the LightSourceSettings property.
Definition: Channel.cpp:829
virtual common::xml::dom::Element asXMLElement(common::xml::dom::Document &document) const
Transform the object hierarchy rooted at this element to XML.
Definition: Channel.cpp:988
ome::compat::shared_ptr< int32_t > getPockelCellSetting()
Get the PockelCellSetting property.
Definition: Channel.cpp:717
ome::compat::shared_ptr< ome::xml::model::LightPath > getLightPath()
Get the LightPath property.
Definition: Channel.cpp:946
bool link(ome::compat::shared_ptr< Reference > &reference, ome::compat::shared_ptr< ome::xml::model::OMEModelObject > &object)
Link a given OME model object to this model object.
Definition: Channel.cpp:507
OMEModelObject::indexed_container< ome::xml::model::Annotation, ome::compat::weak_ptr >::type::size_type sizeOfLinkedAnnotationList() const
Get size of linked Annotation list.
Definition: Channel.cpp:886
void setPockelCellSetting(ome::compat::shared_ptr< int32_t > &pockelCellSetting)
Set the PockelCellSetting property.
Definition: Channel.cpp:731
void unlinkFilterSet(ome::compat::shared_ptr< ome::xml::model::FilterSet > &filterSet)
Unlink FilterSet.
Definition: Channel.cpp:876
void setPixels(ome::compat::weak_ptr< ome::xml::model::Pixels > &pixels_BackReference)
Set the Pixels property.
Definition: Channel.cpp:981
void setID(const std::string &id)
Set the ID property.
Definition: Channel.cpp:787
void setIlluminationType(ome::compat::shared_ptr< ome::xml::model::enums::IlluminationType > &illuminationType)
Set the IlluminationType property.
Definition: Channel.cpp:689
static ome::compat::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:281
ome::compat::shared_ptr< ome::xml::model::primitives::Color > getColor()
Get the Color property.
Definition: Channel.cpp:612
ome::compat::weak_ptr< ome::xml::model::FilterSet > getLinkedFilterSet()
Get linked FilterSet.
Definition: Channel.cpp:857
bool unlinkAnnotation(const ome::compat::shared_ptr< ome::xml::model::Annotation > &annotation)
Unlink Annotation.
Definition: Channel.cpp:928
virtual common::xml::dom::Element 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:995
const std::string & elementName() const
Get the element name of this model object.
Definition: Channel.cpp:290
void setAcquisitionMode(ome::compat::shared_ptr< ome::xml::model::enums::AcquisitionMode > &acquisitionMode)
Set the AcquisitionMode property.
Definition: Channel.cpp:605
void setPinholeSize(ome::compat::shared_ptr< double > &pinholeSize)
Set the PinholeSize property.
Definition: Channel.cpp:563
Xerces-C modern C++ wrapper.
Definition: Base.h:53