cpe::surface_param Class Reference
+ Inheritance diagram for cpe::surface_param:
+ Collaboration diagram for cpe::surface_param:

Public Member Functions

 surface_param ()
 empty constructor More...
 
 surface_param (unsigned int Nu, unsigned int Nv)
 direct constructor More...
 
void resize (unsigned int Nu, unsigned int Nv)
 resize the grid More...
 
unsigned int size_u () const
 return the size in u direction More...
 
unsigned int size_v () const
 return the size in v direction More...
 
const vec3operator() (unsigned int ku, unsigned int kv) const
 Accessor to the value (ku,kv) More...
 
vec3operator() (unsigned int ku, unsigned int kv)
 Accessor to the value (ku,kv) More...
 
const vec3pointer () const
 export internal pointer More...
 
vec3pointer_unprotected ()
 export internal pointer unprotected, use with care More...
 

Protected Member Functions

const vec3get (unsigned int ku, unsigned int kv) const
 getter fast but unprotected for heritage More...
 
void assert_size (unsigned int ku, unsigned int kv) const
 ensure (ku,kv) is coherent with the size of the grid More...
 

Private Attributes

unsigned int internal_size_u
 internal size in u More...
 
unsigned int internal_size_v
 internal size in v More...
 
std::vector< vec3internal_data
 internal data More...
 

Constructor & Destructor Documentation

cpe::surface_param::surface_param ( )

empty constructor

cpe::surface_param::surface_param ( unsigned int  Nu,
unsigned int  Nv 
)

direct constructor

References internal_data.

Member Function Documentation

void cpe::surface_param::assert_size ( unsigned int  ku,
unsigned int  kv 
) const
protected

ensure (ku,kv) is coherent with the size of the grid

References internal_size_u, internal_size_v, and cpe::string_converter::to_string().

Referenced by operator()(), and cpe::surface_param_drawable::set_normal().

+ Here is the call graph for this function:

const vec3 & cpe::surface_param::get ( unsigned int  ku,
unsigned int  kv 
) const
protected

getter fast but unprotected for heritage

References internal_data, and internal_size_u.

const vec3 & cpe::surface_param::operator() ( unsigned int  ku,
unsigned int  kv 
) const

Accessor to the value (ku,kv)

References assert_size(), internal_data, and internal_size_u.

+ Here is the call graph for this function:

vec3 & cpe::surface_param::operator() ( unsigned int  ku,
unsigned int  kv 
)

Accessor to the value (ku,kv)

References assert_size(), internal_data, and internal_size_u.

+ Here is the call graph for this function:

const vec3 * cpe::surface_param::pointer ( ) const

export internal pointer

References internal_data.

Referenced by cpe::surface_param_drawable::pointer_draw_vertices().

vec3 * cpe::surface_param::pointer_unprotected ( )

export internal pointer unprotected, use with care

References internal_data.

void cpe::surface_param::resize ( unsigned int  Nu,
unsigned int  Nv 
)

resize the grid

References internal_data, internal_size_u, and internal_size_v.

unsigned int cpe::surface_param::size_u ( ) const
unsigned int cpe::surface_param::size_v ( ) const

Member Data Documentation

std::vector<vec3> cpe::surface_param::internal_data
private
unsigned int cpe::surface_param::internal_size_u
private

internal size in u

Referenced by assert_size(), get(), operator()(), resize(), and size_u().

unsigned int cpe::surface_param::internal_size_v
private

internal size in v

Referenced by assert_size(), resize(), and size_v().


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