| Package | com.yogurt3d.core.managers.contextmanager |
| Class | public class ContextManager |
| Inheritance | ContextManager EngineObject Object |
| Implements | IContextManager |
| Property | Defined By | ||
|---|---|---|---|
| cameras : Vector.<Camera> [read-only]
Returns the registered cameras
| ContextManager | ||
| contextCount : int [read-only]
Returns the registered context count
| ContextManager | ||
| contexts : Vector.<IContext> [read-only]
Returns the registered contexts
| ContextManager | ||
| renderers : Vector.<IRenderer> [read-only]
Returns the registered renderers
| ContextManager | ||
| scenes : Vector.<IScene> [read-only]
Returns the registered scenes
| ContextManager | ||
![]() | systemID : String [read-only]
Automatically assigned id. | EngineObject | |
![]() | userID : String
Identification string can be assigned by developer to identify objects. | EngineObject | |
| viewports : Vector.<Viewport> [read-only]
Returns the registered viewports
| ContextManager | ||
| Method | Defined By | ||
|---|---|---|---|
ContextManager(_initInternals:Boolean = true) | ContextManager | ||
addContext(_value:IContext):void
Registers a IContext object. | ContextManager | ||
Creates and registeres a new Context object. | ContextManager | ||
![]() |
Creates new clone object. | EngineObject | |
![]() | dispose():void
Removes all external referances and clears internals. | EngineObject | |
![]() | disposeDeep():void | EngineObject | |
![]() | disposeGPU():void | EngineObject | |
getContextBySystemID(_value:String):IContext
Fetches a registered Context object using it's system id
| ContextManager | ||
getContextByUserID(_value:String):IContext
Fetches a registered Context object using it's user id
| ContextManager | ||
![]() | instance():*
Removes all external referances and clears internals. | EngineObject | |
removeAllRelatedTo(_value:IEngineObject):void
Unregisters the Context object allocated to the IEngineObject
| ContextManager | ||
removeAllRelatedToCamera(_value:Camera):void
Unregisters the Context object allocated to the Camera
| ContextManager | ||
removeAllRelatedToRenderer(_value:IRenderer):void
Unregisters the Context object allocated to the IRenderer
| ContextManager | ||
removeAllRelatedToScene(_value:IScene):void
Unregisters the Context object allocated to the IScene
| ContextManager | ||
removeAllRelatedToViewport(_value:Viewport):void
Unregisters the Context object allocated to the Viewport
| ContextManager | ||
removeContext(_value:IContext):void
Unregisters a Context
| ContextManager | ||
removeContextBySystemID(_value:String):void
Unregisters a Context object by it's system id
| ContextManager | ||
removeContextByUserID(_value:String):void
Unregisters a Context object by it's user id
| ContextManager | ||
![]() | renew():void
Renews object internals and resets properties of object. | EngineObject | |
![]() | toString():String
Returns a string identifier on this object
| EngineObject | |
| Method | Defined By | ||
|---|---|---|---|
initInternals():void [override]
| ContextManager | ||
trackObject():void [override]
Starts the tracking of the object
| ContextManager | ||
| cameras | property |
cameras:Vector.<Camera> [read-only] Returns the registered cameras
public function get cameras():Vector.<Camera>| contextCount | property |
contextCount:int [read-only] Returns the registered context count
public function get contextCount():int| contexts | property |
contexts:Vector.<IContext> [read-only] Returns the registered contexts
public function get contexts():Vector.<IContext>| m_cameras | property |
YOGURT3D_INTERNAL var m_cameras:Vector.<Camera>| m_contextBySystemID | property |
YOGURT3D_INTERNAL var m_contextBySystemID:Dictionary| m_contextCount | property |
YOGURT3D_INTERNAL var m_contextCount:int| m_contexts | property |
YOGURT3D_INTERNAL var m_contexts:Vector.<IContext>| m_counter | property |
YOGURT3D_INTERNAL var m_counter:Dictionary| m_renderers | property |
YOGURT3D_INTERNAL var m_renderers:Vector.<IRenderer>| m_scenes | property |
YOGURT3D_INTERNAL var m_scenes:Vector.<IScene>| m_viewports | property |
YOGURT3D_INTERNAL var m_viewports:Vector.<Viewport>| renderers | property |
renderers:Vector.<IRenderer> [read-only] Returns the registered renderers
public function get renderers():Vector.<IRenderer>| scenes | property |
scenes:Vector.<IScene> [read-only] Returns the registered scenes
public function get scenes():Vector.<IScene>| viewports | property |
viewports:Vector.<Viewport> [read-only] Returns the registered viewports
public function get viewports():Vector.<Viewport>| ContextManager | () | Constructor |
public function ContextManager(_initInternals:Boolean = true)Parameters
_initInternals:Boolean (default = true) |
| addContext | () | method |
public function addContext(_value:IContext):void
Registers a IContext object.
Parameters
_value:IContext — The IContext object to be registered.
|
| addNewContext | () | method |
public function addNewContext(_scene:IScene, _camera:Camera, _viewport:Viewport, _renderer:IRenderer):String
Creates and registeres a new Context object.
Parameters
_scene:IScene | |
_camera:Camera | |
_viewport:Viewport | |
_renderer:IRenderer |
String —
|
| getContextBySystemID | () | method |
public function getContextBySystemID(_value:String):IContext
Fetches a registered Context object using it's system id
Parameters
_value:String |
IContext —
|
| getContextByUserID | () | method |
public function getContextByUserID(_value:String):IContext
Fetches a registered Context object using it's user id
Parameters
_value:String — User id
|
IContext —
|
| initInternals | () | method |
override protected function initInternals():void
| removeAllRelatedTo | () | method |
public function removeAllRelatedTo(_value:IEngineObject):void
Unregisters the Context object allocated to the IEngineObject
Parameters
_value:IEngineObject |
| removeAllRelatedToCamera | () | method |
public function removeAllRelatedToCamera(_value:Camera):void
Unregisters the Context object allocated to the Camera
Parameters
_value:Camera |
| removeAllRelatedToRenderer | () | method |
public function removeAllRelatedToRenderer(_value:IRenderer):void
Unregisters the Context object allocated to the IRenderer
Parameters
_value:IRenderer |
| removeAllRelatedToScene | () | method |
public function removeAllRelatedToScene(_value:IScene):void
Unregisters the Context object allocated to the IScene
Parameters
_value:IScene |
| removeAllRelatedToViewport | () | method |
public function removeAllRelatedToViewport(_value:Viewport):void
Unregisters the Context object allocated to the Viewport
Parameters
_value:Viewport |
| removeContext | () | method |
public function removeContext(_value:IContext):void
Unregisters a Context
Parameters
_value:IContext — Context object that is going to be unregistered
|
| removeContextBySystemID | () | method |
public function removeContextBySystemID(_value:String):void
Unregisters a Context object by it's system id
Parameters
_value:String |
| removeContextByUserID | () | method |
public function removeContextByUserID(_value:String):void
Unregisters a Context object by it's user id
Parameters
_value:String |
| trackObject | () | method |
override protected function trackObject():voidStarts the tracking of the object