Point Class Reference
[Shapes]

Point shape node. More...

#include <Point.h>

Inheritance diagram for Point:

Inheritance graph
[legend]
Collaboration diagram for Point:

Collaboration graph
[legend]

List of all members.

Public Member Functions

 Point ()
 Constructs a new Point at the origin in object space.
 Point (const Vector2f &location)
 Constructs a new Point at a location in object space.
 Point (const std::string &name)
 Constructs a new Point at the origin in object space.
 Point (const std::string &name, const Vector2f &location)
 Constructs a new Point at a location in object space.
ShapeType type ()
 Returns the Point's type.

Protected Member Functions

void draw ()
 Called when a Node is to be drawn.


Detailed Description

Point shape node.

The Point class is type of Shape which draws a point


Constructor & Destructor Documentation

Point::Point ( const Vector2f location  ) 

Constructs a new Point at a location in object space.

Parameters:
location location of Point

Point::Point ( const std::string &  name  ) 

Constructs a new Point at the origin in object space.

Parameters:
name name of Node

Point::Point ( const std::string &  name,
const Vector2f location 
)

Constructs a new Point at a location in object space.

Parameters:
name name of Node
location location of Point


Member Function Documentation

ShapeType Point::type (  )  [inline, virtual]

Returns the Point's type.

Returns:
returns the type Shape::ST_POINT

Reimplemented from Shape.

void Point::draw (  )  [protected, virtual]

Called when a Node is to be drawn.

Override this method in subclasses to tell a Node how to draw itself on the screen. Drawing should take place in object space (the parent Nodes will apply their own transforms to the rendering stack).

Reimplemented from Node.


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

Generated on Fri Feb 22 15:56:22 2008 for Scene2D by  doxygen 1.5.5