00001
00002
00003
00004
00005
00006
00007
00008 #ifndef IMPDISPLAY_PYMOL_WRITER_H
00009 #define IMPDISPLAY_PYMOL_WRITER_H
00010
00011 #include "display_config.h"
00012 #include "display_macros.h"
00013
00014 #include <IMP/PairContainer.h>
00015 #include <IMP/SingletonContainer.h>
00016 #include <IMP/display/Writer.h>
00017
00018 IMPDISPLAY_BEGIN_NAMESPACE
00019
00020
00021
00022
00023
00024
00025
00026
00027
00028
00029
00030
00031
00032 class IMPDISPLAYEXPORT PymolWriter: public Writer
00033 {
00034 friend class CGOAnimationWriter;
00035 void setup(std::string name);
00036 void cleanup(std::string name);
00037 bool process(SphereGeometry *g,
00038 Color color, std::string name);
00039 bool process(CylinderGeometry *g,
00040 Color color, std::string name);
00041 bool process(PointGeometry *g,
00042 Color color, std::string name);
00043 bool process(SegmentGeometry *g,
00044 Color color, std::string name);
00045 bool process(PolygonGeometry *g,
00046 Color color, std::string name);
00047 bool process(TriangleGeometry *g,
00048 Color color, std::string name);
00049
00050 public:
00051
00052 IMP_WRITER(PymolWriter);
00053 };
00054
00055
00056
00057 IMPDISPLAY_END_NAMESPACE
00058
00059 #endif