occ
Loading...
Searching...
No Matches
occ::io::Cube Class Reference

#include <cube.h>

Public Types

using AtomList = std::vector< core::Atom >
 

Public Member Functions

 Cube ()
 
template<typename F >
void fill_data_from_function (F &func)
 
void center_molecule ()
 
void save (const std::string &)
 
void save (std::ostream &)
 
const float * data () const
 
float * data ()
 
const geometry::VolumeGridgrid () const
 
geometry::VolumeGridgrid ()
 

Static Public Member Functions

static Cube load (const std::string &filename)
 
static Cube load (std::istream &input)
 

Public Attributes

std::string name {"cube file from OCC"}
 
std::string description {"cube file from OCC"}
 
Vec3 origin {0, 0, 0}
 
Mat3 basis
 
IVec3 steps {11, 11, 11}
 
AtomList atoms
 
Vec charges
 

Member Typedef Documentation

◆ AtomList

using occ::io::Cube::AtomList = std::vector<core::Atom>

Constructor & Destructor Documentation

◆ Cube()

occ::io::Cube::Cube ( )

Member Function Documentation

◆ center_molecule()

void occ::io::Cube::center_molecule ( )

◆ data() [1/2]

float * occ::io::Cube::data ( )
inline

◆ data() [2/2]

const float * occ::io::Cube::data ( ) const
inline

◆ fill_data_from_function()

template<typename F >
void occ::io::Cube::fill_data_from_function ( F &  func)
inline

◆ grid() [1/2]

geometry::VolumeGrid & occ::io::Cube::grid ( )
inline

◆ grid() [2/2]

const geometry::VolumeGrid & occ::io::Cube::grid ( ) const
inline

◆ load() [1/2]

static Cube occ::io::Cube::load ( const std::string &  filename)
static

◆ load() [2/2]

static Cube occ::io::Cube::load ( std::istream &  input)
static

◆ save() [1/2]

void occ::io::Cube::save ( const std::string &  )

◆ save() [2/2]

void occ::io::Cube::save ( std::ostream &  )

Member Data Documentation

◆ atoms

AtomList occ::io::Cube::atoms

◆ basis

Mat3 occ::io::Cube::basis

◆ charges

Vec occ::io::Cube::charges

◆ description

std::string occ::io::Cube::description {"cube file from OCC"}

◆ name

std::string occ::io::Cube::name {"cube file from OCC"}

◆ origin

Vec3 occ::io::Cube::origin {0, 0, 0}

◆ steps

IVec3 occ::io::Cube::steps {11, 11, 11}

The documentation for this class was generated from the following file: