C# Class Outliner.Scene.OutlinerScene

Show file Open project: Pjanssen/Outliner Class Usage Examples

Protected Properties

Property Type Description
layers OutlinerLayer>.Dictionary
layers_by_parentHandle List>.Dictionary
materials OutlinerMaterial>.Dictionary
materials_by_parentHandle List>.Dictionary
objectCounter System.Int32
objects OutlinerObject>.Dictionary
objects_by_layerHandle List>.Dictionary
objects_by_materialHandle List>.Dictionary
objects_by_parentHandle List>.Dictionary

Public Methods

Method Description
AddLayer ( Int32 handle, Int32 parentHandle, String name, System.Boolean isActive, System.Boolean isHidden, System.Boolean isFrozen, System.Boolean boxMode ) : void
AddLayer ( OutlinerLayer layer ) : void
AddMaterial ( Int32 handle, Int32 parentHandle, String name, String type ) : void
AddMaterial ( OutlinerMaterial mat ) : void
AddObject ( Int32 handle, Int32 parentHandle, Int32 layerHandle, Int32 materialHandle, String name, String objClass, String objSuperClass, System.Boolean isGroupHead, System.Boolean isGroupMember, System.Boolean isHidden, System.Boolean isFrozen, System.Boolean boxMode ) : void
AddObject ( OutlinerObject obj ) : void
Clear ( ) : void
ClearMaterials ( ) : void
ContainsMaterial ( Int32 materialHandle ) : System.Boolean
GetLayerByHandle ( Int32 handle ) : OutlinerLayer
GetLayerChildNodesCount ( Int32 layerHandle ) : Int32
GetLayersByParentHandle ( Int32 handle ) : List
GetMaterialByHandle ( Int32 handle ) : OutlinerMaterial
GetMaterialChildNodesCount ( Int32 materialHandle ) : Int32
GetMaterialsByParentHandle ( Int32 handle ) : List
GetNodeByHandle ( Int32 handle ) : OutlinerNode
GetObjectByHandle ( Int32 handle ) : OutlinerObject
GetObjectChildNodesCount ( Int32 objectHandle ) : Int32
GetObjectsByLayerHandle ( Int32 handle ) : List
GetObjectsByMaterialHandle ( Int32 handle ) : List
GetObjectsByParentHandle ( Int32 handle ) : List
IsValidLayerName ( Int32 layerHandle, String newName ) : System.Boolean
IsValidLayerName ( OutlinerLayer editingLayer, String newName ) : System.Boolean
IsValidMaterialName ( Int32 materialHandle, String newName ) : System.Boolean
IsValidMaterialName ( OutlinerMaterial editingMaterial, String newName ) : System.Boolean
OutlinerScene ( ) : System
RemoveLayer ( OutlinerLayer layer ) : void
RemoveMaterial ( OutlinerMaterial mat ) : void
RemoveNode ( OutlinerNode node ) : void
RemoveObject ( OutlinerObject obj ) : void
SetLayerParentHandle ( OutlinerLayer layer, Int32 newParentHandle ) : void
SetObjectLayerHandle ( OutlinerObject obj, Int32 newLayerHandle ) : void
SetObjectMaterialHandle ( OutlinerObject obj, Int32 newMaterialHandle ) : void
SetObjectParentHandle ( OutlinerObject obj, Int32 newParentHandle ) : void

Private Methods

Method Description
CanAddObject ( OutlinerObject obj ) : System.Boolean
addHandleToListInDict ( Int32 handle, Dictionary dict, Int32 listHandle ) : void
getNodesFromDict ( Dictionary dict, Int32 listHandle, getNodeFn nodeFn ) : List
getNodesFromDictCount ( Dictionary dict, Int32 listHandle ) : Int32
removeHandleFromListInDict ( Int32 handle, Dictionary dict, Int32 listHandle ) : void

Method Details

AddLayer() public method

public AddLayer ( Int32 handle, Int32 parentHandle, String name, System.Boolean isActive, System.Boolean isHidden, System.Boolean isFrozen, System.Boolean boxMode ) : void
handle System.Int32
parentHandle System.Int32
name String
isActive System.Boolean
isHidden System.Boolean
isFrozen System.Boolean
boxMode System.Boolean
return void

AddLayer() public method

public AddLayer ( OutlinerLayer layer ) : void
layer OutlinerLayer
return void

AddMaterial() public method

public AddMaterial ( Int32 handle, Int32 parentHandle, String name, String type ) : void
handle System.Int32
parentHandle System.Int32
name String
type String
return void

AddMaterial() public method

public AddMaterial ( OutlinerMaterial mat ) : void
mat OutlinerMaterial
return void

AddObject() public method

public AddObject ( Int32 handle, Int32 parentHandle, Int32 layerHandle, Int32 materialHandle, String name, String objClass, String objSuperClass, System.Boolean isGroupHead, System.Boolean isGroupMember, System.Boolean isHidden, System.Boolean isFrozen, System.Boolean boxMode ) : void
handle System.Int32
parentHandle System.Int32
layerHandle System.Int32
materialHandle System.Int32
name String
objClass String
objSuperClass String
isGroupHead System.Boolean
isGroupMember System.Boolean
isHidden System.Boolean
isFrozen System.Boolean
boxMode System.Boolean
return void

