Public Member Functions | Private Attributes
bvgl_triangle_3d< Type > Class Template Reference

#include <bvgl_triangle_3d.h>

List of all members.

Public Member Functions

 bvgl_triangle_3d ()
 Default constructor (creates empty triangle).
 bvgl_triangle_3d (vgl_point_3d< Type > const &corner1, vgl_point_3d< Type > const &corner2, vgl_point_3d< Type > const &corner3)
 Construct using two corner points.
vgl_point_3d< Type > operator[] (int index)
 access points.
vgl_point_3d< Type > const & operator[] (int index) const
 access points.
vcl_ostream & print (vcl_ostream &) const
 Write "<vgl_box_3d x0,y0,z0 to x1,y1,z1>" to stream.
vcl_ostream & write (vcl_ostream &) const
 Write "x0 y0 z0 x1 y1 z1(endl)" to stream.
vcl_istream & read (vcl_istream &)
 Read x0,y0,z0,x1,y1,z1 from stream.

Private Attributes

vgl_point_3d< Type > points_ [3]

Detailed Description

template<class Type>
class bvgl_triangle_3d< Type >

Definition at line 15 of file bvgl_triangle_3d.h.


Constructor & Destructor Documentation

template<class Type >
bvgl_triangle_3d< Type >::bvgl_triangle_3d ( )

Default constructor (creates empty triangle).

Definition at line 17 of file bvgl_triangle_3d.txx.

template<class Type >
bvgl_triangle_3d< Type >::bvgl_triangle_3d ( vgl_point_3d< Type > const &  corner1,
vgl_point_3d< Type > const &  corner2,
vgl_point_3d< Type > const &  corner3 
)

Construct using two corner points.

Definition at line 25 of file bvgl_triangle_3d.txx.


Member Function Documentation

template<class Type>
vgl_point_3d<Type> bvgl_triangle_3d< Type >::operator[] ( int  index) [inline]

access points.

Definition at line 28 of file bvgl_triangle_3d.h.

template<class Type>
vgl_point_3d<Type> const& bvgl_triangle_3d< Type >::operator[] ( int  index) const [inline]

access points.

Definition at line 30 of file bvgl_triangle_3d.h.

template<class Type >
vcl_ostream & bvgl_triangle_3d< Type >::print ( vcl_ostream &  s) const

Write "<vgl_box_3d x0,y0,z0 to x1,y1,z1>" to stream.

Definition at line 35 of file bvgl_triangle_3d.txx.

template<class Type >
vcl_istream & bvgl_triangle_3d< Type >::read ( vcl_istream &  is)

Read x0,y0,z0,x1,y1,z1 from stream.

Definition at line 49 of file bvgl_triangle_3d.txx.

template<class Type >
vcl_ostream & bvgl_triangle_3d< Type >::write ( vcl_ostream &  s) const

Write "x0 y0 z0 x1 y1 z1(endl)" to stream.

Definition at line 43 of file bvgl_triangle_3d.txx.


Member Data Documentation

template<class Type>
vgl_point_3d<Type> bvgl_triangle_3d< Type >::points_[3] [private]

Definition at line 44 of file bvgl_triangle_3d.h.


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