HyperspaceExplorer 0.7.1
Public Member Functions | Protected Member Functions | Protected Attributes | Static Protected Attributes

A four-dimensional pyramid, also known as hypersimplex. More...

#include <ObjectImplementations.h>

Inheritance diagram for Pyramid:
Inheritance graph
[legend]
Collaboration diagram for Pyramid:
Collaboration graph
[legend]

List of all members.

Public Member Functions

 Pyramid (double _a, const VecMath::Vector< 4 > &_Center=VecMath::Vector< 4 >(0., 0., 0., 0.))
 Pyramid (hypersimplex) constructor.
virtual std::string getFunctionName () const
virtual void SetParameters (const ParameterMap &parms)
 Set parameters to the Displayable.

Protected Member Functions

virtual void Initialize ()
 Actually creates the Pyramid.
void DeclareTriangle (unsigned, unsigned, unsigned, unsigned)
 Declare a triangle in the Surface array.

Protected Attributes

VecMath::Vector< 4 > center
 location
double a
 size

Static Protected Attributes

static constexpr unsigned num_vertices = 5
static constexpr unsigned num_faces = 10

Detailed Description

A four-dimensional pyramid, also known as hypersimplex.


Constructor & Destructor Documentation

Pyramid::Pyramid ( double  _a,
const VecMath::Vector< 4 > &  _center = VecMath::Vector<4> (0., 0., 0., 0.) 
)

Pyramid (hypersimplex) constructor.

Parameters:
_centercenter
_aside_length/2

References Displayable::declareParameter(), and Initialize().

Here is the call graph for this function:


Member Function Documentation

void Pyramid::DeclareTriangle ( unsigned  i,
unsigned  a,
unsigned  b,
unsigned  c 
) [protected]

Declare a triangle in the Surface array.

Parameters:
iindex of the square
aindex of vertex 1
bindex of vertex 2
cindex of vertex 3

References a.

Referenced by Initialize().

Here is the caller graph for this function:

virtual std::string Pyramid::getFunctionName ( ) const [inline, virtual]
Returns:
The name of the Displayable in cleartext

Implements Displayable.

Reimplemented in Gasket.

void Pyramid::Initialize ( void  ) [protected, virtual]

Actually creates the Pyramid.

See also:
Hypercube::Initialize()

Reimplemented from Object.

Reimplemented in Gasket.

References a, center, DeclareTriangle(), Object::setX(), size(), sqrt(), and VertexHolder< 4, 1, double >::X().

Referenced by Pyramid().

Here is the call graph for this function:

Here is the caller graph for this function:

virtual void Pyramid::SetParameters ( const ParameterMap ) [inline, virtual]

Set parameters to the Displayable.

Todo:
This function is only there to provide an interface, and it's not abstract so that Displayable s which don't have Parameters don't need to reimplement an unneeded method. But the present implementation does not make sense.

Reimplemented from Displayable.

Reimplemented in Gasket.

References a, std::map< _Key, _Tp, _Compare, _Alloc >::begin(), std::map< _Key, _Tp, _Compare, _Alloc >::end(), and Displayable::setParameter().

Here is the call graph for this function:


The documentation for this class was generated from the following files:
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Friends

Generated on Mon Apr 9 2012 20:25:18 for HyperspaceExplorer 0.7.1 by doxygen 1.7.4  -  Hosted bySourceForge.net Logo