Beispiel #1
0
 /// <summary>
 /// Assigns a handle to the object based in a integer counter.
 /// </summary>
 /// <param name="entityNumber">Number to assign.</param>
 /// <returns>Next available entity number.</returns>
 /// <remarks>
 /// Some objects might consume more than one, is, for example, the case of polylines that will assign
 /// automatically a handle to its vertexes. The entity number will be converted to an hexadecimal number.
 /// </remarks>
 internal override long AsignHandle(long entityNumber)
 {
     entityNumber = endSequence.AsignHandle(entityNumber);
     foreach (Attribute attrib in attributes)
     {
         entityNumber = attrib.AsignHandle(entityNumber);
     }
     return(base.AsignHandle(entityNumber));
 }
Beispiel #2
0
        /// <summary>
        /// Assigns a handle to the object based in a integer counter.
        /// </summary>
        /// <param name="entityNumber">Number to assign.</param>
        /// <returns>Next available entity number.</returns>
        /// <remarks>
        /// Some objects might consume more than one, is, for example, the case of polylines that will assign
        /// automatically a handle to its vertexes. The entity number will be converted to an hexadecimal number.
        /// </remarks>
        internal override long AsignHandle(long entityNumber)
        {
            foreach (PolylineVertex v in vertexes)
            {
                entityNumber = v.AsignHandle(entityNumber);
            }
            entityNumber = endSequence.AsignHandle(entityNumber);

            return(base.AsignHandle(entityNumber));
        }
Beispiel #3
0
 /// <summary>
 /// Assigns a handle to the object based in a integer counter.
 /// </summary>
 /// <param name="entityNumber">Number to assign.</param>
 /// <returns>Next available entity number.</returns>
 /// <remarks>
 /// Some objects might consume more than one, is, for example, the case of polylines that will assign
 /// automatically a handle to its vertexes. The entity number will be converted to an hexadecimal number.
 /// </remarks>
 internal override long AsignHandle(long entityNumber)
 {
     entityNumber = endSequence.AsignHandle(entityNumber);
     foreach (PolyfaceMeshVertex v in vertexes)
     {
         entityNumber = v.AsignHandle(entityNumber);
     }
     foreach (PolyfaceMeshFace f in faces)
     {
         entityNumber = f.AsignHandle(entityNumber);
     }
     return(base.AsignHandle(entityNumber));
 }