C# 클래스 Axiom.Overlays.OverlayElementManager

This class acts as a repository and regitrar of overlay components.
OverlayElementManager's job is to manage the lifecycle of OverlayElement (subclass) instances, and also to register plugin suppliers of new components.
상속: IDisposable
파일 보기 프로젝트 열기: WolfgangSt/axiom 1 사용 예제들

Private Properties

프로퍼티 타입 설명
GetElementTable OverlayElement>.Dictionary
OverlayElementManager System

공개 메소드들

메소드 설명
AddElementFactory ( IOverlayElementFactory factory ) : void

Registers a new OverlayElementFactory with this manager.

Should be used by plugins or other apps wishing to provide a new OverlayElement subclass.

CloneOverlayElementFromTemplate ( string template, string name ) : OverlayElement

Clones an overlay element from a template

CreateElement ( string typeName, string instanceName ) : OverlayElement

Creates a new OverlayElement of the type requested.

CreateElement ( string typeName, string instanceName, bool isTemplate ) : OverlayElement

Creates a new OverlayElement of the type requested.

CreateElementFromFactory ( string typeName, string instanceName ) : OverlayElement

Creates an element of the specified type, with the specified name

A factory must be available to handle the requested type, or an exception will be thrown.

CreateElementFromTemplate ( string templateName, string typeName, string instanceName ) : OverlayElement

CreateElementFromTemplate ( string templateName, string typeName, string instanceName, bool isTemplate ) : OverlayElement

DestroyAllElements ( ) : void

destroys all OverlayElements

DestroyAllElements ( bool isTemplate ) : void

destroys all OverlayElements

DestroyElement ( OverlayElement element ) : void

Destroys the supplied OvelayElement

DestroyElement ( OverlayElement element, bool isTemplate ) : void

Destroys the supplied OvelayElement

DestroyElement ( string name ) : void

Destroys the specified OverlayElement

DestroyElement ( string name, bool isTemplate ) : void

Destroys the specified OverlayElement

GetElement ( string name ) : OverlayElement

Gets a reference to an existing element.

GetElement ( string name, bool isTemplate ) : OverlayElement

Gets a reference to an existing element.

보호된 메소드들

메소드 설명
dispose ( bool disposeManagedResources ) : void

Called when the engine is shutting down.

비공개 메소드들

메소드 설명
GetElementTable ( bool isTemplate ) : OverlayElement>.Dictionary

Quick helper method to return the lookup table for the right element type.

OverlayElementManager ( ) : System

Internal constructor. This class cannot be instantiated externally.

메소드 상세

AddElementFactory() 공개 메소드

Registers a new OverlayElementFactory with this manager.
Should be used by plugins or other apps wishing to provide a new OverlayElement subclass.
public AddElementFactory ( IOverlayElementFactory factory ) : void
factory IOverlayElementFactory
리턴 void

CloneOverlayElementFromTemplate() 공개 메소드

Clones an overlay element from a template
public CloneOverlayElementFromTemplate ( string template, string name ) : OverlayElement
template string template to clone
name string name of the new element
리턴 OverlayElement

CreateElement() 공개 메소드

Creates a new OverlayElement of the type requested.
public CreateElement ( string typeName, string instanceName ) : OverlayElement
typeName string The type of element to create is passed in as a string because this /// allows plugins to register new types of component.
instanceName string The type of element to create.
리턴 OverlayElement

CreateElement() 공개 메소드

Creates a new OverlayElement of the type requested.
public CreateElement ( string typeName, string instanceName, bool isTemplate ) : OverlayElement
typeName string The type of element to create is passed in as a string because this /// allows plugins to register new types of component.
instanceName string The type of element to create.
isTemplate bool
리턴 OverlayElement

CreateElementFromFactory() 공개 메소드

Creates an element of the specified type, with the specified name
A factory must be available to handle the requested type, or an exception will be thrown.
public CreateElementFromFactory ( string typeName, string instanceName ) : OverlayElement
typeName string
instanceName string
리턴 OverlayElement

CreateElementFromTemplate() 공개 메소드

public CreateElementFromTemplate ( string templateName, string typeName, string instanceName ) : OverlayElement
templateName string
typeName string
instanceName string
리턴 OverlayElement

CreateElementFromTemplate() 공개 메소드

public CreateElementFromTemplate ( string templateName, string typeName, string instanceName, bool isTemplate ) : OverlayElement
templateName string
typeName string
instanceName string
isTemplate bool
리턴 OverlayElement

DestroyAllElements() 공개 메소드

destroys all OverlayElements
public DestroyAllElements ( ) : void
리턴 void

DestroyAllElements() 공개 메소드

destroys all OverlayElements
public DestroyAllElements ( bool isTemplate ) : void
isTemplate bool
리턴 void

DestroyElement() 공개 메소드

Destroys the supplied OvelayElement
public DestroyElement ( OverlayElement element ) : void
element OverlayElement
리턴 void

DestroyElement() 공개 메소드

Destroys the supplied OvelayElement
public DestroyElement ( OverlayElement element, bool isTemplate ) : void
element OverlayElement
isTemplate bool
리턴 void

DestroyElement() 공개 메소드

Destroys the specified OverlayElement
public DestroyElement ( string name ) : void
name string
리턴 void

DestroyElement() 공개 메소드

Destroys the specified OverlayElement
public DestroyElement ( string name, bool isTemplate ) : void
name string
isTemplate bool
리턴 void

GetElement() 공개 메소드

Gets a reference to an existing element.
public GetElement ( string name ) : OverlayElement
name string Name of the element to retrieve.
리턴 OverlayElement

GetElement() 공개 메소드

Gets a reference to an existing element.
public GetElement ( string name, bool isTemplate ) : OverlayElement
name string Name of the element to retrieve.
isTemplate bool
리턴 OverlayElement

dispose() 보호된 메소드

Called when the engine is shutting down.
protected dispose ( bool disposeManagedResources ) : void
disposeManagedResources bool
리턴 void