g4tools  5.4.0
Public Member Functions | List of all members
tools::box3f Class Reference
Inheritance diagram for tools::box3f:
Inheritance graph
[legend]
Collaboration diagram for tools::box3f:
Collaboration graph
[legend]

Public Member Functions

 box3f ()
 
virtual ~box3f ()
 
 box3f (const box3f &a_from)
 
box3foperator= (const box3f &a_from)
 
void make_empty ()
 
bool get_cube_size (float &a_dx, float &a_dy, float &a_dz) const
 
- Public Member Functions inherited from tools::box3< vec3f >
 box3 (const box3 &a_from)
 
virtual ~box3 ()
 
box3operator= (const box3 &a_from)
 
bool center (vec3f &a_center) const
 
bool set_bounds (const vec3f &a_mn, const vec3f &a_mx)
 
bool set_bounds (T_t a_mn_x, T_t a_mn_y, T_t a_mn_z, T_t a_mx_x, T_t a_mx_y, T_t a_mx_z)
 
bool get_size (T_t &a_dx, T_t &a_dy, T_t &a_dz) const
 
bool is_empty () const
 
const vec3fmn () const
 
const vec3fmx () const
 
bool back (vec3f &a_min, vec3f &a_min_y, vec3f &a_min_xy, vec3f &a_min_x) const
 
bool front (vec3f &a_max, vec3f &a_max_x, vec3f &a_max_xy, vec3f &a_max_y) const
 
void extend_by (const vec3f &a_point)
 
void extend_by (T_t a_x, T_t a_y, T_t a_z)
 
bool get_cube_size (T_t &a_dx, T_t &a_dy, T_t &a_dz, T_t(*a_sqrt)(T_t)) const
 
void dump (std::ostream &a_out)
 

Additional Inherited Members

- Protected Types inherited from tools::box3< vec3f >
typedef VEC3::elem_t T_t
 
- Protected Member Functions inherited from tools::box3< vec3f >
 box3 ()
 
- Static Protected Member Functions inherited from tools::box3< vec3f >
static T_t zero ()
 
- Protected Attributes inherited from tools::box3< vec3f >
vec3f m_min
 
vec3f m_max
 

Detailed Description

Definition at line 13 of file box3f.

Constructor & Destructor Documentation

◆ box3f() [1/2]

tools::box3f::box3f ( )
inline

Definition at line 17 of file box3f.

17 :parent(){make_empty();}

◆ ~box3f()

virtual tools::box3f::~box3f ( )
inlinevirtual

Definition at line 18 of file box3f.

18 {}

◆ box3f() [2/2]

tools::box3f::box3f ( const box3f a_from)
inline

Definition at line 20 of file box3f.

20 :parent(a_from){}

Member Function Documentation

◆ get_cube_size()

bool tools::box3f::get_cube_size ( float &  a_dx,
float &  a_dy,
float &  a_dz 
) const
inline

Definition at line 30 of file box3f.

30  {
31  return parent::get_cube_size(a_dx,a_dy,a_dz,::sqrtf);
32  }

◆ make_empty()

void tools::box3f::make_empty ( )
inline

Definition at line 26 of file box3f.

26  {
27  m_min.set_value( num_max(), num_max(), num_max());
28  m_max.set_value(-num_max(), -num_max(), -num_max());
29  }

◆ operator=()

box3f& tools::box3f::operator= ( const box3f a_from)
inline

Definition at line 21 of file box3f.

21  {
22  parent::operator=(a_from);
23  return *this;
24  }

The documentation for this class was generated from the following file:
tools::box3< vec3f >::get_cube_size
bool get_cube_size(T_t &a_dx, T_t &a_dy, T_t &a_dz, T_t(*a_sqrt)(T_t)) const
Definition: box3:124
tools::box3< vec3f >::operator=
box3 & operator=(const box3 &a_from)
Definition: box3:31
tools::vec3::set_value
void set_value(const T &a0, const T &a1, const T &a2)
Definition: vec3:92
tools::box3f::make_empty
void make_empty()
Definition: box3f:26
tools::box3< vec3f >::m_max
vec3f m_max
Definition: box3:164
tools::box3< vec3f >::m_min
vec3f m_min
Definition: box3:163