#include <discsectionrenderercomponent.h>
Classes | |
class | DiscSectionRendererComponentPrivate |
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 | DiscSectionRendererComponent (QObject *parent=0) |
DiscSectionRendererComponent (const DiscSectionRendererComponent &other) | |
virtual | ~DiscSectionRendererComponent () |
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 float | degrees () |
virtual void | setDegrees (float newDegrees) |
virtual QColor | color () |
virtual Asset * | texture () |
virtual float | arcCenter () |
virtual void | setArcCenter (float newArcCenter) |
Properties | |
float | radius |
uint | nbPoints |
float | arcCenter |
float | degrees |
QColor | color |
GluonEngine::Asset | texture |
Definition at line 30 of file discsectionrenderercomponent.h.
DiscSectionRendererComponent::DiscSectionRendererComponent | ( | QObject * | parent = 0 |
) |
Definition at line 62 of file discsectionrenderercomponent.cpp.
DiscSectionRendererComponent::DiscSectionRendererComponent | ( | const DiscSectionRendererComponent & | other | ) |
Definition at line 69 of file discsectionrenderercomponent.cpp.
DiscSectionRendererComponent::~DiscSectionRendererComponent | ( | ) | [virtual] |
Definition at line 75 of file discsectionrenderercomponent.cpp.
virtual float GluonEngine::DiscSectionRendererComponent::arcCenter | ( | ) | [virtual] |
QString DiscSectionRendererComponent::category | ( | ) | const [virtual] |
Return the category of the component. Meta-data used for filtering and sorting components
Reimplemented from GluonEngine::Component.
Definition at line 81 of file discsectionrenderercomponent.cpp.
void DiscSectionRendererComponent::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 122 of file discsectionrenderercomponent.cpp.
virtual QColor GluonEngine::DiscSectionRendererComponent::color | ( | ) | [virtual] |
virtual float GluonEngine::DiscSectionRendererComponent::degrees | ( | ) | [virtual] |
void DiscSectionRendererComponent::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.
timeLapse | The number of milliseconds passed since the last update
|
Reimplemented from GluonEngine::Component.
Definition at line 112 of file discsectionrenderercomponent.cpp.
void DiscSectionRendererComponent::initialize | ( | ) | [virtual] |
The initialize function is called whenever an initialized object is needed. This includes scene changes.
Reimplemented from GluonEngine::Component.
Definition at line 86 of file discsectionrenderercomponent.cpp.
virtual uint GluonEngine::DiscSectionRendererComponent::nbPoints | ( | ) | [virtual] |
virtual float GluonEngine::DiscSectionRendererComponent::radius | ( | ) | [virtual] |
void DiscSectionRendererComponent::setArcCenter | ( | float | newArcCenter | ) | [virtual] |
Definition at line 228 of file discsectionrenderercomponent.cpp.
void DiscSectionRendererComponent::setColor | ( | int | r, | |
int | g, | |||
int | b, | |||
int | a = 255 | |||
) | [virtual, slot] |
Definition at line 195 of file discsectionrenderercomponent.cpp.
void DiscSectionRendererComponent::setColor | ( | const QColor & | color | ) | [virtual, slot] |
Definition at line 186 of file discsectionrenderercomponent.cpp.
void DiscSectionRendererComponent::setDegrees | ( | float | newDegrees | ) | [virtual] |
Definition at line 167 of file discsectionrenderercomponent.cpp.
void DiscSectionRendererComponent::setNbPoints | ( | uint | newNbPoints | ) | [virtual] |
Definition at line 149 of file discsectionrenderercomponent.cpp.
void DiscSectionRendererComponent::setRadius | ( | float | newRadius | ) | [virtual] |
Definition at line 137 of file discsectionrenderercomponent.cpp.
void DiscSectionRendererComponent::setTexture | ( | Asset * | asset | ) | [virtual, slot] |
Definition at line 210 of file discsectionrenderercomponent.cpp.
void DiscSectionRendererComponent::start | ( | ) | [virtual] |
The start function is run once after each scene change, immediately before the first update
Reimplemented from GluonEngine::Component.
Definition at line 108 of file discsectionrenderercomponent.cpp.
virtual Asset* GluonEngine::DiscSectionRendererComponent::texture | ( | ) | [virtual] |
float DiscSectionRendererComponent::arcCenter [read, write] |
Definition at line 36 of file discsectionrenderercomponent.h.
QColor DiscSectionRendererComponent::color [read, write] |
Definition at line 38 of file discsectionrenderercomponent.h.
float DiscSectionRendererComponent::degrees [read, write] |
Definition at line 37 of file discsectionrenderercomponent.h.
uint DiscSectionRendererComponent::nbPoints [read, write] |
Definition at line 35 of file discsectionrenderercomponent.h.
float DiscSectionRendererComponent::radius [read, write] |
Definition at line 34 of file discsectionrenderercomponent.h.
Asset * DiscSectionRendererComponent::texture [read, write] |
Definition at line 39 of file discsectionrenderercomponent.h.