AddObject() public method

public AddObject ( OutlinerObject obj ) : void
obj OutlinerObject
return void

Clear() public method

public Clear ( ) : void
return void

ClearMaterials() public method

public ClearMaterials ( ) : void
return void

ContainsMaterial() public method

public ContainsMaterial ( Int32 materialHandle ) : System.Boolean
materialHandle System.Int32
return System.Boolean

GetLayerByHandle() public method

public GetLayerByHandle ( Int32 handle ) : OutlinerLayer
handle System.Int32
return OutlinerLayer

GetLayerChildNodesCount() public method

public GetLayerChildNodesCount ( Int32 layerHandle ) : Int32
layerHandle System.Int32
return System.Int32

GetLayersByParentHandle() public method

public GetLayersByParentHandle ( Int32 handle ) : List
handle System.Int32
return List

GetMaterialByHandle() public method

public GetMaterialByHandle ( Int32 handle ) : OutlinerMaterial
handle System.Int32
return OutlinerMaterial

GetMaterialChildNodesCount() public method

public GetMaterialChildNodesCount ( Int32 materialHandle ) : Int32
materialHandle System.Int32
return System.Int32

GetMaterialsByParentHandle() public method

public GetMaterialsByParentHandle ( Int32 handle ) : List
handle System.Int32
return List

GetNodeByHandle() public method

public GetNodeByHandle ( Int32 handle ) : OutlinerNode
handle System.Int32
return OutlinerNode

GetObjectByHandle() public method

public GetObjectByHandle ( Int32 handle ) : OutlinerObject
handle System.Int32
return OutlinerObject

GetObjectChildNodesCount() public method

public GetObjectChildNodesCount ( Int32 objectHandle ) : Int32
objectHandle System.Int32
return System.Int32

GetObjectsByLayerHandle() public method

public GetObjectsByLayerHandle ( Int32 handle ) : List
handle System.Int32
return List

GetObjectsByMaterialHandle() public method

public GetObjectsByMaterialHandle ( Int32 handle ) : List
handle System.Int32
return List

GetObjectsByParentHandle() public method

public GetObjectsByParentHandle ( Int32 handle ) : List
handle System.Int32
return List

IsValidLayerName() public method

public IsValidLayerName ( Int32 layerHandle, String newName ) : System.Boolean
layerHandle System.Int32
newName String
return System.Boolean

IsValidLayerName() public method

public IsValidLayerName ( OutlinerLayer editingLayer, String newName ) : System.Boolean
editingLayer OutlinerLayer
newName String
return System.Boolean

IsValidMaterialName() public method

public IsValidMaterialName ( Int32 materialHandle, String newName ) : System.Boolean
materialHandle System.Int32
newName String
return System.Boolean

IsValidMaterialName() public method

public IsValidMaterialName ( OutlinerMaterial editingMaterial, String newName ) : System.Boolean
editingMaterial OutlinerMaterial
newName String
return System.Boolean

OutlinerScene() public method

public OutlinerScene ( ) : System
return System

RemoveLayer() public method

public RemoveLayer ( OutlinerLayer layer ) : void
layer OutlinerLayer
return void

RemoveMaterial() public method

public RemoveMaterial ( OutlinerMaterial mat ) : void
mat OutlinerMaterial
return void

RemoveNode() public method

public RemoveNode ( OutlinerNode node ) : void
node OutlinerNode
return void

RemoveObject() public method

public RemoveObject ( OutlinerObject obj ) : void
obj OutlinerObject
return void

SetLayerParentHandle() public method

public SetLayerParentHandle ( OutlinerLayer layer, Int32 newParentHandle ) : void
layer OutlinerLayer
newParentHandle System.Int32
return void

SetObjectLayerHandle() public method

public SetObjectLayerHandle ( OutlinerObject obj, Int32 newLayerHandle ) : void
obj OutlinerObject
newLayerHandle System.Int32
return void

SetObjectMaterialHandle() public method

public SetObjectMaterialHandle ( OutlinerObject obj, Int32 newMaterialHandle ) : void
obj OutlinerObject
newMaterialHandle System.Int32
return void

SetObjectParentHandle() public method

public SetObjectParentHandle ( OutlinerObject obj, Int32 newParentHandle ) : void
obj OutlinerObject
newParentHandle System.Int32
return void

Property Details

layers protected property

protected Dictionary layers
return OutlinerLayer>.Dictionary

layers_by_parentHandle protected property

protected Dictionary> layers_by_parentHandle
return List>.Dictionary

materials protected property

protected Dictionary materials
return OutlinerMaterial>.Dictionary

materials_by_parentHandle protected property

protected Dictionary> materials_by_parentHandle
return List>.Dictionary

objectCounter protected property

protected Int32,System objectCounter
return System.Int32

objects protected property

protected Dictionary objects
return OutlinerObject>.Dictionary

objects_by_layerHandle protected property

protected Dictionary> objects_by_layerHandle
return List>.Dictionary

objects_by_materialHandle protected property

protected Dictionary> objects_by_materialHandle
return List>.Dictionary

objects_by_parentHandle protected property

protected Dictionary> objects_by_parentHandle
return List>.Dictionary