C# Class RhinoCyclesCore.Database.ObjectShaderDatabase

Inheritance: IDisposable
Datei anzeigen Open project: mcneel/RhinoCycles Class Usage Examples

Public Methods

Method Description
Dispose ( ) : void
FindRenderHashForMeshId ( int>.Tuple meshId ) : uint

Find Rhino material RenderHash for mesh.

FindRenderHashForObjectId ( uint objectid ) : uint

Find renderhash used by object id (meshinstanceid)

ObjectShaderDatabase ( ObjectDatabase objects ) : System

Construct a ObjectShaderDatabase that has access to objects.

RecordRenderHashRelation ( uint hash, int>.Tuple meshId, uint meshInstanceId ) : void

Record meshid and meshinstanceid (object id) for renderhash.

ReplaceShaderRelation ( uint oldShader, uint newShader, uint oid ) : void

Update shader object relation so oid uses new shader

Private Methods

Method Description
RecordRenderHashMeshId ( uint hash, int>.Tuple meshId ) : void

record relationship for renderhash -- meshid (tuple of guid and int)

RecordRenderHashMeshInstanceId ( uint hash, uint meshInstanceId ) : void

Record relationship for renderhash -- meshinstanceid (object id)

RemoveRenderHashMeshInstanceId ( uint hash, uint meshInstanceId ) : void

Remove renderhash--meshinstanceid

Method Details

Dispose() public method

public Dispose ( ) : void
return void

FindRenderHashForMeshId() public method

Find Rhino material RenderHash for mesh.
public FindRenderHashForMeshId ( int>.Tuple meshId ) : uint
meshId int>.Tuple
return uint

FindRenderHashForObjectId() public method

Find renderhash used by object id (meshinstanceid)
public FindRenderHashForObjectId ( uint objectid ) : uint
objectid uint
return uint

ObjectShaderDatabase() public method

Construct a ObjectShaderDatabase that has access to objects.
public ObjectShaderDatabase ( ObjectDatabase objects ) : System
objects ObjectDatabase
return System

RecordRenderHashRelation() public method

Record meshid and meshinstanceid (object id) for renderhash.
public RecordRenderHashRelation ( uint hash, int>.Tuple meshId, uint meshInstanceId ) : void
hash uint
meshId int>.Tuple
meshInstanceId uint
return void

ReplaceShaderRelation() public method

Update shader object relation so oid uses new shader
public ReplaceShaderRelation ( uint oldShader, uint newShader, uint oid ) : void
oldShader uint old shader renderhash
newShader uint new shader renderhash
oid uint object id (meshinstanceid)
return void