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

#include <curve.h>

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

List of all members.

Public Member Functions

virtual const FillgetFill () const
virtual const HGL::Type::SerialIDgetSerialID () const
 Gets the SerialID of HGL::Type::CURVE.

Protected Member Functions

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

Detailed Description

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

Member Function Documentation

HGL::IType * Curve::attachType ( HGL::IType type,
const TYPELIST::iterator &  before,
bool  check 
) throw (Exception::AttachException) [protected, virtual]
Postcondition:
If the Curve is invalidated after attaching, it will get reordered to be valid again.

Reimplemented from HGL::Type::TypeBase.

const Fill * Curve::getFill (  )  const [virtual]
Note:
Returns always NULL because a Curve itself cannot get filled. Attach it onto a Poly to get it filled.
See also:
Poly::getFill Gets the Fill type of the type.

Reimplemented from HGL::Type::Poly.

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

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

Returns:
const HGL::Type::SerialID &CURVE

Reimplemented from HGL::Type::Poly.

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

To be a valid Curve a Line must be the first attached type.

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::Poly.


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