KJB
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
Public Types | Public Member Functions | Static Public Member Functions | Friends | List of all members
kjb::psi::Weighted_box Struct Reference

#include <psi_weighted_box.h>

Inheritance diagram for kjb::psi::Weighted_box:
kjb::psi::Cuboid

Public Types

typedef Cuboid Base
 

Public Member Functions

 Weighted_box ()
 
 Weighted_box (const kjb::Vector &position, double rotation, const kjb::Vector &size, double mass)
 
double get_mass () const
 
void set_mass (double mass)
 
double get (size_t i) const
 
void set (size_t i, double value)
 
- Public Member Functions inherited from kjb::psi::Cuboid
 Cuboid ()
 
 Cuboid (const Vector &center, const Vector &size, const Quaternion &orientation)
 
const Vectorget_center () const
 
const Vectorget_size () const
 
const Quaternionget_orientation () const
 
void set_center (const Vector &center)
 
void set_size (const Vector &size)
 
void set_orientation (const Quaternion &orientation)
 

Static Public Member Functions

static size_t size ()
 
static Unit_type get_units (size_t i)
 

Friends

std::ostream & operator<< (std::ostream &ost, const Weighted_box &box)
 
std::istream & operator>> (std::istream &ist, Weighted_box &box)
 

Additional Inherited Members

- Protected Attributes inherited from kjb::psi::Cuboid
Vector center_
 
Vector size_
 
Quaternion orientation_
 

Detailed Description

Representation of a physical box, for simulation

Member Typedef Documentation

Constructor & Destructor Documentation

kjb::psi::Weighted_box::Weighted_box ( )
inline
kjb::psi::Weighted_box::Weighted_box ( const kjb::Vector position,
double  rotation,
const kjb::Vector size,
double  mass 
)
inline

Member Function Documentation

double kjb::psi::Weighted_box::get ( size_t  i) const
inline

getter method for sampler

Note
length and mass parameters are returned in log-space
double kjb::psi::Weighted_box::get_mass ( ) const
inline
static Unit_type kjb::psi::Weighted_box::get_units ( size_t  i)
inlinestatic
void kjb::psi::Weighted_box::set ( size_t  i,
double  value 
)
inline

setter interface for sampler

Note
length and mass inputs are assumed to be in log-space
void kjb::psi::Weighted_box::set_mass ( double  mass)
inline
static size_t kjb::psi::Weighted_box::size ( )
inlinestatic

Friends And Related Function Documentation

std::ostream& operator<< ( std::ostream &  ost,
const Weighted_box box 
)
friend
std::istream& operator>> ( std::istream &  ist,
Weighted_box box 
)
friend

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