Ejemplo n.º 1
0
//
// Formation& =(f)
// Last modified: 28Aug2006
//
// Copies the contents of the parameterized formation into this formation.
//
// Returns:     this formation
// Parameters:
//      f       in/out      the formation being copied
//
Formation& Formation::operator =(const Formation &f)
{
    setFunctions(f);
    setRadius(f.radius);
    setSeedGradient(f.seedGradient);
    setSeedID(f.seedID);
    setFormationID(f.formationID);
    setHeading(f.heading);
    return *this;
}   // =(const Formation &)
Ejemplo n.º 2
0
//
// Formation(f, r, sGrad, sID, fID, theta)
// Last modified: 28Aug2006
//
// Default constructor that initializes
// the formation to the parameterized values.
//
// Returns:     <none>
// Parameters:
//      f           in      the initial set of functions of the formation
//      r           in      the initial radius of the formation
//      sGrad       in      the initial seed gradient of the formation
//      sID         in      the initial seed ID of the formation
//      fID         in      the initial ID of the formation
//      theta       in      the initial heading of the formation
//
Formation::Formation(LinkedList<Function> f,
                     const GLfloat        r,
                     const Vector         sGrad,
                     const GLint          sID,
                     const GLint          fID,
                     const GLfloat        theta)
{
    setFunctions(f);
    setRadius(r);
    setSeedGradient(sGrad);
    setSeedID(sID);
    setFormationID(fID);
    setHeading(theta);
}   // Formation(const..{LL<Function>, GLfloat, Vector, GLint..<2>, GLfloat})
Ejemplo n.º 3
0
//
// Formation(f, r, sGrad, sID, fID, theta)
// Last modified: 04Sep2006
//
// Default constructor that initializes
// this formation to the parameterized values.
//
// Returns:     <none>
// Parameters:
//      f           in      the initial function of the formation
//      r           in      the initial radius of the formation
//      sGrad       in      the initial seed gradient of the formation
//      sID         in      the initial seed ID of the formation
//      fID         in      the initial ID of the formation
//      theta       in      the initial heading of the formation
//
Formation::Formation(const Function f,
                     const GLfloat  r,
                     const Vector   sGrad,
                     const GLint    sID,
                     const GLint    fID,
                     const GLfloat  theta)
{
    setFunction(f);
    setRadius(r);
    setSeedGradient(sGrad);
    setSeedID(sID);
    setFormationID(fID);
    setHeading(theta);
}   // Formation(const..{Function, GLfloat, Vector, GLint, GLint, GLfloat})
Ejemplo n.º 4
0
// Default constructor that initializes
// this formation to the parameterized values.
Formation::Formation(const Function f,
                     const float  r,
                     const Vector   sGrad,
                     const int    sID,
                     const int    fID,
                     const float  theta)
{
    setFunction(f);
    setRadius(r);
    setSeedFrp(sGrad);
    setSeedID(sID);
    setFormationID(fID);
    setHeading(theta);
}