|
hgl 0.5.25
A compiler/interpreter suite for developing images
|
A render callback type. More...
#include "rendercallback.h"
Public Member Functions | |
| void | detachType (IType *type) |
| Detaches a child from the IType. More... | |
| virtual const TYPELIST & | getAttachedTypes () const |
Returns all attached IType instances. 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 bool | isValid () const |
| Checks if the type is valid. 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 BOUNDINGBOX | getBoundingBox () const |
| Gets the bounding box of the type. 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 | |
| RenderCallback (const std::string &ref, IType *lib=0L) | |
Constructur More... | |
| virtual IType * | attachType (IType *type, const TYPELIST::iterator &before, bool check) throw (Exception::AttachException) |
Attaches a child at the position before. More... | |
| virtual SERIALID | getSerialID () const |
Gets the SerialID of HGL::IType::SRENDERCALLBACK More... | |
Protected Member Functions inherited from HGL::Type::TypeBase | |
| 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... | |
A render callback type.
This type can get attached to a RenderProcedure to give feedback about the progess of rendering. It contains two virtually attached FloatParam indicating the current line and the maximum number of lines.
A callback can be defined as following in the ProceduresSegment:
|
explicitprotected |
Constructur
| ref | a reference to the render callback procedure |
| lib | the scope to search the render callback procedure |
|
protectedvirtual | ||||||||||||||||||||||||
Attaches a child at the position before.
If the attached type is a FloatParam it gets interpreted as the the current line if attached first and as the total amount of lines if attached second. It updates the parent of the attached type to this type as well.
| type | the IType to attach as child |
| before | the type will be attached before the type referenced by before |
| check | true (default), if validity checks should be performed |
| type | the IType to attach as child |
| check | true (default), if validity checks should be performed |
| Exception::AttachException | if a disallowed type gets attached. See Types for more. |
Reimplemented from HGL::Type::TypeBase.
References HGL::Type::TypeBase::attachType().
|
virtual |
Detaches a child from the IType.
| type | the IType to detach |
Reimplemented from HGL::Type::TypeBase.
|
virtual |
Returns all attached IType instances.
Actually it returns two FloatParam. The first indicating the currently processed line and the second the maximum amount of lines.
IType instances Reimplemented from HGL::Type::TypeBase.
References HGL::Type::TypeBase::getAttachedTypes().
|
protectedvirtual |
Gets the SerialID of HGL::IType::SRENDERCALLBACK
HGL::IType::SRENDERCALLBACK Reimplemented from HGL::Type::ProcCall.
References HGL::IType::SRENDERCALLBACK.
1.8.5