46 #ifndef OME_XML_MODEL_FILTER_H 47 #define OME_XML_MODEL_FILTER_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/Instrument.h> 64 #include <ome/xml/model/ManufacturerSpec.h> 65 #include <ome/xml/model/TransmittanceRange.h> 66 #include <ome/xml/model/enums/FilterType.h> 89 std::shared_ptr<Impl>
impl;
120 static std::shared_ptr<Filter>
134 operator= (
const Filter&) =
delete;
149 link (std::shared_ptr<Reference>& reference,
150 std::shared_ptr<ome::xml::model::OMEModelObject>&
object);
157 std::shared_ptr<std::string>
165 const std::shared_ptr<std::string>
181 std::shared_ptr<ome::xml::model::enums::FilterType>
189 const std::shared_ptr<ome::xml::model::enums::FilterType>
198 setType (std::shared_ptr<ome::xml::model::enums::FilterType>& type);
214 setID (
const std::string&
id);
221 std::shared_ptr<ome::xml::model::TransmittanceRange>
229 const std::shared_ptr<ome::xml::model::TransmittanceRange>
263 const std::weak_ptr<ome::xml::model::Annotation>&
276 const std::weak_ptr<ome::xml::model::Annotation>&
278 const std::shared_ptr<ome::xml::model::Annotation>& annotation);
291 linkAnnotation (
const std::shared_ptr<ome::xml::model::Annotation>& annotation);
309 unlinkAnnotation (
const std::shared_ptr<ome::xml::model::Annotation>& annotation);
316 std::weak_ptr<ome::xml::model::Instrument>
324 const std::weak_ptr<ome::xml::model::Instrument>
333 setInstrument (std::weak_ptr<ome::xml::model::Instrument>& instrument_BackReference);
358 const std::weak_ptr<ome::xml::model::FilterSet>&
371 const std::weak_ptr<ome::xml::model::FilterSet>&
373 const std::shared_ptr<ome::xml::model::FilterSet>& filterSet_BackReference);
429 const std::weak_ptr<ome::xml::model::FilterSet>&
442 const std::weak_ptr<ome::xml::model::FilterSet>&
444 const std::shared_ptr<ome::xml::model::FilterSet>& filterSet_BackReference);
500 const std::weak_ptr<ome::xml::model::LightPath>&
513 const std::weak_ptr<ome::xml::model::LightPath>&
515 const std::shared_ptr<ome::xml::model::LightPath>& lightPath_BackReference);
571 const std::weak_ptr<ome::xml::model::LightPath>&
584 const std::weak_ptr<ome::xml::model::LightPath>&
586 const std::shared_ptr<ome::xml::model::LightPath>& lightPath_BackReference);
635 #endif // OME_XML_MODEL_FILTER_H OME model interface (abstract top-level container)
Definition: OMEModel.h:61
std::weak_ptr< ome::xml::model::Instrument > getInstrument()
Get the Instrument property.
Definition: Filter.cpp:468
bool validElementName(const std::string &name) const
Check if a given element name is valid for processing by this model object.
Definition: Filter.cpp:224
bool linkAnnotation(const std::shared_ptr< ome::xml::model::Annotation > &annotation)
Link Annotation.
Definition: Filter.cpp:436
std::shared_ptr< Impl > impl
Private implementation details.
Definition: Filter.h:87
static std::shared_ptr< Filter > create(const common::xml::dom::Element &element, ome::xml::model::OMEModel &model)
Create a Filter model object from DOM element.
Definition: Filter.cpp:208
std::shared_ptr< ome::xml::model::enums::FilterType > getType()
Get the Type property.
Definition: Filter.cpp:352
const std::weak_ptr< ome::xml::model::FilterSet > & setLinkedFilterSetExcitationFilter(OMEModelObject::indexed_container< ome::xml::model::FilterSet, std::weak_ptr >::type::size_type index, const std::shared_ptr< ome::xml::model::FilterSet > &filterSet_BackReference)
Set linked FilterSetExcitationFilter.
Definition: Filter.cpp:507
Filter()
Default constructor.
Definition: Filter.cpp:184
bool unlinkAnnotation(const std::shared_ptr< ome::xml::model::Annotation > &annotation)
Unlink Annotation.
Definition: Filter.cpp:450
const std::string & elementName() const
Get the element name of this model object.
Definition: Filter.cpp:217
virtual ~Filter()
Destructor.
Definition: Filter.cpp:203
bool linkLightPathEmissionFilter(const std::shared_ptr< ome::xml::model::LightPath > &lightPath_BackReference)
Link LightPathEmissionFilter.
Definition: Filter.cpp:691
void setTransmittanceRange(std::shared_ptr< ome::xml::model::TransmittanceRange > &transmittanceRange)
Set the TransmittanceRange property.
Definition: Filter.cpp:401
void setFilterWheel(std::shared_ptr< std::string > &filterWheel)
Set the FilterWheel property.
Definition: Filter.cpp:345
OMEModelObject::indexed_container< ome::xml::model::FilterSet, std::weak_ptr >::type::size_type sizeOfLinkedFilterSetEmissionFilterList() const
Get size of linked FilterSetEmissionFilter list.
Definition: Filter.cpp:547
std::shared_ptr< std::string > getFilterWheel()
Get the FilterWheel property.
Definition: Filter.cpp:331
const std::weak_ptr< ome::xml::model::LightPath > & getLinkedLightPathExcitationFilter(OMEModelObject::indexed_container< ome::xml::model::LightPath, std::weak_ptr >::type::size_type index) const
Get linked LightPathExcitationFilter.
Definition: Filter.cpp:617
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: Filter.cpp:420
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
OMEModelObject::indexed_container< ome::xml::model::LightPath, std::weak_ptr >::type getLinkedLightPathEmissionFilterList() const
Get the linked LightPathEmissionFilter list.
Definition: Filter.cpp:669
OMEModelObject::indexed_container< ome::xml::model::LightPath, std::weak_ptr >::type getLinkedLightPathExcitationFilterList() const
Get the linked LightPathExcitationFilter list.
Definition: Filter.cpp:611
bool unlinkLightPathExcitationFilter(const std::shared_ptr< ome::xml::model::LightPath > &lightPath_BackReference)
Unlink LightPathExcitationFilter.
Definition: Filter.cpp:646
bool linkFilterSetExcitationFilter(const std::shared_ptr< ome::xml::model::FilterSet > &filterSet_BackReference)
Link FilterSetExcitationFilter.
Definition: Filter.cpp:517
const std::string & getID() const
Get the ID property.
Definition: Filter.cpp:373
void setInstrument(std::weak_ptr< ome::xml::model::Instrument > &instrument_BackReference)
Set the Instrument property.
Definition: Filter.cpp:482
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: Filter.cpp:426
Multi-index container for efficient ordered insertion and deletion of model object references...
Definition: OMEModelObject.h:84
OMEModelObject::indexed_container< ome::xml::model::LightPath, std::weak_ptr >::type::size_type sizeOfLinkedLightPathEmissionFilterList() const
Get size of linked LightPathEmissionFilter list.
Definition: Filter.cpp:663
Private implementation details of Filter model object.
Definition: Filter.cpp:78
Open Microscopy Environment C++ implementation.
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: Filter.cpp:230
OMEModelObject::indexed_container< ome::xml::model::LightPath, std::weak_ptr >::type::size_type sizeOfLinkedLightPathExcitationFilterList() const
Get size of linked LightPathExcitationFilter list.
Definition: Filter.cpp:605
OMEModelObject::indexed_container< ome::xml::model::FilterSet, std::weak_ptr >::type getLinkedFilterSetExcitationFilterList() const
Get the linked FilterSetExcitationFilter list.
Definition: Filter.cpp:495
bool linkLightPathExcitationFilter(const std::shared_ptr< ome::xml::model::LightPath > &lightPath_BackReference)
Link LightPathExcitationFilter.
Definition: Filter.cpp:633
bool unlinkLightPathEmissionFilter(const std::shared_ptr< ome::xml::model::LightPath > &lightPath_BackReference)
Unlink LightPathEmissionFilter.
Definition: Filter.cpp:704
std::shared_ptr< ome::xml::model::TransmittanceRange > getTransmittanceRange()
Get the TransmittanceRange property.
Definition: Filter.cpp:387
OMEModelObject::indexed_container< ome::xml::model::Annotation, std::weak_ptr >::type::size_type sizeOfLinkedAnnotationList() const
Get size of linked Annotation list.
Definition: Filter.cpp:408
const std::weak_ptr< ome::xml::model::FilterSet > & getLinkedFilterSetExcitationFilter(OMEModelObject::indexed_container< ome::xml::model::FilterSet, std::weak_ptr >::type::size_type index) const
Get linked FilterSetExcitationFilter.
Definition: Filter.cpp:501
const std::weak_ptr< ome::xml::model::LightPath > & setLinkedLightPathEmissionFilter(OMEModelObject::indexed_container< ome::xml::model::LightPath, std::weak_ptr >::type::size_type index, const std::shared_ptr< ome::xml::model::LightPath > &lightPath_BackReference)
Set linked LightPathEmissionFilter.
Definition: Filter.cpp:681
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: Filter.cpp:720
bool unlinkFilterSetEmissionFilter(const std::shared_ptr< ome::xml::model::FilterSet > &filterSet_BackReference)
Unlink FilterSetEmissionFilter.
Definition: Filter.cpp:588
ManufacturerSpec model object.
Definition: ManufacturerSpec.h:78
const std::weak_ptr< ome::xml::model::LightPath > & getLinkedLightPathEmissionFilter(OMEModelObject::indexed_container< ome::xml::model::LightPath, std::weak_ptr >::type::size_type index) const
Get linked LightPathEmissionFilter.
Definition: Filter.cpp:675
Filter model object.
Definition: Filter.h:84
const std::weak_ptr< ome::xml::model::FilterSet > & getLinkedFilterSetEmissionFilter(OMEModelObject::indexed_container< ome::xml::model::FilterSet, std::weak_ptr >::type::size_type index) const
Get linked FilterSetEmissionFilter.
Definition: Filter.cpp:559
OMEModelObject::indexed_container< ome::xml::model::FilterSet, std::weak_ptr >::type getLinkedFilterSetEmissionFilterList() const
Get the linked FilterSetEmissionFilter list.
Definition: Filter.cpp:553
OMEModelObject::indexed_container< ome::xml::model::Annotation, std::weak_ptr >::type getLinkedAnnotationList() const
Get the linked Annotation list.
Definition: Filter.cpp:414
const std::string & getXMLNamespace() const
Get the XML namespace for this model object.
Definition: Filter.cpp:791
const std::weak_ptr< ome::xml::model::LightPath > & setLinkedLightPathExcitationFilter(OMEModelObject::indexed_container< ome::xml::model::LightPath, std::weak_ptr >::type::size_type index, const std::shared_ptr< ome::xml::model::LightPath > &lightPath_BackReference)
Set linked LightPathExcitationFilter.
Definition: Filter.cpp:623
OMEModelObject::indexed_container< ome::xml::model::FilterSet, std::weak_ptr >::type::size_type sizeOfLinkedFilterSetExcitationFilterList() const
Get size of linked FilterSetExcitationFilter list.
Definition: Filter.cpp:489
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: Filter.cpp:300
void setID(const std::string &id)
Set the ID property.
Definition: Filter.cpp:380
bool unlinkFilterSetExcitationFilter(const std::shared_ptr< ome::xml::model::FilterSet > &filterSet_BackReference)
Unlink FilterSetExcitationFilter.
Definition: Filter.cpp:530
void setType(std::shared_ptr< ome::xml::model::enums::FilterType > &type)
Set the Type property.
Definition: Filter.cpp:366
bool linkFilterSetEmissionFilter(const std::shared_ptr< ome::xml::model::FilterSet > &filterSet_BackReference)
Link FilterSetEmissionFilter.
Definition: Filter.cpp:575
const std::weak_ptr< ome::xml::model::FilterSet > & setLinkedFilterSetEmissionFilter(OMEModelObject::indexed_container< ome::xml::model::FilterSet, std::weak_ptr >::type::size_type index, const std::shared_ptr< ome::xml::model::FilterSet > &filterSet_BackReference)
Set linked FilterSetEmissionFilter.
Definition: Filter.cpp:565