cpe::surface_param_drawable Class Reference

Wrapper class to help drawing a surface_param class. More...

Inheritance diagram for cpe::surface_param_drawable:
Inheritance graph
[legend]
Collaboration diagram for cpe::surface_param_drawable:
Collaboration graph
[legend]

List of all members.

Public Member Functions

 surface_param_drawable ()
 empty constructor
 surface_param_drawable (const unsigned int &Nu, const unsigned int &Nv)
 direct constructor with size
void update_connectivity ()
 update connectivity of needed
void update_normal ()
void set_normal (const unsigned int ku, const unsigned int kv, const cpe::v3 n)
 set a specific normal
const unsigned int * pointer_draw_connectivity () const
 get pointer on connectivity
const double * pointer_draw_normal () const
 get pointer on normal
const double * pointer_draw_vertices () const
 get pointer on vertices

Private Member Functions

void build_connectivity ()
 force to build connectivity

Private Attributes

std::vector< quad_indexinternal_connectivity
 internal connectivity
std::vector< v3internal_normal
 internal normal
unsigned int internal_old_size_u
 storage for size u stored since the previous update
unsigned int internal_old_size_v
 storage for size u stored since the previous update

Detailed Description

Wrapper class to help drawing a surface_param class.


Constructor & Destructor Documentation

cpe::surface_param_drawable::surface_param_drawable (  ) 

empty constructor

cpe::surface_param_drawable::surface_param_drawable ( const unsigned int &  Nu,
const unsigned int &  Nv 
)

direct constructor with size

References build_connectivity().

Here is the call graph for this function:


Member Function Documentation

void cpe::surface_param_drawable::build_connectivity (  )  [private]

force to build connectivity

References internal_connectivity, internal_old_size_u, internal_old_size_v, cpe::surface_param::size_u(), and cpe::surface_param::size_v().

Referenced by surface_param_drawable(), and update_connectivity().

Here is the call graph for this function:

const unsigned int * cpe::surface_param_drawable::pointer_draw_connectivity (  )  const

get pointer on connectivity

References internal_connectivity.

Referenced by cpe::opengl_drawer::draw().

const double * cpe::surface_param_drawable::pointer_draw_normal (  )  const

get pointer on normal

References internal_normal.

Referenced by cpe::opengl_drawer::draw().

const double * cpe::surface_param_drawable::pointer_draw_vertices (  )  const

get pointer on vertices

References cpe::surface_param::pointer().

Referenced by cpe::opengl_drawer::draw().

Here is the call graph for this function:

void cpe::surface_param_drawable::set_normal ( const unsigned int  ku,
const unsigned int  kv,
const cpe::v3  n 
)

set a specific normal

References cpe::surface_param::assert_size(), internal_normal, cpe::surface_param::size_u(), and cpe::surface_param::size_v().

Referenced by scene::load_model().

Here is the call graph for this function:

void cpe::surface_param_drawable::update_connectivity (  ) 

update connectivity of needed

References build_connectivity(), internal_old_size_u, internal_old_size_v, cpe::surface_param::size_u(), and cpe::surface_param::size_v().

Referenced by scene::load_model().

Here is the call graph for this function:

void cpe::surface_param_drawable::update_normal (  ) 

update normal

References cpe::surface_param::evaluate_normal(), internal_normal, cpe::surface_param::size_u(), and cpe::surface_param::size_v().

Here is the call graph for this function:


Member Data Documentation

internal connectivity

Referenced by build_connectivity(), and pointer_draw_connectivity().

internal normal

Referenced by pointer_draw_normal(), set_normal(), and update_normal().

storage for size u stored since the previous update

Referenced by build_connectivity(), and update_connectivity().

storage for size u stored since the previous update

Referenced by build_connectivity(), and update_connectivity().


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