Structural Bioinformatics Library
Template C++ / Python API for developping structural bioinformatics applications.
PyMOL_viewer Class Reference

Viewer writing in PyMOL file format. More...

#include <PyMOL_viewer.hpp>

Parameters

boost::tuple< double, double, double > get_color_rgb (const std::string &color) const
 Returns the index associated to a given color.
bool is_transparent (void) const
 Checks that the next object will be viewn using transparent material.
void set_transparent (bool is_transparent)
 Sets the transparent tag.
bool is_visible (void) const
 Checks that the next object will be visible.
void set_visible (bool is_visible)
 Sets the visible tag.
bool is_cloning (void) const
 Checks that the next object will copy the last molecule if any.
void set_cloning (bool is_cloning)
 Sets the cloning tag.
unsigned get_vertex_resolution (void) const
 Returns the number of facets around a sphere representing a vertex.
void set_vertex_resolution (unsigned resolution)
 Sets the number of facets around a sphere representing a vertex.
unsigned get_circle_resolution (void) const
 Returns the number of segments around a circular arc.
void set_circle_resolution (unsigned resolution)
 Sets the number of segments around a circular arc.
double get_vertex_radius (void) const
 Returns the radius of a sphere representing a vertex.
void set_vertex_radius (double radius)
 Sets the radius of a sphere representing a vertex.
double get_edge_radius (void) const
 Returns the radius of a cylinder representing an edge.
void set_edge_radius (double radius)
 Sets the radius of a cylinder representing an edge.
double get_infinite_factor (void) const
 Returns the multiplicative factor used for representing infinite objects (e.g a line).
void set_infinite_factor (double factor)
 Sets the multiplicative factor used for representing infinite objects (e.g a line).

Viewings

void make_new_molecule (const std::string &mol_name)
 Creates a new molecule in PyMOL.
void make_add_molecule (const std::string &filename)
 Loads a molecule to PyMOL.
void make_add_molecules_with_index (const std::string &prefix, const std::string &extension, unsigned index)
 Loads a list of molecules to PyMOL with indexed filenames.
void add_new_representation (void)
 Creates a new representation of the current molecule in PyMOL.
void delete_first_representation (void)
 Deletes the first representation of the current molecule in PyMOL.
void set_representation (const std::string &rep)
 Sets the mode of the current representation of the current molecule in PyMOL.
void set_color (const std::string &color)
 Sets the color of the current representation of the current molecule in PyMOL.
void set_color (std::size_t color_id)
 Sets the color of the current representation of the current molecule in PyMOL.
const boost::tuple< double, double, double > & get_default_color (void) const
 Gets the color of the current representation of the current molecule in PyMOL.
void set_graphics_color (const std::string &color)
 Sets the color of geometric object for the current molecule in PyMOL.
void set_graphics_transparent (bool is_transparent)
 Sets the type of material to use (opaque or transparent) for the current molecule in PyMOL.
void set_top_molecule (const std::string &mol_name)
 Sets the molecule with the input name as the current molecule in PyMOL.
void finalize_molecule (void)
 Finalizes the molecule: here, it prints the molecule.

Detailed Description

Viewer writing in PyMOL file format.

Constructed with an output stream, it uses the output stream operator for writing in a file the corresponding objects in PyMOL format. For each object passed to the operator, the PyMOL_view method or struct should be defined.

Member Function Documentation

◆ add_new_representation()

template<class Dummy>
void add_new_representation ( void )
inlineinherited

Creates a new representation of the current molecule in PyMOL.

◆ delete_first_representation()

template<class Dummy>
void delete_first_representation ( void )
inlineinherited

Deletes the first representation of the current molecule in PyMOL.

◆ finalize_molecule()

template<class Dummy>
void finalize_molecule ( void )
inlineinherited

Finalizes the molecule: here, it prints the molecule.

◆ get_circle_resolution()

template<class Dummy>
unsigned get_circle_resolution ( void ) const
inlineinherited

Returns the number of segments around a circular arc.

◆ get_color_rgb()

template<class Dummy>
boost::tuple< double, double, double > get_color_rgb ( const std::string & color) const
inlineinherited

Returns the index associated to a given color.

If the string does not represent a known color, it returns 0 (blue).

