Page Menu
Home
c4science
Search
Configure Global Search
Log In
Files
F98007033
skactor.h
No One
Temporary
Actions
Download File
Edit File
Delete File
View Transforms
Subscribe
Mute Notifications
Award Token
Subscribers
None
File Metadata
Details
File Info
Storage
Attached
Created
Wed, Jan 8, 13:31
Size
1 KB
Mime Type
text/x-c++
Expires
Fri, Jan 10, 13:31 (1 d, 23 h)
Engine
blob
Format
Raw Data
Handle
23479017
Attached To
rSYMKIT symkit
skactor.h
View Options
#ifndef SKOBJECT_H
#define SKOBJECT_H
#include <QString>
#include "specs/specs.h"
class SKActor
{
public:
SKActor(const QString &label = "", specs_t flags = 0x0) : SPECS_VAR(flags), label(label) {}
virtual ~SKActor() {}
void setLabel(const QString &label)
{
this->label = label;
}
QString getLabel() const
{
return label;
}
/* call performed on scene initialization */
virtual void initialize() {}
/*
* Generate specs accessor methods
*
* These methods allow to
* access the SPECS_VAR by a "set" and a "get" method
*
* In particular, the set method allows to set all flags in one
* using the numerical macros defined in "specs.h"
* For example:
*
* setSpecs(S_EVOLVE | S_RENDER | S_POSITION | S_COLOR);
*/
SPECS_ACCESS
protected:
/*
* Generate the specs flags field
*
* This macro is expanded to
*
* specs_t SPECS_VAR;
*
* This field must be protected in order to pass
* the flags bit-wise structure to the children classes,
* so they can generate the accessors methods defined
* in "specs.h"
*/
SPECS_FIELD
private:
QString label;
};
#endif // SKOBJECT_H
Event Timeline
Log In to Comment