IMP  2.1.0
The Integrative Modeling Platform
LogOptimizerState.h
Go to the documentation of this file.
1 /**
2  * \file IMP/display/LogOptimizerState.h
3  * \brief Write geometry to a file during optimization
4  *
5  * Copyright 2007-2013 IMP Inventors. All rights reserved.
6  */
7 
8 #ifndef IMPDISPLAY_LOG_OPTIMIZER_STATE_H
9 #define IMPDISPLAY_LOG_OPTIMIZER_STATE_H
10 
11 #include <IMP/display/display_config.h>
12 #include "declare_Geometry.h"
13 #include "Writer.h"
15 #include <IMP/display/geometry.h>
16 #include <IMP/base/Pointer.h>
17 #include <IMP/kernel/internal/utility.h>
18 #include <vector>
19 
20 IMPDISPLAY_BEGIN_NAMESPACE
21 
22 /** Write to a Writer periodically.
23  */
24 class IMPDISPLAYEXPORT WriteOptimizerState : public kernel::OptimizerState {
26 
27  public:
28  /** \deprecated_at{2.1} Use the method that takes a kernel::Model. */
29  IMPDISPLAY_DEPRECATED_FUNCTION_DECL(2.1)
32  void write(WriterAdaptor w) const;
33  IMP_LIST_ACTION(public, Geometry, Geometries, geometry, geometries,
34  Geometry *, Geometries, , , );
35 
36  protected:
37  virtual void do_update(unsigned int) IMP_OVERRIDE;
39 };
40 
41 IMPDISPLAY_END_NAMESPACE
42 
43 #endif /* IMPDISPLAY_LOG_OPTIMIZER_STATE_H */
virtual void do_update(unsigned int)
A nullptr-initialized pointer to an IMP Object.
The base class for geometry.
A smart pointer to a ref-counted Object that is a class memeber.
Definition: base/Pointer.h:146
Shared optimizer state that is invoked upon commitment of new coordinates.
Implement geometry for the basic shapes from IMP.algebra.
Base class for writing geometry to a file.
Shared optimizer state.
#define IMP_OBJECT_METHODS(Name)
Define the basic things needed by any Object.
Backwards compatibility header.
Class for storing model, its restraints, constraints, and particles.