HyperspaceExplorer 0.7.1
Classes | Public Member Functions | Protected Attributes
Hypersphere Class Reference

A hypersphere. More...

#include <RealFunctionImplementations.h>

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

List of all members.

Classes

class  DefiningFunction
 ParametricFunction that defines Hypersphere. More...

Public Member Functions

 Hypersphere (double _tmin, double _tmax, double _dt, double _umin, double _umax, double _du, double _vmin, double _vmax, double _dv, double _rad=1)
 Hypersphere c'tor given a definition set in $ R^3 $ (as parameter space) and a radius.
virtual void SetParameters (const ParameterMap &)
 Set parameters to the Displayable.
virtual std::string getFunctionName () const

Protected Attributes

virtual function_type normal
 Calculate normal to function at a given point in definition set.
double _radius
 Radius of the hypersphere.

Detailed Description

A hypersphere.

Defining function is

\begin{eqnarray*} { F_0 & = & Radius*\sin \psi*\sin \theta*\cos \phi \\ F_1 & = & Radius*\sin \psi*\sin \theta*\sin \phi \\ F_2 & = & Radius*\sin \psi*\cos \theta \\ F_3 & = & Radius*\cos \psi \end{eqnarray*}


Constructor & Destructor Documentation

Hypersphere::Hypersphere ( double  tmin,
double  tmax,
double  dt,
double  umin,
double  umax,
double  du,
double  vmin,
double  vmax,
double  dv,
double  rad = 1 
)

Hypersphere c'tor given a definition set in $ R^3 $ (as parameter space) and a radius.

Parameters:
tminminimal value in t
tmaxmaximal value in t
dtstepsize in t
uminminimal value in u
umaxmaximal value in u
dustepsize in u
vminminimal value in v
vmaxmaximal value in v
dvstepsize in v
radradius

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

Here is the call graph for this function:


Member Function Documentation

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

Reimplemented from RealFunction.

void Hypersphere::SetParameters ( const ParameterMap ) [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.

References _radius, 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:


Member Data Documentation

Vector< 4 > & Hypersphere::normal [protected]

Calculate normal to function at a given point in definition set.

Overridden because it's much easier to calculate in a Hypersphere than in a generic function

Parameters:
ttt value
uuu value
vvv value
Returns:
surface normal, normalized

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