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

#include <ellipse.h>

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

List of all members.

Public Member Functions

const FillgetFill () const
 Gets the Fill type of the type.
virtual const HGL::Type::SerialIDgetSerialID () const
 Gets the SerialID of HGL::Type::ELLIPSE.
virtual bool isValid () const

Detailed Description

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

Member Function Documentation

const Fill * Ellipse::getFill (  )  const [virtual]

Gets the Fill type of the type.

Returns:
a Fill or NULL if none available

Implements HGL::Type::IFillable.

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

Gets the SerialID of HGL::Type::ELLIPSE.

Returns:
const HGL::Type::SerialID &ELLIPSE

Implements HGL::IType.

bool Ellipse::isValid (  )  const [virtual]

An Ellipse is valid if the

  1. type is a Point
  2. type is 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