/*
 *  SpiralFlower.h
 *  lsystems_one
 *
 *  Created by lewhill2 on Fri Feb 27 2004.
 *  Copyright (c) 2004 __MyCompanyName__. All rights reserved.
 *
 */

#ifndef _SPIRAL_FLOWER_H_
#define _SPIRAL_FLOWER_H_

#define NUM_POINTS 20
// this is a planar method flower.

#include <math.h>
#include <GL/gl.h>


class SpiralFlower{

public:
	
	SpiralFlower();
	
	~SpiralFlower();
	
	void draw();

	void frame();

	void setAngle(float angle);
	
	void setScalingParameter(float c);
	
	void setDotSize(float dotsize);

	void setRotation(float angle);
	
private:
	
	// angle for spiral placement.
	float angle;
	
	float sqrt_table[NUM_POINTS];
	
	float scaling;
	
	float dotSize;
	
	// rotation about the x axis
	float rotation;

	
};


#endif

