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

#include <poly.h>

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

List of all members.

Public Member Functions

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

Protected Member Functions

virtual ITypeattachType (IType *type, const HGL::IType::TYPELIST::iterator &before, bool check) throw (Exception::AttachException)

Detailed Description

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

Member Function Documentation

HGL::IType * Poly::attachType ( IType type,
const HGL::IType::TYPELIST::iterator &  before,
bool  check 
) throw (Exception::AttachException) [protected, virtual]
const Fill * Poly::getFill (  )  const [virtual]

Returns the last attached type if it is a Fill type

See also:
Poly::isValid Gets the Fill type of the type.

Implements HGL::Type::IFillable.

Reimplemented in HGL::Type::Curve.

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

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

Returns:
const HGL::Type::SerialID &POLY

Implements HGL::IType.

Reimplemented in HGL::Type::Curve.

bool Poly::isValid (  )  const [virtual]

To be a valid Poly the Fill, if attached, must be the last attached type and it must contain at least two valid attached types.

Note:
This method returns true if a reference is set, but not checking if the reference itself is valid. 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::ReferenceHolderBase.

Reimplemented in HGL::Type::Curve.


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