Skip to main content

Class ProductHandler

Namespace: Aurigma.DesignAtoms.Model​
Assembly: Aurigma.DesignAtoms.dll​
Syntax
public class ProductHandler : IProductHandler

Inheritance: System.Object -> ProductHandler

Implements​

Inherited Members​

  • System.Object.ToString
  • System.Object.Equals(System.Object)
  • System.Object.Equals(System.Object,System.Object)
  • System.Object.ReferenceEquals(System.Object,System.Object)
  • System.Object.GetHashCode
  • System.Object.GetType
  • System.Object.MemberwiseClone

Constructors​

ProductHandler​

public ProductHandler(IMergeUtil mergeUtil, IItemHandlerFactory itemHandlerFactory, IItemsDataValidator itemsDataValidator, IMd5Util md5Util, ISurfaceHandler surfaceHandler, IFontService fontService, ItemDataHandler.Factory itemDataHandlerFactory, IStateResourcesLoader stateResourcesLoader, ITemplateStorage templateStorage, IBoundingPathCalculationService boundingPathCalculationService)

Methods​

GetBoundsData​

public IEnumerable<RectangleF> GetBoundsData(Product product)
Parameters​
TypeNameDescription
Aurigma.DesignAtoms.Model.Productproduct
Returns​

System.Collections.Generic.IEnumerable<System.Drawing.RectangleF>

CacheSurfaces​

public void CacheSurfaces(Product product, RenderingConfig renderingConfig)
Parameters​
TypeNameDescription
Aurigma.DesignAtoms.Model.Productproduct
Aurigma.DesignAtoms.Configuration.RenderingConfig.RenderingConfigrenderingConfig

GetCachedSurface​

public Surface GetCachedSurface(Product product, RenderingConfig renderingConfig, int surfaceIndex)
Parameters​
TypeNameDescription
Aurigma.DesignAtoms.Model.Productproduct
Aurigma.DesignAtoms.Configuration.RenderingConfig.RenderingConfigrenderingConfig
System.Int32surfaceIndex
Returns​

Aurigma.DesignAtoms.Model.Surface

GetInitialSurfaceCacheId​

public string GetInitialSurfaceCacheId(Surface surface, RenderingConfig.ProofImageRendering proofRendering)
Parameters​
TypeNameDescription
Aurigma.DesignAtoms.Model.Surfacesurface
Aurigma.DesignAtoms.Configuration.RenderingConfig.RenderingConfig.ProofImageRenderingproofRendering
Returns​

System.String

GetProductFonts​

public IEnumerable<string> GetProductFonts(Product product)
Parameters​
TypeNameDescription
Aurigma.DesignAtoms.Model.Productproduct
Returns​

System.Collections.Generic.IEnumerable<System.String>

GetProductFontsExtended​

public IEnumerable<FontInfo> GetProductFontsExtended(Product product)
Parameters​
TypeNameDescription
Aurigma.DesignAtoms.Model.Productproduct
Returns​

System.Collections.Generic.IEnumerable<Aurigma.GraphicsMill.AdvancedDrawing.FontInfo>

GetSurfaceFonts​

public IEnumerable<string> GetSurfaceFonts(Surface surface)
Parameters​
TypeNameDescription
Aurigma.DesignAtoms.Model.Surfacesurface
Returns​

System.Collections.Generic.IEnumerable<System.String>

GetSurfaceFontsExtended​

public IEnumerable<FontInfo> GetSurfaceFontsExtended(Surface surface)
Parameters​
TypeNameDescription
Aurigma.DesignAtoms.Model.Surfacesurface
Returns​

System.Collections.Generic.IEnumerable<Aurigma.GraphicsMill.AdvancedDrawing.FontInfo>

GetItemFonts​

public IEnumerable<string> GetItemFonts(BaseTextItem item)
Parameters​
TypeNameDescription
Aurigma.DesignAtoms.Model.Items.BaseTextItemitem
Returns​

System.Collections.Generic.IEnumerable<System.String>

GetItemFontsExtended​

public IEnumerable<FontInfo> GetItemFontsExtended(BaseTextItem item)
Parameters​
TypeNameDescription
Aurigma.DesignAtoms.Model.Items.BaseTextItemitem
Returns​

System.Collections.Generic.IEnumerable<Aurigma.GraphicsMill.AdvancedDrawing.FontInfo>

