Button Class Reference

This is a dummy-class for testing reasons. More...

#include <Button.h>

Inherits Widget.

Collaboration diagram for Button:

List of all members.


Public Member Functions

 Button (XMLNode *xml)
void pressed ()
void released ()

Private Member Functions

void parse_symbol (char *path, char symbol)

Private Attributes

std::string * animationName
std::string * callbackPressed
std::string * callbackReleased

Detailed Description

This is a dummy-class for testing reasons.

This class is just a dummy implementation for testing the library-loading-mechanism and a few other concepts. It is a sub-class of Widget and is going to be extended to the "real" Button -class.

The constructor loads a VRML-file and uses the inherited methods for placing it at the right position. It also loads an animation for pressing and releasing the button.

The important factory-Methods, which are defined in the cpp-file, are:

extern "C" Widget* _create_Button(XMLNode *xml) { return new Button(xml); }

extern "C" void _destroy_Button(Widget* w) { delete w; }

The word "Button" in the method-signatures has to be equal to the classname!

Date:
24th of March 2007
Author:
Thomas Weberndorfer

Constructor & Destructor Documentation

Button::Button ( XMLNode xml  ) 

The constructor loads the widget shape and the animation-name.

Parameters:
xml Pass an XMLNode -object, which focuses on the right XML-node.


Member Function Documentation

void Button::parse_symbol ( char *  path,
char  symbol 
) [private]

void Button::pressed (  )  [virtual]

This is just a dummy implementation.

Implements Widget.

void Button::released (  )  [virtual]

This is just a dummy implementation.

Implements Widget.


Member Data Documentation

std::string* Button::animationName [private]

std::string* Button::callbackPressed [private]

std::string* Button::callbackReleased [private]


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

Generated on Wed Oct 20 16:11:54 2010 for inVRs by doxygen 1.5.8