Rosetta
Public Types | Public Member Functions | Private Member Functions | Private Attributes | List of all members
core::grid::CartGrid< T > Class Template Reference

#include <CartGrid.hh>

Inheritance diagram for core::grid::CartGrid< T >:
Inheritance graph
[legend]

Public Types

typedef numeric::xyzVector< int > GridPt
 This needs to be an int, as it can hold negative values. More...
 

Public Member Functions

 CartGrid ()
 
 CartGrid (CartGrid< T > const &other)
 
CartGridoperator= (CartGrid< T > const &other)
 
 ~CartGrid () override=default
 
void setBase (core::Real x, core::Real y, core::Real z)
 
void setDimensions (core::Size nX, core::Size nY, core::Size nZ, core::Real lX, core::Real lY, core::Real lZ)
 
void set_name (std::string const &name)
 
std::string get_name () const
 
core::Size longestSide () const
 
bool equalDimensions (CartGrid< T > const &rhs) const
 
bool equalBase (CartGrid< T > const &rhs) const
 
bool is_in_grid (core::Real x, core::Real y, core::Real z) const
 
bool setupZones ()
 
void translate (core::Real x, core::Real y, core::Real z)
 
void setValue (core::Size ix, core::Size iy, core::Size iz, T value)
 
void setValue (core::Real fx, core::Real fy, core::Real fz, T value)
 
getValue (core::Size ix, core::Size iy, core::Size iz) const
 
getValue (core::Real fx, core::Real fy, core::Real fz) const
 
void zero ()
 
void setFullOccupied (T value)
 
void clone (CartGrid< T > &copy) const
 
void reset_boundaries ()
 
void read (std::string const &filename)
 
void write (std::string const &filename) const
 
bool isFullyOccupied () const
 
bool isEmpty () const
 
utility::json_spirit::Value serialize () const
 
void deserialize (utility::json_spirit::mObject grid_data)
 
void sum (utility::vector0< utility::pointer::shared_ptr< CartGrid< T > > > const &list_grids)
 
void expand (int expansion)
 
core::Vector getBase () const
 
core::Vector getTop () const
 
void getNumberOfPoints (core::Size &x, core::Size &y, core::Size &z) const
 
core::Vector getNumberOfPoints () const
 
GridPt gridpt (Vector const &coords) const
 
Vector coords (GridPt const &gridpt) const
 
getValue (GridPt const &gridpt) const
 
getValue (Vector const &coords) const
 
getMinValue () const
 
getMaxValue () const
 
void setValue (GridPt const &gridpt, T value)
 
void setValue (Vector const &coords, T value)
 
void write_to_BRIX (std::string const &filename) const
 
void write_to_BRIX (std::ostream &out) const
 

Private Member Functions

void setTop ()
 
bool valid_index (core::Size index) const
 
void setValue (int ix, int iy, int iz, T value)
 
void setValue (core::Size index, T value)
 
getValue (int ix, int iy, int iz) const
 
getValue (core::Size index) const
 
core::Size get_index (core::Size ix, core::Size iy, core::Size iz) const
 
core::Size get_index (core::Real fx, core::Real fy, core::Real fz) const
 

Private Attributes

core::Size nX_
 
core::Size nY_
 
core::Size nZ_
 
core::Real lX_
 
core::Real lY_
 
core::Real lZ_
 
core::Real bX_
 
core::Real bY_
 
core::Real bZ_
 
core::Real tX_
 
core::Real tY_
 
core::Real tZ_
 
std::string name_
 
core::Size npoints_
 
bool fullyOccupied_
 
utility::vector0< T > zones_
 

Member Typedef Documentation

◆ GridPt

template<typename T >
typedef numeric::xyzVector< int > core::grid::CartGrid< T >::GridPt

This needs to be an int, as it can hold negative values.

Constructor & Destructor Documentation

◆ CartGrid() [1/2]

template<typename T >
core::grid::CartGrid< T >::CartGrid ( )
inline

◆ CartGrid() [2/2]

template<typename T >
core::grid::CartGrid< T >::CartGrid ( CartGrid< T > const &  other)
inline

◆ ~CartGrid()

template<typename T >
core::grid::CartGrid< T >::~CartGrid ( )
overridedefault

Member Function Documentation

◆ clone()

template<typename T >
void core::grid::CartGrid< T >::clone ( CartGrid< T > &  copy) const
inline

◆ coords()

template<typename T >
Vector core::grid::CartGrid< T >::coords ( GridPt const &  gridpt) const
inline

