29 #ifndef CDPL_VIS_FEATURECONTAINEROBJECT3DWRITER_HPP
30 #define CDPL_VIS_FEATURECONTAINEROBJECT3DWRITER_HPP
56 template <
typename WriterImpl>
87 operator const void*()
const;
104 WriterImpl o3dWriter;
112 template <
typename WriterImpl>
118 o3dWriter.setParent(
this);
122 template <
typename WriterImpl>
128 template <
typename WriterImpl>
132 auto obj = o3dFactory.create(cntnr);
134 o3dWriter.
write(*obj);
136 }
catch (
const std::exception& e) {
137 throw Base::IOError(std::string(
"FeatureContainerObject3DWriter: ") + e.what());
143 template <
typename WriterImpl>
146 return o3dWriter.operator
const void*();
149 template <
typename WriterImpl>
152 return o3dWriter.operator!();
155 template <
typename WriterImpl>
Definition of exception classes.
Definition of class CDPL::Base::DataWriter.
Definition of class CDPL::Vis::FeatureContainerObject3DFactory.
void setParent(const ControlParameterContainer *cntnr)
Sets or removes the parent control-parameter container used to resolve requests for missing entries.
void invokeIOCallbacks(double progress) const
Invokes all registered I/O callback functions with the argument *this.
Interface for writing data objects of a given type to an arbitrary data sink.
Definition: DataWriter.hpp:63
virtual DataWriter & write(const DataType &obj)=0
Writes the data object obj.
Thrown to indicate that an I/O operation has failed because of physical (e.g. broken pipe) or logical...
Definition: Base/Exceptions.hpp:250
Abstract base class for containers holding a sequence of Pharm::Feature objects with associated prope...
Definition: FeatureContainer.hpp:55
Class implementing the creation of Vis::Object3D instances providing a 3D representation of Pharm::Fe...
Definition: FeatureContainerObject3DFactory.hpp:59
Generic Base::DataWriter implementation for the generation and output of Pharm::FeatureContainer 3D v...
Definition: FeatureContainerObject3DWriter.hpp:58
~FeatureContainerObject3DWriter()
Destructor.
Definition: FeatureContainerObject3DWriter.hpp:123
FeatureContainerObject3DWriter(const FeatureContainerObject3DWriter &)=delete
bool operator!() const
Tells whether the embedded WriterImpl instance is in a bad (non-writable) state.
Definition: FeatureContainerObject3DWriter.hpp:150
Base::DataWriter< Pharm::FeatureContainer > & write(const Pharm::FeatureContainer &cntnr)
Builds a 3D scene representation of cntnr and outputs it using the embedded WriterImpl instance.
Definition: FeatureContainerObject3DWriter.hpp:129
FeatureContainerObject3DWriter & operator=(const FeatureContainerObject3DWriter &)=delete
FeatureContainerObject3DWriter(std::ostream &os)
Constructs a FeatureContainerObject3DWriter instance that will write 3D models of Pharm::FeatureConta...
Definition: FeatureContainerObject3DWriter.hpp:113
void close()
Closes the embedded WriterImpl instance.
Definition: FeatureContainerObject3DWriter.hpp:156
The namespace of the Chemical Data Processing Library.