ShapeFunction Class Reference

#include <shapefn.h>

Inherits Function< double >.

List of all members.

Public Member Functions

 ShapeFunction (Shapeset *shapeset)
 Constructs a standard precalculated shapeset class.
 ShapeFunction ()
virtual ~ShapeFunction ()
 Destructor.
void free ()
 Frees all precalculated tables.
ESpaceType get_type ()
virtual void set_active_element (Element *e)
 Ensures subsequent calls to get_active_element() will be returning 'e'. Switches the class to the appropriate mode (triangle, quad).
void set_active_shape (int index)
 Activates a shape function given by its index. The values of the shape function can then be obtained by setting the required integration rule order by calling set_quad_order() and after that calling get_values(), get_dx_values(), etc.
int get_active_shape () const
Shapesetget_shapeset () const
void set_shapeset (Shapeset *ss)
void set_transform (ShapeFunction *shfn)
virtual void precalculate (const int np, const QuadPt3D *pt, int mask)
 precalculates the current function at the current integration points.

Protected Member Functions

void force_transform (uint64 sub_idx, Trf *ctm)
 index of active shape function

Protected Attributes

Shapesetshapeset
int index

Friends

class Solution
class RefMap

Constructor & Destructor Documentation

ShapeFunction::ShapeFunction ( Shapeset shapeset  ) 

Constructs a standard precalculated shapeset class.

Parameters:
shapeset [in] Pointer to the shapeset to be precalculated.
ShapeFunction::ShapeFunction (  ) 
ShapeFunction::~ShapeFunction (  )  [virtual]

Destructor.


Member Function Documentation

void ShapeFunction::force_transform ( uint64  sub_idx,
Trf ctm 
) [inline, protected]

index of active shape function

Forces a transform without using push_transform() etc. Used by the Solution class. For internal use only.

Reimplemented from Function< TYPE >.

void ShapeFunction::free (  )  [virtual]

Frees all precalculated tables.

Implements Function< TYPE >.

int ShapeFunction::get_active_shape (  )  const [inline]
Returns:
Index of the active shape (can be negative if the shape is constrained).
Shapeset* ShapeFunction::get_shapeset (  )  const [inline]
Returns:
Pointer to the shapeset which is being precalculated.
ESpaceType ShapeFunction::get_type (  )  [inline]
void ShapeFunction::precalculate ( const int  np,
const QuadPt3D pt,
int  mask 
) [virtual]

precalculates the current function at the current integration points.

Implements Function< TYPE >.

void ShapeFunction::set_active_element ( Element e  )  [virtual]

Ensures subsequent calls to get_active_element() will be returning 'e'. Switches the class to the appropriate mode (triangle, quad).

Reimplemented from Transformable.

void ShapeFunction::set_active_shape ( int  index  ) 

Activates a shape function given by its index. The values of the shape function can then be obtained by setting the required integration rule order by calling set_quad_order() and after that calling get_values(), get_dx_values(), etc.

Parameters:
index [in] Shape index.
void ShapeFunction::set_shapeset ( Shapeset ss  ) 
void ShapeFunction::set_transform ( ShapeFunction shfn  ) 

Friends And Related Function Documentation

friend class RefMap [friend]
friend class Solution [friend]

Member Data Documentation

int ShapeFunction::index [protected]

The documentation for this class was generated from the following files:
Generated on Fri Sep 3 09:22:20 2010 for Hermes3D Library: Real Version by  doxygen 1.6.3