◆ deserialize()

template<typename T >
void core::grid::CartGrid< T >::deserialize ( utility::json_spirit::mObject  grid_data)
inline

◆ equalBase()

template<typename T >
bool core::grid::CartGrid< T >::equalBase ( CartGrid< T > const &  rhs) const
inline

◆ equalDimensions()

template<typename T >
bool core::grid::CartGrid< T >::equalDimensions ( CartGrid< T > const &  rhs) const
inline

◆ expand()

template<typename T >
void core::grid::CartGrid< T >::expand ( int  expansion)
inline

◆ get_index() [1/2]

template<typename T >
core::Size core::grid::CartGrid< T >::get_index ( core::Real  fx,
core::Real  fy,
core::Real  fz 
) const
inlineprivate

◆ get_index() [2/2]

template<typename T >
core::Size core::grid::CartGrid< T >::get_index ( core::Size  ix,
core::Size  iy,
core::Size  iz 
) const
inlineprivate

◆ get_name()

template<typename T >
std::string core::grid::CartGrid< T >::get_name ( ) const
inline

◆ getBase()

template<typename T >
core::Vector core::grid::CartGrid< T >::getBase ( ) const
inline

◆ getMaxValue()

template<typename T >
T core::grid::CartGrid< T >::getMaxValue ( ) const
inline

◆ getMinValue()

template<typename T >
T core::grid::CartGrid< T >::getMinValue ( ) const
inline

◆ getNumberOfPoints() [1/2]

template<typename T >
core::Vector core::grid::CartGrid< T >::getNumberOfPoints ( ) const
inline

◆ getNumberOfPoints() [2/2]

template<typename T >
void core::grid::CartGrid< T >::getNumberOfPoints ( core::Size x,
core::Size y,
core::Size z 
) const
inline

◆ getTop()

template<typename T >
core::Vector core::grid::CartGrid< T >::getTop ( ) const
inline

◆ getValue() [1/6]

template<typename T >
T core::grid::CartGrid< T >::getValue ( core::Real  fx,
core::Real  fy,
core::Real  fz 
) const
inline

◆ getValue() [2/6]

template<typename T >
T core::grid::CartGrid< T >::getValue ( core::Size  index) const
inlineprivate

◆ getValue() [3/6]

template<typename T >
T core::grid::CartGrid< T >::getValue ( core::Size  ix,
core::Size  iy,
core::Size  iz 
) const
inline

◆ getValue() [4/6]

template<typename T >
T core::grid::CartGrid< T >::getValue ( GridPt const &  gridpt) const
inline

◆ getValue() [5/6]

template<typename T >
T core::grid::CartGrid< T >::getValue ( int  ix,
int  iy,
int  iz 
) const
inlineprivate

◆ getValue() [6/6]

template<typename T >
T core::grid::CartGrid< T >::getValue ( Vector const &  coords) const
inline

◆ gridpt()

template<typename T >
GridPt core::grid::CartGrid< T >::gridpt ( Vector const &  coords) const
inline

◆ is_in_grid()

template<typename T >
bool core::grid::CartGrid< T >::is_in_grid ( core::Real  x,
core::Real  y,
core::Real  z 
) const
inline

◆ isEmpty()

template<typename T >
bool core::grid::CartGrid< T >::isEmpty ( ) const
inline

◆ isFullyOccupied()

template<typename T >
bool core::grid::CartGrid< T >::isFullyOccupied ( ) const
inline

◆ longestSide()

template<typename T >
core::Size core::grid::CartGrid< T >::longestSide ( ) const
inline

◆ operator=()

template<typename T >
CartGrid& core::grid::CartGrid< T >::operator= ( CartGrid< T > const &  other)
inline

◆ read()

template<typename T >
void core::grid::CartGrid< T >::read ( std::string const &  filename)
inline

◆ reset_boundaries()

template<typename T >
void core::grid::CartGrid< T >::reset_boundaries ( )
inline

◆ serialize()

template<typename T >
utility::json_spirit::Value core::grid::CartGrid< T >::serialize ( ) const
inline

◆ set_name()

template<typename T >
void core::grid::CartGrid< T >::set_name ( std::string const &  name)
inline

◆ setBase()

template<typename T >
void core::grid::CartGrid< T >::setBase ( core::Real  x,
core::Real  y,
core::Real  z 
)
inline

◆ setDimensions()

