#include <GlutIOModule.h>
Inherits fsf::CNode.
Public Member Functions | |
Creators | |
CSurface () | |
Default constructor. | |
CSurface (fsf::CNode *pParent, fsf::Time tTime=0) | |
2-parameter constructor: parent and time stamp | |
CSurface (const std::string &strName, fsf::CNode *pParent=NULL, fsf::Time tTime=0) | |
3-parameter constructor: node name, parent and time stamp | |
CSurface (const CSurface &) | |
Copy constructor. | |
virtual | ~CSurface () |
Destructor. | |
virtual fsf::CNode * | clone () const |
Cloning: necessary for run-time polymorphism. | |
Manipulators | |
CSurface & | operator= (const CSurface &) |
Assignemtn operator. | |
void | setCanvas (double x, double y, double w, double h) |
Sets canvas position and size. | |
void | setTexture (double u1, double v1, double u2, double v2) |
Sets texture coordinates. | |
void | refreshTexture (image::CImage *pImage) |
Reloads texture data from image node. | |
void | draw () |
Draws canvas. | |
Accessors | |
virtual void | getTypeID (string &str) const |
Gets this node's factory mapping key. | |
double | getX () const |
Gets X coordinate of canvas top left corner (in world coordinates). | |
double | getY () const |
Gets Y coordinate of canvas top left corner (in world coordinates). | |
double | getW () const |
Gets canvas width. | |
double | getH () const |
Gets canvas height (in world coordinates). |
CSurface::CSurface | ( | ) |
Default constructor.
CSurface::CSurface | ( | fsf::CNode * | pParent, | |
fsf::Time | tTime = 0 | |||
) |
2-parameter constructor: parent and time stamp
glutio::CSurface::CSurface | ( | const std::string & | strName, | |
fsf::CNode * | pParent = NULL , |
|||
fsf::Time | tTime = 0 | |||
) |
3-parameter constructor: node name, parent and time stamp
CSurface::CSurface | ( | const CSurface & | rhs | ) |
Copy constructor.
CSurface::~CSurface | ( | ) | [virtual] |
Destructor.
virtual fsf::CNode* glutio::CSurface::clone | ( | ) | const [inline, virtual] |
void CSurface::draw | ( | ) |
Draws canvas.
double glutio::CSurface::getH | ( | ) | const [inline] |
Gets canvas height (in world coordinates).
virtual void glutio::CSurface::getTypeID | ( | string & | str | ) | const [inline, virtual] |
Gets this node's factory mapping key.
double glutio::CSurface::getW | ( | ) | const [inline] |
Gets canvas width.
double glutio::CSurface::getX | ( | ) | const [inline] |
Gets X coordinate of canvas top left corner (in world coordinates).
double glutio::CSurface::getY | ( | ) | const [inline] |
Gets Y coordinate of canvas top left corner (in world coordinates).
void CSurface::refreshTexture | ( | image::CImage * | pImage | ) |
Reloads texture data from image node.
void glutio::CSurface::setCanvas | ( | double | x, | |
double | y, | |||
double | w, | |||
double | h | |||
) | [inline] |
Sets canvas position and size.
void glutio::CSurface::setTexture | ( | double | u1, | |
double | v1, | |||
double | u2, | |||
double | v2 | |||
) | [inline] |
Sets texture coordinates.