public interface IRenderer
Interface defines logic for executing and managing a scene via a viewer.
Modifier and Type | Method and Description |
---|---|
IAttachment |
createAttachment(java.lang.Class<? extends IAttachment> clazz)
Creates an attachment of the specified type.
|
void |
register(java.lang.Class<? extends IAttachment> type,
IAttachmentManager mgr)
Associates the supplied IAttachmentManager with the renderer, so
attachments can be allocated with the associated type.
|
boolean |
supportsAttachment(java.lang.Class<? extends IAttachment> clazz)
Returns true if the renderer supports the supplied attachment type, false
otherwise.
|
void |
unregister(java.lang.Class<? extends IAttachment> type)
Removes any manager associated with the supplied type from the renderer.
|
IAttachment createAttachment(java.lang.Class<? extends IAttachment> clazz)
Creates an attachment of the specified type.
clazz
- the type of IAttachment to allocate.boolean supportsAttachment(java.lang.Class<? extends IAttachment> clazz)
Returns true if the renderer supports the supplied attachment type, false otherwise.
clazz
- the type of attachment to check forvoid register(java.lang.Class<? extends IAttachment> type, IAttachmentManager mgr)
Associates the supplied IAttachmentManager with the renderer, so attachments can be allocated with the associated type.
type
- the type of attachments supplied by the managermgr
- the manager instance to handle allocating attachmentsvoid unregister(java.lang.Class<? extends IAttachment> type)
Removes any manager associated with the supplied type from the renderer.
type
- the type of attachment manager to unregister