IMP  2.0.1
The Integrative Modeling Platform
IMP::display::CMMWriter Class Reference

Write a CMM file with the geometry. More...

#include <IMP/display/CMMWriter.h>

+ Inheritance diagram for IMP::display::CMMWriter:

Public Member Functions

 CMMWriter (base::TextOutput of)
 
 CMMWriter (std::string name)
 
 CMMWriter (const char *name)
 
unsigned int get_current_index () const
 
- Public Member Functions inherited from IMP::display::TextWriter
 TextWriter (base::TextOutput fn)
 Create a writer opening the file with the passed sink. More...
 
 TextWriter (std::string name)
 Create a write for a file or files with the passed name or pattern. More...
 
virtual ~TextWriter ()
 Write the data and close the file.
 
std::string get_current_file_name () const
 get the name of the current file being writter
 
- Public Member Functions inherited from IMP::display::Writer
 Writer (std::string name)
 Create a writer opening the file with the passed name.
 
virtual ~Writer ()
 Write the data and close the file.
 
void set_frame (unsigned int i)
 
int get_frame () const
 
void add_geometry (Geometry *g)
 
void add_geometry (const Geometries &g)
 
- Public Member Functions inherited from IMP::base::Object
virtual void clear_caches ()
 
virtual IMP::base::VersionInfo get_version_info () const =0
 Get information about the module and version of the object.
 
void set_check_level (CheckLevel l)
 
void set_log_level (LogLevel l)
 Set the logging level used in this object. More...
 
void set_was_used (bool tf) const
 
void show (std::ostream &out=std::cout) const
 
const std::string & get_name () const
 
void set_name (std::string name)
 

Additional Inherited Members

- Protected Member Functions inherited from IMP::display::TextWriter
void do_set_frame ()
 in case you want to take action on a new frame
 
std::ostream & get_stream ()
 Get the stream for inhereting classes to write to.
 
void open ()
 

Detailed Description

The CMM writer supports points and spheres. Cylinders can be added at some point.

This format creates one file per frame. So if you want to use frames and save them all, make sure there is a "%1%" in the file name string passed to the constructor.

You are probably better off using the IMP::display::ChimeraWriter which writes a python file, readable by Chimera as it supports more types of geometry.

Deprecated:
Use IMP::rmf for interfacing with Chimera.

Definition at line 34 of file CMMWriter.h.


The documentation for this class was generated from the following file: