#include <geometry_plane_box.h>
List of all members.
Detailed Description
template<typename math_types>
class OpenTissue::geometry::PlaneBox< math_types >
A Plane Box class. This class creates a plane-box. A plane-box is an interactive tool for manipulating an axis-parallel plane.
Such an interactive plane can be quite usefull in visualization of various geometric structures. For instace a tetrahedra mesh can benefit from it as shown in the example below.
Example usage
typedef OpenTissue::math::BasicMathTypes<double,size_t> math_types; typedef OpenTissue::PlaneBox<math_types> plane_box_type;
plane_box_type m_plane_box;
void do_display() { OpenTissue::gl::ColorPicker(0.8,0.1,0.8); OpenTissue::gl::DrawPlaneBox( m_plane_box ); OpenTissue::gl::ColorPicker(0.1,0.8,0.8); OpenTissue::gl::DrawT4MeshCutThrough(my_t4mesh,m_plane_box.plane(),0.95,false); }
void do_action(unsigned char choice) { switch ( choice ) { case 'i': // initialize { vector3_type min_coord; vector3_type max_coord; .... m_plane_box.init( min_coord, max_coord); } break; case '': // toggle plane { static int axis = 0; axis = (axis+1)3; if(axis==0) m_plane_box.set_x_axis(); if(axis==1) m_plane_box.set_y_axis(); if(axis==2) m_plane_box.set_z_axis(); } break; case '+': { m_plane_box.increment(); } break; case '-': { m_plane_box.decrement(); } break; default: std::cout << "You pressed " << choice << std::endl; break; }; }
Member Typedef Documentation
template<typename math_types >
template<typename math_types >
template<typename math_types >
template<typename math_types >
template<typename math_types >
Constructor & Destructor Documentation
template<typename math_types >
Member Function Documentation
template<typename math_types >
template<typename math_types >
template<typename math_types >
template<typename math_types >
template<typename math_types >
template<typename math_types >
template<typename math_types >
template<typename math_types >
template<typename math_types >
template<typename math_types >
template<typename math_types >
template<typename math_types >
template<typename math_types >
template<typename math_types >
Member Data Documentation
template<typename math_types >
Indicator of which axis the plane is orthogonal to.
template<typename math_types >
template<typename math_types >
The current tick value along the m_axis direction that the plane should be placed at.
template<typename math_types >
The maximum ticks that a side along the box should be divided into (i.e. the number of plane positions).
template<typename math_types >
Possible normal directions, current direction is chosen by value of m_axis.
template<typename math_types >
Base points of rectangle representing plane.
template<typename math_types >
The documentation for this class was generated from the following file:
- /home/hauberg/Dokumenter/Capture/humim-tracker-0.1/src/OpenTissue/OpenTissue/core/geometry/geometry_plane_box.h