template<typename T >
void core::grid::CartGrid< T >::setDimensions ( core::Size  nX,
core::Size  nY,
core::Size  nZ,
core::Real  lX,
core::Real  lY,
core::Real  lZ 
)
inline

◆ setFullOccupied()

template<typename T >
void core::grid::CartGrid< T >::setFullOccupied ( value)
inline

◆ setTop()

template<typename T >
void core::grid::CartGrid< T >::setTop ( )
inlineprivate

◆ setupZones()

template<typename T >
bool core::grid::CartGrid< T >::setupZones ( )
inline

◆ setValue() [1/6]

template<typename T >
void core::grid::CartGrid< T >::setValue ( core::Real  fx,
core::Real  fy,
core::Real  fz,
value 
)
inline

◆ setValue() [2/6]

template<typename T >
void core::grid::CartGrid< T >::setValue ( core::Size  index,
value 
)
inlineprivate

◆ setValue() [3/6]

template<typename T >
void core::grid::CartGrid< T >::setValue ( core::Size  ix,
core::Size  iy,
core::Size  iz,
value 
)
inline

◆ setValue() [4/6]

template<typename T >
void core::grid::CartGrid< T >::setValue ( GridPt const &  gridpt,
value 
)
inline

◆ setValue() [5/6]

template<typename T >
void core::grid::CartGrid< T >::setValue ( int  ix,
int  iy,
int  iz,
value 
)
inlineprivate

◆ setValue() [6/6]

template<typename T >
void core::grid::CartGrid< T >::setValue ( Vector const &  coords,
value 
)
inline

◆ sum()

template<typename T >
void core::grid::CartGrid< T >::sum ( utility::vector0< utility::pointer::shared_ptr< CartGrid< T > > > const &  list_grids)
inline

◆ translate()

template<typename T >
void core::grid::CartGrid< T >::translate ( core::Real  x,
core::Real  y,
core::Real  z 
)
inline

◆ valid_index()

template<typename T >
bool core::grid::CartGrid< T >::valid_index ( core::Size  index) const
inlineprivate

◆ write()

template<typename T >
void core::grid::CartGrid< T >::write ( std::string const &  filename) const
inline

◆ write_to_BRIX() [1/2]

template<typename T >
void core::grid::CartGrid< T >::write_to_BRIX ( std::ostream &  out) const
inline

◆ write_to_BRIX() [2/2]

template<typename T >
void core::grid::CartGrid< T >::write_to_BRIX ( std::string const &  filename) const
inline

This format was choosen because it's space-efficient for small integer values (such as are typically stored in grids) and PyMOL can read it. Typical extension is .brix or .omap

References protocols::abinitio::filename(), and core::conformation::membrane::out.

Referenced by protocols::qsar::scoring_grid::SingleGrid::dump_BRIX().

◆ zero()

template<typename T >
void core::grid::CartGrid< T >::zero ( )
inline

Member Data Documentation

◆ bX_

template<typename T >
core::Real core::grid::CartGrid< T >::bX_
private

◆ bY_

template<typename T >
core::Real core::grid::CartGrid< T >::bY_
private

◆ bZ_

template<typename T >
core::Real core::grid::CartGrid< T >::bZ_
private

◆ fullyOccupied_

template<typename T >
bool core::grid::CartGrid< T >::fullyOccupied_
private

◆ lX_

template<typename T >
core::Real core::grid::CartGrid< T >::lX_
private

◆ lY_

template<typename T >
core::Real core::grid::CartGrid< T >::lY_
private

◆ lZ_

template<typename T >
core::Real core::grid::CartGrid< T >::lZ_
private

◆ name_

template<typename T >
std::string core::grid::CartGrid< T >::name_
private

◆ npoints_

template<typename T >
core::Size core::grid::CartGrid< T >::npoints_
private

◆ nX_

template<typename T >
core::Size core::grid::CartGrid< T >::nX_
private

◆ nY_

template<typename T >
core::Size core::grid::CartGrid< T >::nY_
private

◆ nZ_

template<typename T >
core::Size core::grid::CartGrid< T >::nZ_
private

◆ tX_

template<typename T >
core::Real core::grid::CartGrid< T >::tX_
private

◆ tY_

template<typename T >
core::Real core::grid::CartGrid< T >::tY_
private

◆ tZ_

template<typename T >
core::Real core::grid::CartGrid< T >::tZ_
private

◆ zones_

template<typename T >
utility::vector0< T > core::grid::CartGrid< T >::zones_
private

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