glutio::CSurface Class Reference
[GLUT I/O module]

#include <GlutIOModule.h>

Inherits fsf::CNode.

Collaboration diagram for glutio::CSurface:

Collaboration graph
[legend]

List of all members.

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::CNodeclone () const
 Cloning: necessary for run-time polymorphism.
Manipulators
CSurfaceoperator= (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).


Constructor & Destructor Documentation

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.


Member Function Documentation

virtual fsf::CNode* glutio::CSurface::clone (  )  const [inline, virtual]

Cloning: necessary for run-time polymorphism.

Reimplemented from fsf::CNode.

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).

CSurface & CSurface::operator= ( const CSurface rhs  ) 

Assignemtn operator.

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.


The documentation for this class was generated from the following files:

Generated on Thu Oct 21 12:39:20 2010 for MFSM Modules by  doxygen 1.5.9