8 #ifndef IMPDISPLAY_BILD_WRITER_H
9 #define IMPDISPLAY_BILD_WRITER_H
11 #include <IMP/display/display_config.h>
18 IMPDISPLAY_DEPRECATED_HEADER(2.1,
"Use IMP.rmf")
20 IMPDISPLAY_BEGIN_NAMESPACE
29 void handle(
Color color) {
30 get_stream() <<
".color " << SpacesIO(color) <<
"\n";
34 get_stream() <<
".dotat " << algebra::spaces_io(g->get_geometry()) <<
"\n";
39 get_stream() <<
".move "
40 << algebra::spaces_io(g->get_geometry().
get_point(0)) <<
"\n";
41 get_stream() <<
".draw "
42 << algebra::spaces_io(g->get_geometry().
get_point(1)) <<
"\n";
47 get_stream() <<
".polygon ";
48 for (
unsigned int i = 0; i < g->get_geometry().size(); ++i) {
49 get_stream() <<
" " << algebra::spaces_io(g->get_geometry().at(i));
56 get_stream() <<
".polygon ";
57 for (
unsigned int i = 0; i < 3; ++i) {
58 get_stream() <<
" " << algebra::spaces_io(g->get_geometry().
get_point(i));
65 get_stream() <<
".sphere "
66 << algebra::spaces_io(g->get_geometry().get_center()) <<
" "
67 << g->get_geometry().get_radius() <<
"\n";
72 get_stream() <<
".cylinder "
73 << algebra::spaces_io(
74 g->get_geometry().get_segment().
get_point(0)) <<
" "
75 << algebra::spaces_io(
76 g->get_geometry().get_segment().
get_point(1)) <<
" "
77 << g->get_geometry().get_radius() <<
"\n";
82 IMPDISPLAY_DEPRECATED_OBJECT_DECL(2.1)
86 IMPDISPLAY_END_NAMESPACE
Import IMP/kernel/SingletonContainer.h in the namespace.
macros for display classes
Import IMP/kernel/PairContainer.h in the namespace.
Write a Bild file with the geometry.
Base class for writing geometry to a file.
const Vector3D & get_point(unsigned int i) const
Get the start=0/end=1 point of the segment.
#define IMP_TEXT_WRITER(Name)
Define information for an TextWriter object.
const Vector3D & get_point(unsigned int i) const
Get the start=0/end=1 point of the segment.