IMP
2.0.0
The Integrative Modeling Platform
|
Base class for writing geometry to a file. More...
#include <IMP/display/Writer.h>
Public Member Functions | |
Writer (std::string name) | |
Create a writer opening the file with the passed name. | |
virtual | ~Writer () |
Write the data and close the file. | |
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) |
Protected Member Functions | |
virtual void | do_close ()=0 |
A hook for implementation classes to use to take actions on file close. | |
virtual void | do_open ()=0 |
A hook for implementation classes to use to take actions on file open. | |
virtual void | do_set_frame () |
in case you want to take action on a new frame | |
Protected Member Functions inherited from IMP::display::GeometryProcessor | |
virtual bool | handle_anything (Geometry *, Color, std::string) |
virtual bool | handle_bounding_box (BoundingBoxGeometry *, Color, std::string) |
virtual bool | handle_cylinder (CylinderGeometry *, Color, std::string) |
virtual bool | handle_ellipsoid (EllipsoidGeometry *, Color, std::string) |
void | handle_geometry (Geometry *g) |
virtual bool | handle_label (LabelGeometry *, Color, std::string) |
virtual bool | handle_point (PointGeometry *, Color, std::string) |
virtual bool | handle_polygon (PolygonGeometry *, Color, std::string) |
virtual bool | handle_segment (SegmentGeometry *, Color, std::string) |
virtual bool | handle_sphere (SphereGeometry *, Color, std::string) |
virtual bool | handle_surface_mesh (SurfaceMeshGeometry *, Color, std::string) |
virtual bool | handle_triangle (TriangleGeometry *, Color, std::string) |
Protected Member Functions inherited from IMP::base::Object | |
Object (std::string name) | |
Construct an object with the given name. More... | |
Related Functions | |
(Note that these are not member functions.) | |
typedef IMP::base::Vector < IMP::base::WeakPointer < Writer > > | WritersTemp |
Related Functions inherited from IMP::base::Object | |
typedef IMP::base::Vector < IMP::base::WeakPointer < Object > > | ObjectsTemp |
Geometry Addition methods | |||
These methods can be used to add geometry to the model. If you do not want the geometry objects to be destroyed upon addition, make sure you store an IMP::Pointer to them externally.
| |||
void | add_geometry (Geometry *g) | ||
void | add_geometry (const Geometries &g) | ||
A writer object accumulates geometry and then writes a file when the object is destroyed. You must set the name of the file being written to before writing using the IMP::display::Writer::set_file_name() method.
|
related |