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>
94 ome::compat::shared_ptr<std::string>
name;
98 ome::compat::shared_ptr<ome::xml::model::primitives::Color>
color;
106 ome::compat::shared_ptr<std::string>
fluor;
116 ome::compat::shared_ptr<ome::xml::model::primitives::PositiveInteger>
samplesPerPixel;
122 ome::compat::weak_ptr<ome::xml::model::FilterSet>
filterSet;
126 ome::compat::shared_ptr<ome::xml::model::LightPath>
lightPath;
128 ome::compat::weak_ptr<ome::xml::model::Pixels>
pixels;
161 static ome::compat::shared_ptr< Channel>
186 link (ome::compat::shared_ptr<Reference>& reference,
187 ome::compat::shared_ptr< ome::xml::model::OMEModelObject>&
object);
194 ome::compat::shared_ptr<double>
202 const ome::compat::shared_ptr<double>
218 ome::compat::shared_ptr<std::string>
226 const ome::compat::shared_ptr<std::string>
235 setName (ome::compat::shared_ptr<std::string>& name);
242 ome::compat::shared_ptr<ome::xml::model::enums::AcquisitionMode>
250 const ome::compat::shared_ptr<ome::xml::model::enums::AcquisitionMode>
259 setAcquisitionMode (ome::compat::shared_ptr<ome::xml::model::enums::AcquisitionMode>& acquisitionMode);
266 ome::compat::shared_ptr<ome::xml::model::primitives::Color>
274 const ome::compat::shared_ptr<ome::xml::model::primitives::Color>
283 setColor (ome::compat::shared_ptr<ome::xml::model::primitives::Color>& color);
290 ome::compat::shared_ptr<ome::xml::model::enums::ContrastMethod>
298 const ome::compat::shared_ptr<ome::xml::model::enums::ContrastMethod>
307 setContrastMethod (ome::compat::shared_ptr<ome::xml::model::enums::ContrastMethod>& contrastMethod);
314 ome::compat::shared_ptr<ome::xml::model::primitives::PositiveInteger>
322 const ome::compat::shared_ptr<ome::xml::model::primitives::PositiveInteger>
331 setExcitationWavelength (ome::compat::shared_ptr<ome::xml::model::primitives::PositiveInteger>& excitationWavelength);
338 ome::compat::shared_ptr<ome::xml::model::enums::IlluminationType>
346 const ome::compat::shared_ptr<ome::xml::model::enums::IlluminationType>
355 setIlluminationType (ome::compat::shared_ptr<ome::xml::model::enums::IlluminationType>& illuminationType);
362 ome::compat::shared_ptr<std::string>
370 const ome::compat::shared_ptr<std::string>
379 setFluor (ome::compat::shared_ptr<std::string>& fluor);
386 ome::compat::shared_ptr<int32_t>
394 const ome::compat::shared_ptr<int32_t>
410 ome::compat::shared_ptr<ome::xml::model::primitives::PositiveInteger>
418 const ome::compat::shared_ptr<ome::xml::model::primitives::PositiveInteger>
427 setEmissionWavelength (ome::compat::shared_ptr<ome::xml::model::primitives::PositiveInteger>& emissionWavelength);
434 ome::compat::shared_ptr<double>
442 const ome::compat::shared_ptr<double>
451 setNDFilter (ome::compat::shared_ptr<double>& ndFilter);
467 setID (
const std::string&
id);
474 ome::compat::shared_ptr<ome::xml::model::primitives::PositiveInteger>
482 const ome::compat::shared_ptr<ome::xml::model::primitives::PositiveInteger>
491 setSamplesPerPixel (ome::compat::shared_ptr<ome::xml::model::primitives::PositiveInteger>& samplesPerPixel);
498 ome::compat::shared_ptr<ome::xml::model::LightSourceSettings>
506 const ome::compat::shared_ptr<ome::xml::model::LightSourceSettings>
515 setLightSourceSettings (ome::compat::shared_ptr<ome::xml::model::LightSourceSettings>& lightSourceSettings);
522 ome::compat::shared_ptr<ome::xml::model::DetectorSettings>
530 const ome::compat::shared_ptr<ome::xml::model::DetectorSettings>
539 setDetectorSettings (ome::compat::shared_ptr<ome::xml::model::DetectorSettings>& detectorSettings);
547 ome::compat::weak_ptr<ome::xml::model::FilterSet>
556 const ome::compat::weak_ptr<ome::xml::model::FilterSet>
565 linkFilterSet (ome::compat::shared_ptr<ome::xml::model::FilterSet>& filterSet);
577 unlinkFilterSet (ome::compat::shared_ptr<ome::xml::model::FilterSet>& filterSet);
602 const ome::compat::weak_ptr<ome::xml::model::Annotation>&
615 const ome::compat::weak_ptr<ome::xml::model::Annotation>&
617 const ome::compat::shared_ptr<ome::xml::model::Annotation>& annotation);
630 linkAnnotation (
const ome::compat::shared_ptr<ome::xml::model::Annotation>& annotation);
648 unlinkAnnotation (
const ome::compat::shared_ptr<ome::xml::model::Annotation>& annotation);
655 ome::compat::shared_ptr<ome::xml::model::LightPath>
663 const ome::compat::shared_ptr<ome::xml::model::LightPath>
672 setLightPath (ome::compat::shared_ptr<ome::xml::model::LightPath>& lightPath);
679 ome::compat::weak_ptr<ome::xml::model::Pixels>
687 const ome::compat::weak_ptr<ome::xml::model::Pixels>
696 setPixels (ome::compat::weak_ptr<ome::xml::model::Pixels>& pixels_BackReference);
720 #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:799
ome::compat::shared_ptr< std::string > getFluor()
Get the Fluor property.
Definition: Channel.cpp:645
ome::compat::shared_ptr< ome::xml::model::primitives::PositiveInteger > getSamplesPerPixel()
Get the SamplesPerPixel property.
Definition: Channel.cpp:743
void setColor(ome::compat::shared_ptr< ome::xml::model::primitives::Color > &color)
Set the Color property.
Definition: Channel.cpp:575
ome::compat::shared_ptr< ome::xml::model::enums::ContrastMethod > getContrastMethod()
Get the ContrastMethod property.
Definition: Channel.cpp:582
std::string id
ID property.
Definition: Channel.h:114
Channel()
Default constructor.
Definition: Channel.cpp:170
void linkFilterSet(ome::compat::shared_ptr< ome::xml::model::FilterSet > &filterSet)
Link FilterSet.
Definition: Channel.cpp:819
ome::compat::shared_ptr< std::string > getName()
Get the Name property.
Definition: Channel.cpp:519
const std::string & getXMLNamespace() const
Get the XML namespace for this model object.
Definition: Channel.cpp:1179
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:255
ome::compat::weak_ptr< ome::xml::model::Pixels > getPixels()
Get the Pixels property.
Definition: Channel.cpp:916
void setSamplesPerPixel(ome::compat::shared_ptr< ome::xml::model::primitives::PositiveInteger > &samplesPerPixel)
Set the SamplesPerPixel property.
Definition: Channel.cpp:757
virtual ~Channel()
Destructor.
Definition: Channel.cpp:225
bool validElementName(const std::string &name) const
Check if a given element name is valid for processing by this model object.
Definition: Channel.cpp:246
DOM Document wrapper.
Definition: Document.h:82
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:841
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
ome::compat::shared_ptr< ome::xml::model::primitives::PositiveInteger > excitationWavelength
ExcitationWavelength property.
Definition: Channel.h:102
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:847
const std::string & getID() const
Get the ID property.
Definition: Channel.cpp:729
ome::compat::shared_ptr< std::string > name
Name property.
Definition: Channel.h:94
void setNDFilter(ome::compat::shared_ptr< double > &ndFilter)
Set the NDFilter property.
Definition: Channel.cpp:722
ome::compat::shared_ptr< double > getPinholeSize()
Get the PinholeSize property.
Definition: Channel.cpp:498
void setFluor(ome::compat::shared_ptr< std::string > &fluor)
Set the Fluor property.
Definition: Channel.cpp:659
ome::compat::shared_ptr< ome::xml::model::enums::IlluminationType > illuminationType
IlluminationType property.
Definition: Channel.h:104
ome::compat::shared_ptr< ome::xml::model::primitives::PositiveInteger > getExcitationWavelength()
Get the ExcitationWavelength property.
Definition: Channel.cpp:603
ome::compat::shared_ptr< double > ndFilter
NDFilter property.
Definition: Channel.h:112
void setContrastMethod(ome::compat::shared_ptr< ome::xml::model::enums::ContrastMethod > &contrastMethod)
Set the ContrastMethod property.
Definition: Channel.cpp:596
ome::compat::shared_ptr< ome::xml::model::LightPath > lightPath
LightPath property.
Definition: Channel.h:126
void setLightPath(ome::compat::shared_ptr< ome::xml::model::LightPath > &lightPath)
Set the LightPath property.
Definition: Channel.cpp:909
ome::compat::shared_ptr< ome::xml::model::enums::AcquisitionMode > acquisitionMode
AcquisitionMode property.
Definition: Channel.h:96
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:687
ome::compat::shared_ptr< int32_t > pockelCellSetting
PockelCellSetting property.
Definition: Channel.h:108
bool linkAnnotation(const ome::compat::shared_ptr< ome::xml::model::Annotation > &annotation)
Link Annotation.
Definition: Channel.cpp:863
Open Microscopy Environment C++ implementation.
Definition: CoreMetadata.cpp:40
ome::compat::weak_ptr< ome::xml::model::FilterSet > filterSet
FilterSetRef reference.
Definition: Channel.h:122
ome::compat::shared_ptr< ome::xml::model::primitives::PositiveInteger > emissionWavelength
EmissionWavelength property.
Definition: Channel.h:110
ome::compat::shared_ptr< ome::xml::model::enums::AcquisitionMode > getAcquisitionMode()
Get the AcquisitionMode property.
Definition: Channel.cpp:540
OMEModelObject::indexed_container< ome::xml::model::Annotation, ome::compat::weak_ptr >::type annotationLinks
AnnotationRef reference (occurs more than once)
Definition: Channel.h:124
void setEmissionWavelength(ome::compat::shared_ptr< ome::xml::model::primitives::PositiveInteger > &emissionWavelength)
Set the EmissionWavelength property.
Definition: Channel.cpp:701
ome::compat::shared_ptr< ome::xml::model::LightSourceSettings > getLightSourceSettings()
Get the LightSourceSettings property.
Definition: Channel.cpp:764
ome::compat::shared_ptr< ome::xml::model::LightSourceSettings > lightSourceSettings
LightSourceSettings property.
Definition: Channel.h:118
void setName(ome::compat::shared_ptr< std::string > &name)
Set the Name property.
Definition: Channel.cpp:533
ome::compat::shared_ptr< double > getNDFilter()
Get the NDFilter property.
Definition: Channel.cpp:708
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:853
void setExcitationWavelength(ome::compat::shared_ptr< ome::xml::model::primitives::PositiveInteger > &excitationWavelength)
Set the ExcitationWavelength property.
Definition: Channel.cpp:617
ome::compat::shared_ptr< ome::xml::model::enums::IlluminationType > getIlluminationType()
Get the IlluminationType property.
Definition: Channel.cpp:624
ome::compat::shared_ptr< ome::xml::model::DetectorSettings > getDetectorSettings()
Get the DetectorSettings property.
Definition: Channel.cpp:785
void setLightSourceSettings(ome::compat::shared_ptr< ome::xml::model::LightSourceSettings > &lightSourceSettings)
Set the LightSourceSettings property.
Definition: Channel.cpp:778
ome::compat::weak_ptr< ome::xml::model::Pixels > pixels
Pixels_BackReference back reference.
Definition: Channel.h:128
ome::compat::shared_ptr< ome::xml::model::primitives::Color > color
Color property.
Definition: Channel.h:98
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:937
ome::compat::shared_ptr< int32_t > getPockelCellSetting()
Get the PockelCellSetting property.
Definition: Channel.cpp:666
ome::compat::shared_ptr< ome::xml::model::LightPath > getLightPath()
Get the LightPath property.
Definition: Channel.cpp:895
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:456
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:835
ome::compat::shared_ptr< double > pinholeSize
PinholeSize property.
Definition: Channel.h:92
void setPockelCellSetting(ome::compat::shared_ptr< int32_t > &pockelCellSetting)
Set the PockelCellSetting property.
Definition: Channel.cpp:680
void unlinkFilterSet(ome::compat::shared_ptr< ome::xml::model::FilterSet > &filterSet)
Unlink FilterSet.
Definition: Channel.cpp:825
ome::compat::shared_ptr< std::string > fluor
Fluor property.
Definition: Channel.h:106
void setPixels(ome::compat::weak_ptr< ome::xml::model::Pixels > &pixels_BackReference)
Set the Pixels property.
Definition: Channel.cpp:930
void setID(const std::string &id)
Set the ID property.
Definition: Channel.cpp:736
ome::compat::shared_ptr< ome::xml::model::enums::ContrastMethod > contrastMethod
ContrastMethod property.
Definition: Channel.h:100
void setIlluminationType(ome::compat::shared_ptr< ome::xml::model::enums::IlluminationType > &illuminationType)
Set the IlluminationType property.
Definition: Channel.cpp:638
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:230
ome::compat::shared_ptr< ome::xml::model::primitives::Color > getColor()
Get the Color property.
Definition: Channel.cpp:561
ome::compat::weak_ptr< ome::xml::model::FilterSet > getLinkedFilterSet()
Get linked FilterSet.
Definition: Channel.cpp:806
bool unlinkAnnotation(const ome::compat::shared_ptr< ome::xml::model::Annotation > &annotation)
Unlink Annotation.
Definition: Channel.cpp:877
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:944
const std::string & elementName() const
Get the element name of this model object.
Definition: Channel.cpp:239
ome::compat::shared_ptr< ome::xml::model::primitives::PositiveInteger > samplesPerPixel
SamplesPerPixel property.
Definition: Channel.h:116
ome::compat::shared_ptr< ome::xml::model::DetectorSettings > detectorSettings
DetectorSettings property.
Definition: Channel.h:120
void setAcquisitionMode(ome::compat::shared_ptr< ome::xml::model::enums::AcquisitionMode > &acquisitionMode)
Set the AcquisitionMode property.
Definition: Channel.cpp:554
void setPinholeSize(ome::compat::shared_ptr< double > &pinholeSize)
Set the PinholeSize property.
Definition: Channel.cpp:512
Xerces-C modern C++ wrapper.
Definition: Base.h:53