IMP logo
IMP Reference Guide  2.20.2
The Integrative Modeling Platform
algebra/io.h File Reference

Classes to write entities in algebra to files. More...

#include "Vector3D.h"
#include "Sphere3D.h"
#include <IMP/file.h>
+ Include dependency graph for algebra/io.h:
+ This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Namespaces

 IMP
 Base functionality and abstract base classes for representation, scoring and sampling.
 
 IMP::algebra
 General purpose algebraic and geometric methods that are expected to be used by a wide variety of IMP modules.
 

Simple geometric IO

These functions write geometry to text files, one line per geometric primitive. Each line has the form “x y z” for points or “x y z r” for spheres. We can easily add general dimension support if requested.. Lines beginning with "#" are treated as comments.

void IMP::algebra::write_pts (const Vector3Ds &vs, TextOutput out)
 Write a set of 3D vectors to a file. More...
 
Vector3Ds IMP::algebra::read_pts (TextInput input)
 Read a set of 3D vectors from a file. More...
 
void IMP::algebra::write_spheres (const Sphere3Ds &vs, TextOutput out)
 Write a set of 3D spheres to a file. More...
 
Sphere3Ds IMP::algebra::read_spheres (TextInput input)
 Read a set of 3D spheres from a file. More...
 

Detailed Description

Classes to write entities in algebra to files.

Copyright 2007-2022 IMP Inventors. All rights reserved.

Definition in file algebra/io.h.