GluonEngine::DiscRendererComponent Class Reference

#include <discrenderercomponent.h>

Inheritance diagram for GluonEngine::DiscRendererComponent:
GluonEngine::Component GluonCore::GluonObject QObject

List of all members.

Classes

class  DiscRendererComponentPrivate

Public Slots

virtual void setColor (const QColor &color)
virtual void setColor (int r, int g, int b, int a=255)
virtual void setTexture (Asset *asset)

Public Member Functions

Q_INVOKABLE DiscRendererComponent (QObject *parent=0)
 DiscRendererComponent (const DiscRendererComponent &other)
virtual ~DiscRendererComponent ()
virtual QString category () const
virtual void initialize ()
virtual void start ()
virtual void draw (int timeLapse=0)
virtual void cleanup ()
virtual float radius ()
virtual void setRadius (float newRadius)
virtual uint nbPoints ()
virtual void setNbPoints (uint newNbPoints)
virtual QColor color ()
virtual Assettexture ()

Properties

float radius
uint nbPoints
QColor color
GluonEngine::Asset texture

Detailed Description

Definition at line 30 of file discrenderercomponent.h.


Constructor & Destructor Documentation

DiscRendererComponent::DiscRendererComponent ( QObject parent = 0  ) 

Definition at line 55 of file discrenderercomponent.cpp.

DiscRendererComponent::DiscRendererComponent ( const DiscRendererComponent other  ) 

Definition at line 61 of file discrenderercomponent.cpp.

DiscRendererComponent::~DiscRendererComponent (  )  [virtual]

Definition at line 67 of file discrenderercomponent.cpp.


Member Function Documentation

QString DiscRendererComponent::category (  )  const [virtual]

Return the category of the component. Meta-data used for filtering and sorting components

Reimplemented from GluonEngine::Component.

Definition at line 73 of file discrenderercomponent.cpp.

void DiscRendererComponent::cleanup (  )  [virtual]

The cleanup function is called whenever an object is no longer needed. This happens mostly during scene changes.

Reimplemented from GluonEngine::Component.

Definition at line 114 of file discrenderercomponent.cpp.

virtual QColor GluonEngine::DiscRendererComponent::color (  )  [virtual]
void DiscRendererComponent::draw ( int  timeLapse = 0  )  [virtual]

The draw function is run every time the engine requests a redraw of the screen. Avoid putting any game logic in this function. The optional timeLapse depends on gameloop being used. By default Gluon uses a gameloop which runs update a fixed number of times per second, while draw is called as often as it can be. The timeLapse parameter then tells you how many milliseconds have passed since the last time update was run. This allows you to extrapolate draw positions of items and thus create a potentially smoother gaming experience.

Parameters:
timeLapse The number of milliseconds passed since the last update
See also:
Game::runGame, update

Reimplemented from GluonEngine::Component.

Definition at line 104 of file discrenderercomponent.cpp.

void DiscRendererComponent::initialize (  )  [virtual]

The initialize function is called whenever an initialized object is needed. This includes scene changes.

Reimplemented from GluonEngine::Component.

Definition at line 78 of file discrenderercomponent.cpp.

virtual uint GluonEngine::DiscRendererComponent::nbPoints (  )  [virtual]
virtual float GluonEngine::DiscRendererComponent::radius (  )  [virtual]
void DiscRendererComponent::setColor ( int  r,
int  g,
int  b,
int  a = 255 
) [virtual, slot]

Definition at line 163 of file discrenderercomponent.cpp.

void DiscRendererComponent::setColor ( const QColor &  color  )  [virtual, slot]

Definition at line 154 of file discrenderercomponent.cpp.

void DiscRendererComponent::setNbPoints ( uint  newNbPoints  )  [virtual]

Definition at line 141 of file discrenderercomponent.cpp.

void DiscRendererComponent::setRadius ( float  newRadius  )  [virtual]

Definition at line 129 of file discrenderercomponent.cpp.

void DiscRendererComponent::setTexture ( Asset asset  )  [virtual, slot]

Definition at line 178 of file discrenderercomponent.cpp.

void DiscRendererComponent::start (  )  [virtual]

The start function is run once after each scene change, immediately before the first update

See also:
Game::setCurrentScene, update

Reimplemented from GluonEngine::Component.

Definition at line 100 of file discrenderercomponent.cpp.

virtual Asset* GluonEngine::DiscRendererComponent::texture (  )  [virtual]

Property Documentation

QColor DiscRendererComponent::color [read, write]

Definition at line 36 of file discrenderercomponent.h.

uint DiscRendererComponent::nbPoints [read, write]

Definition at line 35 of file discrenderercomponent.h.

float DiscRendererComponent::radius [read, write]

Definition at line 34 of file discrenderercomponent.h.

Asset * DiscRendererComponent::texture [read, write]

Definition at line 37 of file discrenderercomponent.h.


The documentation for this class was generated from the following files:
Generated on Mon Dec 27 13:13:43 2010 for Gluon by  doxygen 1.6.3