EntitySurrogate Class

Defines the base class for entity surrogates.
Public Class EntitySurrogate 
Inherits SurrogateWithReferenceId(Of Entity)
This language is not supported or no code example is available.
public class EntitySurrogate : SurrogateWithReferenceId<Entity>
This language is not supported or no code example is available.
Name Description
Public constructor EntitySurrogate(Entity) Standard constructor.
Top
Name Description
Public property Log Gets the list of errors and warnings generated during the serialization/deserialization processes. (inherited from Surrogate<T>).
Public property ReferenceId Gets the unique id assigned to the surrogate during the process of serialization/deserialization to handle object graph reference. (inherited from SurrogateWithReferenceId<T>).
Top
Methods
 
Name Description
Protected method AfterDeserialize(ProtoBuf.SerializationContext) Called after the object deserialization. (inherited from Surrogate<T>).
Protected method BeforeDeserialize(ProtoBuf.SerializationContext) Called before the object deserialization.
Protected method BeforeSerialize(ProtoBuf.SerializationContext) Called before the object serialization.
Protected method CheckSurrogateData(contentType, string) Integrity check according to the contentType.
Protected method ConvertToObject() Creates the entity related to the surrogate.
Protected method CopyDataFromObject(Entity)
Protected method CopyDataToObject(Entity)
Protected method CreateGhostEntity(string) Helper method to create a new Ghost entity.
Protected method CreateLinearPathOrGhostEntity(Point3D[], Type) Helper method to create a new LinearPath or a new Ghost entity.
Protected method CreateMeshOrGhostEntity(Point3D[], IndexTriangle[], Type) Helper method to create a new Mesh or a new Ghost entity.
Protected method CreatePointCloudOrGhostEntity(Point3D[], Type) Helper method to create a new PointCloud or a new Ghost entity.
Public method Equals(object) Determines whether the specified object is equal to the current object. (inherited from SurrogateWithReferenceId<T>).
Protected method Finalize Allows an object to try to free resources and perform other cleanup operations before it is reclaimed by garbage collection. (inherited from Object).
Public method GetHashCode() Serves as the default hash function. (inherited from SurrogateWithReferenceId<T>).
Public method GetType Gets the Type of the current instance. (inherited from Object).
Protected method MemberwiseClone Creates a shallow copy of the current Object. (inherited from Object).
Public method ToString Returns a string that represents the current object. (inherited from Object).
Protected method WriteLog(string) Writes a message into the log. (inherited from Surrogate<T>).
Top
Name Description
Operator Static Implicit Conversion (Entity to EntitySurrogate) Converts the object to the related surrogate during the serialization process.
Operator Static Implicit Conversion (EntitySurrogate to Entity) Converts the surrogate to the related object during the deserialization process.
Top
Fields
 
Name Description
Public field AutodeskProperties See Entity.AutodeskProperties.
Public field BoxMax See Entity.BoxMax
Public field BoxMin See Entity.BoxMin
Public field Color See Entity.Color.
Public field ColorMethod See Entity.ColorMethod.
Protected field DeserializationContent Gets or sets the contentType used for deserialization purpose only.
Public field EntityData The Entity.EntityData as ProtoObject.
Public field LayerName See Entity.LayerName.
Public field LineTypeMethod See Entity.LineTypeMethod.
Public field LineTypeName See Entity.LineTypeName.
Public field LineTypeScale See Entity.LineTypeScale.
Public field LineWeight See Entity.LineWeight.
Public field LineWeightMethod See Entity.LineWeightMethod.
Public field MaterialName See Entity.MaterialName.
Public field PrintOrder See Entity.PrintOrder
Public field Selectable See Entity.Selectable.
Public field Surrogate.Tag Gets or sets the file header tag (for deserialization purpose only). (inherited from Surrogate<T>).
Protected field Surrogate.Version Gets or sets the Eyeshot proprietary file format version. (inherited from Surrogate<T>).
Public field Type Gets the entity type for logging purpose (Not supported entity type, i.e. different Eyeshot editions).
Public field Visible See Entity.Visible.
Public field XData See AutodeskMiscProperties.XData.
Top
Remarks
 
This class is not declared as abstract to handle not supported entity.

.NET Framework

Supported in: 4.8

In this article

Definition