|
hgl 0.5.25
A compiler/interpreter suite for developing images
|
#include "poly.h"
Public Member Functions | |
| const Fill * | getFill () const |
| Gets the Fill type of the type. More... | |
| virtual bool | isValid () const |
| Checks if the type is valid. More... | |
Public Member Functions inherited from HGL::Type::ReferenceHolderBase | |
| virtual const IType * | findReference (bool recache=false) const |
| Searches the tree for the associated reference. More... | |
| virtual const std::string * | getReference () const |
| Gets the reference. More... | |
| virtual void | setReference (const std::string &ref, bool fromStdLib=false) |
| Sets the reference. More... | |
Reference access and manipulation | |
Public Member Functions inherited from HGL::IType | |
| virtual | operator iterator ()=0 |
| Gets the iterator over this type's attached types. More... | |
Public Member Functions inherited from HGL::Type::TypeBase | |
| IType * | attachType (IType *type, bool check=true) throw (Exception::AttachException) |
Attach child objects to the IType at end of list. More... | |
| virtual IType::iterator | begin () |
| Gets the iterator to the begin over this type's attached types. More... | |
| virtual IType::iterator | end () |
| Gets the iterator to the end over this type's attached types. More... | |
| virtual const TYPELIST & | getAttachedTypes () const |
Returns all attached IType instances. More... | |
| virtual const std::string & | getId () const |
| Gets the identifier. More... | |
| virtual IType * | getParent () const |
Returns the parent IType. More... | |
| virtual bool | isNull () const |
| Checks if the type is null type. More... | |
| virtual void | setDescription (const std::string &desc) |
| Sets the description of the type. More... | |
| virtual void | setId (const std::string &id) |
| Sets the identifier. More... | |
Protected Member Functions | |
| virtual IType * | attachType (IType *type, const HGL::IType::TYPELIST::iterator &before, bool check) throw (Exception::AttachException) |
| virtual void | detachType (IType *type) |
| Detaches a child from the IType. More... | |
| virtual SERIALID | getSerialID () const |
Gets the SerialID of HGL::IType::SPOLY More... | |
Protected Member Functions inherited from HGL::Type::TypeBase | |
| virtual IType * | attachType (IType *type, const TYPELIST::iterator &before, bool check=true) throw (Exception::AttachException) |
Attaches a child at the position before. More... | |
| virtual IType::Ptr | clone () const throw (Exception::CloneNotSupportedException) |
| Creates a clone of the type. More... | |
| virtual const std::string & | getDescription () const |
| Gets the description of the type. More... | |
| virtual const IType * | getRoot (const IType &type) const |
| Get the root of a type. More... | |
| virtual std::string | getTypeName () const |
| Displayable name of the IType. More... | |
| virtual | operator float () const throw (Exception::ReferenceException, Exception::InvalidExpressionException) |
Converts the type into a float More... | |
| virtual IType * | resolve (const std::string &id) const |
| Resolves a type by its ID. More... | |
| virtual void | setParent (IType *parent) |
| Set parent of the type. More... | |
|
protectedvirtual | ||||||||||||||||||||||||
References HGL::Type::TypeBase::attachType().
Referenced by HGL::Type::Curve::attachType().
|
protectedvirtual |
Detaches a child from the IType.
| type | the IType to detach |
Reimplemented from HGL::Type::TypeBase.
References HGL::Type::TypeBase::detachType().
|
virtual |
Gets the Fill type of the type.
Returns the last attached type if it is a Fill type
NULL if none available Implements HGL::Type::IFillable.
References HGL::Type::TypeBase::getAttachedTypes().
|
protectedvirtual |
Gets the SerialID of HGL::IType::SPOLY
HGL::IType::SPOLY Implements HGL::IType.
Reimplemented in HGL::Type::Curve.
References HGL::IType::SPOLY.
|
virtual |
Checks if the type is valid.
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.
true if a reference is set, but not checking if the reference itself is valid. A type is valid Subclasses can add more checks if neccessary.
true if the type is valid, false otherwise Reimplemented from HGL::Type::ReferenceHolderBase.
Reimplemented in HGL::Type::Curve.
References HGL::Type::TypeBase::getAttachedTypes(), and HGL::Type::ReferenceHolderBase::isValid().
1.8.5