struct Chem::Spatial::Grid::Info

Overview

Gather, check and annotate types registering a format

Defined in:

chem/register_format.cr
chem/spatial/grid.cr

Constructors

Instance Method Summary

Constructor Detail

def self.from_chgcar(io : IO) : self #

[View source]
def self.from_chgcar(path : Path | String) : self #

[View source]
def self.from_cube(io : IO) : self #

[View source]
def self.from_cube(path : Path | String) : self #

[View source]
def self.from_dx(io : IO) : self #

[View source]
def self.from_dx(path : Path | String) : self #

[View source]
def self.from_locpot(io : IO) : self #

[View source]
def self.from_locpot(path : Path | String) : self #

[View source]
def self.new(bounds : Parallelepiped, dim : Dimensions) #

[View source]
def self.read(input : IO | Path | String, format : Chem::Cube.class) : self #

[View source]
def self.read(input : IO | Path | String, format : Chem::DX.class) : self #

[View source]
def self.read(input : IO | Path | String, format : Chem::VASP::Chgcar.class) : self #

[View source]
def self.read(input : IO | Path | String, format : Chem::VASP::Locpot.class) : self #

[View source]
def self.read(input : IO | Path | String, format) : self #

FIXME Make it compile time error. Should raise if format is not registered or format is incompatible with open_type. Better create an override with the other formats, and leave this as a fallback.


[View source]
def self.read(path : IO | Path | String) : self #

[View source]

Instance Method Detail

def bounds : Parallelepiped #

def clone #

[View source]
def copy_with(bounds _bounds = @bounds, dim _dim = @dim) #

[View source]
def dim : Dimensions #