cpe::patch4 Class Reference

Collaboration diagram for cpe::patch4:
Collaboration graph
[legend]

List of all members.

Public Member Functions

 patch4 ()
 Empty constructor.
 patch4 (const v3 &x00, const v3 &x01, const v3 &x02, const v3 &x03, const v3 &x10, const v3 &x11, const v3 &x12, const v3 &x13, const v3 &x20, const v3 &x21, const v3 &x22, const v3 &x23, const v3 &x30, const v3 &x31, const v3 &x32, const v3 &x33)
 Direct constructor.
const v3operator() (const unsigned int &ku, const unsigned int &kv) const
 Get value.
v3operator() (const unsigned int &ku, const unsigned int &kv)
 Get value.
matrix4 get_x () const
 Get x coordinate in matrix4 form.
matrix4 get_y () const
 Get y coordinate in matrix4 form.
matrix4 get_z () const
 Get z coordinate in matrix4 form.

Private Member Functions

void assert_size (const unsigned int &ku, const unsigned int &kv) const

Private Attributes

v3 internal_data [16]
 internal data

Constructor & Destructor Documentation

cpe::patch4::patch4 (  ) 

Empty constructor.

References internal_data.

cpe::patch4::patch4 ( const v3 x00,
const v3 x01,
const v3 x02,
const v3 x03,
const v3 x10,
const v3 x11,
const v3 x12,
const v3 x13,
const v3 x20,
const v3 x21,
const v3 x22,
const v3 x23,
const v3 x30,
const v3 x31,
const v3 x32,
const v3 x33 
)

Direct constructor.

References internal_data.


Member Function Documentation

void cpe::patch4::assert_size ( const unsigned int &  ku,
const unsigned int &  kv 
) const [private]

Ensure (ku,kv) is within [[0,3]]

Referenced by operator()().

matrix4 cpe::patch4::get_x (  )  const

Get x coordinate in matrix4 form.

References internal_data.

Referenced by scene::compute_curve_spline(), and scene::fill_patch().

matrix4 cpe::patch4::get_y (  )  const

Get y coordinate in matrix4 form.

References internal_data.

Referenced by scene::compute_curve_spline(), and scene::fill_patch().

matrix4 cpe::patch4::get_z (  )  const

Get z coordinate in matrix4 form.

References internal_data.

Referenced by scene::compute_curve_spline(), and scene::fill_patch().

v3 & cpe::patch4::operator() ( const unsigned int &  ku,
const unsigned int &  kv 
)

Get value.

References assert_size(), and internal_data.

Here is the call graph for this function:

const v3 & cpe::patch4::operator() ( const unsigned int &  ku,
const unsigned int &  kv 
) const

Get value.

References assert_size(), and internal_data.

Here is the call graph for this function:


Member Data Documentation

internal data

Referenced by get_x(), get_y(), get_z(), operator()(), and patch4().


The documentation for this class was generated from the following files:
Generated on Mon Feb 27 18:30:17 2012 by  doxygen 1.6.3