/// <summary> /// Writes the information about the alignment entities. /// </summary> /// <param name="writer"></param> public void WriteInfo(IAlignmentEntityInfoWriter writer) { writer.WriteAlignmentName(_alignment.Name); foreach (AAlignmentEntity entity in _entities) { entity.WriteInfo(writer); } }
protected override void WriteCustomInfo(IAlignmentEntityInfoWriter writer) { writer.WriteCurveGroupName("Spiral - Spiral - Curve - Spiral - Spiral"); }
protected override void WriteCustomInfo(IAlignmentEntityInfoWriter writer) { writer.WriteCurveGroupName("Curve - Line - Curve"); }
private void writeCommonInfo(IAlignmentEntityInfoWriter writer) { writer.WriteEntityId(m_TheEntity.EntityId); writer.WriteWrappedEntityClassType(m_TheEntity.GetType()); writer.WriteSubEntityCount(m_TheEntity.SubEntityCount); }
/// <summary> /// This method must be implemented in derived classes to write /// the custom entity information. /// </summary> /// <param name="writer"></param> protected abstract void WriteCustomInfo( IAlignmentEntityInfoWriter writer);
/// <summary> /// Writes the alignment entity information to the specified writer. /// </summary> /// <param name="writer">Writer to which write the inforamtion.</param> public void WriteInfo(IAlignmentEntityInfoWriter writer) { writeCommonInfo(writer); WriteCustomInfo(writer); writer.EntityInfoDone(); }