◆ get_default_color()

template<class Dummy>
const boost::tuple< double, double, double > & get_default_color ( void ) const
inlineinherited

Gets the color of the current representation of the current molecule in PyMOL.

◆ get_edge_radius()

template<class Dummy>
double get_edge_radius ( void ) const
inlineinherited

Returns the radius of a cylinder representing an edge.

◆ get_infinite_factor()

template<class Dummy>
double get_infinite_factor ( void ) const
inlineinherited

Returns the multiplicative factor used for representing infinite objects (e.g a line).

◆ get_vertex_radius()

template<class Dummy>
double get_vertex_radius ( void ) const
inlineinherited

Returns the radius of a sphere representing a vertex.

◆ get_vertex_resolution()

template<class Dummy>
unsigned get_vertex_resolution ( void ) const
inlineinherited

Returns the number of facets around a sphere representing a vertex.

◆ is_cloning()

template<class Dummy>
bool is_cloning ( void ) const
inlineinherited

Checks that the next object will copy the last molecule if any.

◆ is_transparent()

template<class Dummy>
bool is_transparent ( void ) const
inlineinherited

Checks that the next object will be viewn using transparent material.

◆ is_visible()

template<class Dummy>
bool is_visible ( void ) const
inlineinherited

Checks that the next object will be visible.

◆ make_add_molecule()

template<class Dummy>
void make_add_molecule ( const std::string & filename)
inlineinherited

Loads a molecule to PyMOL.

◆ make_add_molecules_with_index()

template<class Dummy>
void make_add_molecules_with_index ( const std::string & prefix,
const std::string & extension,
unsigned index )
inlineinherited

Loads a list of molecules to PyMOL with indexed filenames.

◆ make_new_molecule()

template<class Dummy>
void make_new_molecule ( const std::string & mol_name)
inlineinherited

Creates a new molecule in PyMOL.

◆ set_circle_resolution()

template<class Dummy>
void set_circle_resolution ( unsigned resolution)
inlineinherited

Sets the number of segments around a circular arc.

◆ set_cloning()

template<class Dummy>
void set_cloning ( bool is_cloning)
inlineinherited

Sets the cloning tag.

◆ set_color() [1/2]

template<class Dummy>
void set_color ( const std::string & color)
inlineinherited

Sets the color of the current representation of the current molecule in PyMOL.

◆ set_color() [2/2]

template<class Dummy>
void set_color ( std::size_t color_id)
inlineinherited

Sets the color of the current representation of the current molecule in PyMOL.

◆ set_edge_radius()

template<class Dummy>
void set_edge_radius ( double radius)
inlineinherited

Sets the radius of a cylinder representing an edge.

◆ set_graphics_color()

template<class Dummy>
void set_graphics_color ( const std::string & color)
inlineinherited

Sets the color of geometric object for the current molecule in PyMOL.

◆ set_graphics_transparent()

template<class Dummy>
void set_graphics_transparent ( bool is_transparent)
inlineinherited

Sets the type of material to use (opaque or transparent) for the current molecule in PyMOL.

◆ set_infinite_factor()

template<class Dummy>
void set_infinite_factor ( double factor)
inlineinherited

Sets the multiplicative factor used for representing infinite objects (e.g a line).

◆ set_representation()

template<class Dummy>
void set_representation ( const std::string & rep)
inlineinherited

Sets the mode of the current representation of the current molecule in PyMOL.

◆ set_top_molecule()

template<class Dummy>
void set_top_molecule ( const std::string & mol_name)
inlineinherited

Sets the molecule with the input name as the current molecule in PyMOL.

◆ set_transparent()

template<class Dummy>
void set_transparent ( bool is_transparent)
inlineinherited

Sets the transparent tag.

◆ set_vertex_radius()

template<class Dummy>
void set_vertex_radius ( double radius)
inlineinherited

Sets the radius of a sphere representing a vertex.

◆ set_vertex_resolution()

template<class Dummy>
void set_vertex_resolution ( unsigned resolution)
inlineinherited

Sets the number of facets around a sphere representing a vertex.

◆ set_visible()

template<class Dummy>
void set_visible ( bool is_visible)
inlineinherited

Sets the visible tag.