IMP logo
IMP Reference Guide  develop.7482b7c7af, 2026/12/05
The Integrative Modeling Platform
RMFWriter.h
Go to the documentation of this file.
1/**
2 * \file IMP/rmf/RMFWriter.h
3 * \brief Write geometry to an RMF file.
4 *
5 * Copyright 2007-2022 IMP Inventors. All rights reserved.
6 *
7 */
8
9#ifndef IMPRMF_RMF_WRITER_H
10#define IMPRMF_RMF_WRITER_H
11
12#include <IMP/rmf/rmf_config.h>
13#include <RMF/FileHandle.h>
14#include <IMP/display/Writer.h>
16#include <boost/unordered_set.hpp>
17
18IMPRMF_BEGIN_NAMESPACE
19#if 0
20/** Only one frame is handled. Sorry. Kind of hard to fix.*/
21class IMPRMFEXPORT RMFWriter : public display::Writer {
22 RMF::FileHandle rh_;
23 boost::unordered_set<display::Geometry*> added_;
24 void do_add_geometry(Geometry* g);
25 void do_add_geometry(const Geometries& g);
26 void on_set_frame();
27
28 public:
29 RMFWriter(RMF::FileHandle rh);
30 IMP_WRITER(RMFWriter);
31};
32#endif
33IMPRMF_END_NAMESPACE
34
35#endif /* IMPRMF_RMF_WRITER_H */
Base class for writing geometry to a file.
macros for display classes