#include <Box.h>
Inheritance diagram for Physsim::Box:

Public Member Functions | |
| Box () | |
| Constructs a unit cube centered at the origin. | |
| Box (Real xlen, Real ylen, Real zlen) | |
| Constructs a cube of the specified size. | |
| Box (Real xlen, Real ylen, Real zlen, const Matrix4 &T) | |
| Constructs a cube of the specified size transformed by the given matrix. | |
| Box (const Matrix4 &T) | |
| Constructs a unit cube transformed by the given matrix. | |
| virtual Vector3 | calc_com () const |
| void | set_size (Real xlen, Real ylen, Real zlen) |
| Sets the size of this box. | |
| virtual void | load_from_xml (XMLTreeConstPtr node, std::map< std::string, BasePtr > &id_map) |
| Implements Base::load_from_xml() for serialization. | |
| virtual void | save_to_xml (XMLTreePtr node, std::list< BaseConstPtr > &shared_objects) const |
| Implements Base::save_to_xml() for serialization. | |
| virtual Real | calc_mass () |
| Gets the mass for this box, computing it if necessary. | |
| virtual Matrix3 | calc_inertia () |
| Gets the inertia matrix for this box with current transform applied. | |
| virtual SoNode * | create_visualization () |
| Creates the visualization for this primitive. | |
| void Box::set_size | ( | Real | xlen, | |
| Real | ylen, | |||
| Real | zlen | |||
| ) |
Sets the size of this box.
1.5.1