Class vdLights
- Namespace
- VectorDraw.Professional.vdCollections
- Assembly
- VectorDraw.Professional.dll
Represents a collection of vdLight objects and a single default global light.
They are used to illuminate the scene and affect the appearance of objects during 3d rendering.
public sealed class vdLights : vdBaseObject, IDisposable, IVDSerialise, IEnumerable, IBaseObject
- Inheritance
-
vdLights
- Implements
- Inherited Members
Constructors
- vdLights()
Initializes the vdLights collection object.
- vdLights(vdDocument)
Initializes a new instance of the vdLights object and registers it to the passed Document.
Properties
- Count
Get the item's count of the collection.
- Default
Get the default global vdLight object existing to the collection.
- this[int]
Get a vdLight object from the collection at a specified index.
- ItemType
Returns the Type of Items in the collection
- Last
Returns the last item in the collection.
Methods
- Add(object)
Adds an object to the end of the collection.
- Add(string)
Creates and adds a vdLight object to the collection with the specified name.
- AddItem(object)
Adds an object to the collection.
- AddItem(vdLight)
Adds a vdLight object to the collection.
- ChangeOrder(vdLight, bool)
Changes the position of a vdLight object to the front or the end of the collection.
- ClearIndexDictionary()
Clears the Index of the Dictionary. Internally used to speed up Swap method.
- DeSerialize(DeSerializer, string, object)
This Function is called foreach field name of the vdLghts object when opening in vdml format.
- Draw(vdRender)
Draw the Default and all vdLight items in the collection if thier Enable property is true.
- FindItem(object)
Checks if an object exists in the collection.
- FindItem(vdLight)
Checks if an object exists in the collection.
- FindName(string)
Finds a vdLight object with the specified name in the collection.
- GetEnumerator()
Implements the "foreach" expression for the collection.
- GetNotDeletedItems()
Get all non deleted objects of the collection.
- GetObjectRealPosition(object)
Find the index where a specified object is located in the list.
- InitDefaults(vdDocument)
Sets the document parameter to be the document of the collection.
- InsertAt(int, object)
Insert an object at a specified index.
- InsertAt(int, vdLight)
Insert a vdLight object to a specified index of the collection.
- InternalSetOwner(vdBaseObject)
Internally used only.
Set the object owner
- MakeIndexDictionary()
Creates an Index of the Dictionary. Internally used to speed up Swap method.
- RemoveAll()
Removes all objects from the collection.
- RemoveAt(int)
Removes an object from the specified index of the collection.
- RemoveItem(object)
Removes an object from the collection.
- RemoveItem(vdLight)
Removes a specific vdLight object from the collection.
- Serialize(Serializer)
This Function is called when saving the vdLights object to vdml format.
- ToString()
Gets a System.String that represents the count of the vdLights collection Object.
- getUniqueTableName(string)
Creates a unique string for use as name to an item of this collection.
- swap(vdLight, vdLight)
Swaps the position between two different vdLight objects existing in the collection.