ApplyProductTheme​

public Task ApplyProductTheme(Product product, ProductThemeConfig theme, RenderingConfig renderingConfig)
Parameters​
TypeNameDescription
Aurigma.DesignAtoms.Model.Productproduct
Aurigma.DesignAtoms.Configuration.ProductThemeConfigtheme
Aurigma.DesignAtoms.Configuration.RenderingConfig.RenderingConfigrenderingConfig
Returns​

System.Threading.Tasks.Task

ApplyProductData​

public Task ApplyProductData(Product product, ItemsData itemsData, VdpOptions options)
Parameters​
TypeNameDescription
Aurigma.DesignAtoms.Model.Productproduct
Aurigma.DesignAtoms.Model.ItemsDataitemsData
Aurigma.DesignAtoms.Model.VdpOptionsoptions
Returns​

System.Threading.Tasks.Task

ApplyContainerSettings​

public Product ApplyContainerSettings(Product product, Dictionary<string, ContainerProperties> containerSettings)
Parameters​
TypeNameDescription
Aurigma.DesignAtoms.Model.Productproduct
System.Collections.Generic.Dictionary<System.String,Aurigma.DesignAtoms.Model.ContainerProperties>containerSettings
Returns​

Aurigma.DesignAtoms.Model.Product

ApplyLayout​

public void ApplyLayout(Product product, bool isForceLegacyTextRenderingRequired = false)
Parameters​
TypeNameDescription
Aurigma.DesignAtoms.Model.Productproduct
System.BooleanisForceLegacyTextRenderingRequired

ApplyPlaceholdersDataToItems​

public void ApplyPlaceholdersDataToItems(IEnumerable<BaseItem> productAllItems, Dictionary<string, string> itemsDataPlaceholders)
Parameters​
TypeNameDescription
System.Collections.Generic.IEnumerable<Aurigma.DesignAtoms.Model.Items.BaseItem>productAllItems
System.Collections.Generic.Dictionary<System.String,System.String>itemsDataPlaceholders

ReplaceInStringPlaceholdersValueInText​

public static string ReplaceInStringPlaceholdersValueInText(BaseTextItem textItem)
Parameters​
TypeNameDescription
Aurigma.DesignAtoms.Model.Items.BaseTextItemtextItem
Returns​

System.String

ShowStubContent​

public static void ShowStubContent(Surface surface)
Parameters​
TypeNameDescription
Aurigma.DesignAtoms.Model.Surfacesurface

RemoveEmptyInterpolationPlaceholders​

public static void RemoveEmptyInterpolationPlaceholders(Surface surface)
Parameters​
TypeNameDescription
Aurigma.DesignAtoms.Model.Surfacesurface

RemoveEmptyInterpolationPlaceholders​

public static Product RemoveEmptyInterpolationPlaceholders(Product product)
Parameters​
TypeNameDescription
Aurigma.DesignAtoms.Model.Productproduct
Returns​

Aurigma.DesignAtoms.Model.Product

RemoveInStringPlaceholderHints​

public static void RemoveInStringPlaceholderHints(Surface surface)
Parameters​
TypeNameDescription
Aurigma.DesignAtoms.Model.Surfacesurface

FillEmptyInStringPlaceholdersWithHints​

public static void FillEmptyInStringPlaceholdersWithHints(Surface surface)
Parameters​
TypeNameDescription
Aurigma.DesignAtoms.Model.Surfacesurface

RemoveInStringPlaceholderHints​

public static void RemoveInStringPlaceholderHints(Product product)
Parameters​
TypeNameDescription
Aurigma.DesignAtoms.Model.Productproduct

FillEmptyInStringPlaceholdersWithHints​

public static void FillEmptyInStringPlaceholdersWithHints(Product product)
Parameters​
TypeNameDescription
Aurigma.DesignAtoms.Model.Productproduct

ApplyItemsDataToItems​

public Task ApplyItemsDataToItems(IEnumerable<BaseItem> items, IDictionary<string, ItemData> itemsData)
Parameters​
TypeNameDescription
System.Collections.Generic.IEnumerable<Aurigma.DesignAtoms.Model.Items.BaseItem>items
System.Collections.Generic.IDictionary<System.String,Aurigma.DesignAtoms.Model.ItemData>itemsData
Returns​

System.Threading.Tasks.Task

Was this page helpful?