C# Class RhinoCyclesCore.Database.ObjectDatabase

Inheritance: IDisposable
Exibir arquivo Open project: mcneel/RhinoCycles Class Usage Examples

Public Methods

Method Description
AddDynamicObjectTransform ( CyclesObjectTransform cot ) : void

Add a new dynamic object transformation

AddMesh ( CyclesMesh me ) : void

Record CyclesMesh as new mesh data to commit to Cycles.

AddOrUpdateObject ( CyclesObject ob ) : void

Add an object change.

DeleteMesh ( System.Guid id ) : void

Record which object meshes to delete (hide)

DeleteObject ( CyclesObject ob ) : void

Add info to delete (hide) object from cycles

Dispose ( ) : void
FindMeshIdOnObjectId ( uint obid ) : int>.Tuple

Find meshid based on obid

FindMeshRelation ( int>.Tuple id ) : ccl.Mesh

Find all Cycles meshes for a Rhino object Guid

FindObjectRelation ( uint obid ) : ccl.Object

Find CclObjects based on obid. This will find all submeshes as well.

GetCyclesObjectsForGuid ( System.Guid id ) : List

Find all cycles objects for meshes that have meshid containing Guid id

HasChanges ( ) : bool

True if ChangeQueue recorded changes for objects or meshes.

RecordObjectIdMeshIdRelation ( uint obid, int>.Tuple meshid ) : void

record meshid for obid

RecordObjectMeshRelation ( int>.Tuple id, ccl.Mesh mid ) : void

Record to what Rhino object Guid a Cycles mesh belongs.

RecordObjectRelation ( uint obid, ccl.Object mid ) : void

Record Cycles objects that belong to one Rhino object.

ResetDynamicObjectTransformChangeQueue ( ) : void

Clear out the dynamic object transforms

ResetMeshChangeQueue ( ) : void

Clear out lists and dictionary related to mesh changes that need to be committed to Cycles.

ResetObjectsChangeQueue ( ) : void

Clear out the list of object changes that need to be committed to Cycles.

Method Details

AddDynamicObjectTransform() public method

Add a new dynamic object transformation
public AddDynamicObjectTransform ( CyclesObjectTransform cot ) : void
cot CyclesObjectTransform
return void

AddMesh() public method

Record CyclesMesh as new mesh data to commit to Cycles.
public AddMesh ( CyclesMesh me ) : void
me CyclesMesh
return void

AddOrUpdateObject() public method

Add an object change.
public AddOrUpdateObject ( CyclesObject ob ) : void
ob CyclesObject
return void

DeleteMesh() public method

Record which object meshes to delete (hide)
public DeleteMesh ( System.Guid id ) : void
id System.Guid Object id
return void

DeleteObject() public method

Add info to delete (hide) object from cycles
public DeleteObject ( CyclesObject ob ) : void
ob CyclesObject
return void

Dispose() public method

public Dispose ( ) : void
return void

FindMeshIdOnObjectId() public method

Find meshid based on obid
public FindMeshIdOnObjectId ( uint obid ) : int>.Tuple
obid uint
return int>.Tuple

FindMeshRelation() public method

Find all Cycles meshes for a Rhino object Guid
public FindMeshRelation ( int>.Tuple id ) : ccl.Mesh
id int>.Tuple
return ccl.Mesh

FindObjectRelation() public method

Find CclObjects based on obid. This will find all submeshes as well.
public FindObjectRelation ( uint obid ) : ccl.Object
obid uint
return ccl.Object

GetCyclesObjectsForGuid() public method

Find all cycles objects for meshes that have meshid containing Guid id
public GetCyclesObjectsForGuid ( System.Guid id ) : List
id System.Guid
return List

HasChanges() public method

True if ChangeQueue recorded changes for objects or meshes.
public HasChanges ( ) : bool
return bool

RecordObjectIdMeshIdRelation() public method

record meshid for obid
public RecordObjectIdMeshIdRelation ( uint obid, int>.Tuple meshid ) : void
obid uint
meshid int>.Tuple
return void

RecordObjectMeshRelation() public method

Record to what Rhino object Guid a Cycles mesh belongs.
public RecordObjectMeshRelation ( int>.Tuple id, ccl.Mesh mid ) : void
id int>.Tuple
mid ccl.Mesh
return void

RecordObjectRelation() public method

Record Cycles objects that belong to one Rhino object.
public RecordObjectRelation ( uint obid, ccl.Object mid ) : void
obid uint uint of Rhino Object
mid ccl.Object
return void

ResetDynamicObjectTransformChangeQueue() public method

Clear out the dynamic object transforms
public ResetDynamicObjectTransformChangeQueue ( ) : void
return void

ResetMeshChangeQueue() public method

Clear out lists and dictionary related to mesh changes that need to be committed to Cycles.
public ResetMeshChangeQueue ( ) : void
return void

ResetObjectsChangeQueue() public method

Clear out the list of object changes that need to be committed to Cycles.
public ResetObjectsChangeQueue ( ) : void
return void