HGL::Type::Text Class Reference
[Types]

#include <text.h>

Inheritance diagram for HGL::Type::Text:
Inheritance graph
[legend]

List of all members.

Public Member Functions

virtual BOUNDINGBOX getBoundingBox () const
 Gets the bounding box of the type.
virtual const SerialIDgetSerialID () const
 Gets the serialization ID of the object.

Protected Member Functions

virtual bool isValid () const

Detailed Description

Author:
Heiko Schäfer <heiko@hgl.rangun.de>

Member Function Documentation

HGL::IType::BOUNDINGBOX Text::getBoundingBox (  )  const [virtual]

Gets the bounding box of the type.

Returns:
the bounding box of the type

Reimplemented from HGL::Type::TypeBase.

const HGL::Type::SerialID & Text::getSerialID (  )  const [virtual]

Gets the serialization ID of the object.

Returns:
the serialization ID of the object

Implements HGL::IType.

bool Text::isValid (  )  const [protected, virtual]

A Text is valid if the first and second attached type are StringParam and the third are a Vector2D.

Note:
this method returns false if the type has no attached subtypes. A type is valid

  1. if all attached types are allowed for this type, if not the type is invalid
  2. if all attached types itself are valid, if not the type is invalid
Subclasses can add more checks if neccessary.Checks if the type is valid.

Reimplemented from HGL::Type::NonEmptyType.


Generated on 9 Apr 2014 for hgl 0.5.26~svn by  doxygen 1.6.1