Class ProductHandler
Namespace: Aurigma.DesignAtoms.Model
Assembly: Aurigma.DesignAtoms.dll
Syntax
public class ProductHandler : IProductHandler
Inheritance: System.Object -> ProductHandler
Implements
Inherited Members
System.Object.ToStringSystem.Object.Equals(System.Object)System.Object.Equals(System.Object,System.Object)System.Object.ReferenceEquals(System.Object,System.Object)System.Object.GetHashCodeSystem.Object.GetTypeSystem.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
| Type | Name | Description |
|---|---|---|
| Aurigma.DesignAtoms.Model.Product | product |
Returns
System.Collections.Generic.IEnumerable<System.Drawing.RectangleF>
CacheSurfaces
public void CacheSurfaces(Product product, RenderingConfig renderingConfig)
Parameters
| Type | Name | Description |
|---|---|---|
| Aurigma.DesignAtoms.Model.Product | product | |
| Aurigma.DesignAtoms.Configuration.RenderingConfig.RenderingConfig | renderingConfig |
GetCachedSurface
public Surface GetCachedSurface(Product product, RenderingConfig renderingConfig, int surfaceIndex)
Parameters
| Type | Name | Description |
|---|---|---|
| Aurigma.DesignAtoms.Model.Product | product | |
| Aurigma.DesignAtoms.Configuration.RenderingConfig.RenderingConfig | renderingConfig | |
System.Int32 | surfaceIndex |
Returns
Aurigma.DesignAtoms.Model.Surface
GetInitialSurfaceCacheId
public string GetInitialSurfaceCacheId(Surface surface, RenderingConfig.ProofImageRendering proofRendering)
Parameters
| Type | Name | Description |
|---|---|---|
| Aurigma.DesignAtoms.Model.Surface | surface | |
| Aurigma.DesignAtoms.Configuration.RenderingConfig.RenderingConfig.ProofImageRendering | proofRendering |
Returns
System.String
GetProductFonts
public IEnumerable<string> GetProductFonts(Product product)
Parameters
| Type | Name | Description |
|---|---|---|
| Aurigma.DesignAtoms.Model.Product | product |
Returns
System.Collections.Generic.IEnumerable<System.String>
GetProductFontsExtended
public IEnumerable<FontInfo> GetProductFontsExtended(Product product)
Parameters
| Type | Name | Description |
|---|---|---|
| Aurigma.DesignAtoms.Model.Product | product |
Returns
System.Collections.Generic.IEnumerable<Aurigma.GraphicsMill.AdvancedDrawing.FontInfo>
GetSurfaceFonts
public IEnumerable<string> GetSurfaceFonts(Surface surface)
Parameters
| Type | Name | Description |
|---|---|---|
| Aurigma.DesignAtoms.Model.Surface | surface |
Returns
System.Collections.Generic.IEnumerable<System.String>
GetSurfaceFontsExtended
public IEnumerable<FontInfo> GetSurfaceFontsExtended(Surface surface)
Parameters
| Type | Name | Description |
|---|---|---|
| Aurigma.DesignAtoms.Model.Surface | surface |
Returns
System.Collections.Generic.IEnumerable<Aurigma.GraphicsMill.AdvancedDrawing.FontInfo>
GetItemFonts
public IEnumerable<string> GetItemFonts(BaseTextItem item)
Parameters
| Type | Name | Description |
|---|---|---|
| Aurigma.DesignAtoms.Model.Items.BaseTextItem | item |
Returns
System.Collections.Generic.IEnumerable<System.String>
GetItemFontsExtended
public IEnumerable<FontInfo> GetItemFontsExtended(BaseTextItem item)
Parameters
| Type | Name | Description |
|---|---|---|
| Aurigma.DesignAtoms.Model.Items.BaseTextItem | item |
Returns
System.Collections.Generic.IEnumerable<Aurigma.GraphicsMill.AdvancedDrawing.FontInfo>
ApplyProductTheme
public Task ApplyProductTheme(Product product, ProductThemeConfig theme, RenderingConfig renderingConfig)
Parameters
| Type | Name | Description |
|---|---|---|
| Aurigma.DesignAtoms.Model.Product | product | |
| Aurigma.DesignAtoms.Configuration.ProductThemeConfig | theme | |
| Aurigma.DesignAtoms.Configuration.RenderingConfig.RenderingConfig | renderingConfig |
Returns
System.Threading.Tasks.Task
ApplyProductData
public Task ApplyProductData(Product product, ItemsData itemsData, VdpOptions options)
Parameters
| Type | Name | Description |
|---|---|---|
| Aurigma.DesignAtoms.Model.Product | product | |
| Aurigma.DesignAtoms.Model.ItemsData | itemsData | |
| Aurigma.DesignAtoms.Model.VdpOptions | options |
Returns
System.Threading.Tasks.Task
ApplyContainerSettings
public Product ApplyContainerSettings(Product product, Dictionary<string, ContainerProperties> containerSettings)
Parameters
| Type | Name | Description |
|---|---|---|
| Aurigma.DesignAtoms.Model.Product | product | |
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
| Type | Name | Description |
|---|---|---|
| Aurigma.DesignAtoms.Model.Product | product | |
System.Boolean | isForceLegacyTextRenderingRequired |
ApplyPlaceholdersDataToItems
public void ApplyPlaceholdersDataToItems(IEnumerable<BaseItem> productAllItems, Dictionary<string, string> itemsDataPlaceholders)
Parameters
| Type | Name | Description |
|---|---|---|
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
| Type | Name | Description |
|---|---|---|
| Aurigma.DesignAtoms.Model.Items.BaseTextItem | textItem |
Returns
System.String
ShowStubContent
public static void ShowStubContent(Surface surface)
Parameters
| Type | Name | Description |
|---|---|---|
| Aurigma.DesignAtoms.Model.Surface | surface |
RemoveEmptyInterpolationPlaceholders
public static void RemoveEmptyInterpolationPlaceholders(Surface surface)
Parameters
| Type | Name | Description |
|---|---|---|
| Aurigma.DesignAtoms.Model.Surface | surface |
RemoveEmptyInterpolationPlaceholders
public static Product RemoveEmptyInterpolationPlaceholders(Product product)
Parameters
| Type | Name | Description |
|---|---|---|
| Aurigma.DesignAtoms.Model.Product | product |
Returns
Aurigma.DesignAtoms.Model.Product
RemoveInStringPlaceholderHints
public static void RemoveInStringPlaceholderHints(Surface surface)
Parameters
| Type | Name | Description |
|---|---|---|
| Aurigma.DesignAtoms.Model.Surface | surface |
FillEmptyInStringPlaceholdersWithHints
public static void FillEmptyInStringPlaceholdersWithHints(Surface surface)
Parameters
| Type | Name | Description |
|---|---|---|
| Aurigma.DesignAtoms.Model.Surface | surface |
RemoveInStringPlaceholderHints
public static void RemoveInStringPlaceholderHints(Product product)
Parameters
| Type | Name | Description |
|---|---|---|
| Aurigma.DesignAtoms.Model.Product | product |
FillEmptyInStringPlaceholdersWithHints
public static void FillEmptyInStringPlaceholdersWithHints(Product product)
Parameters
| Type | Name | Description |
|---|---|---|
| Aurigma.DesignAtoms.Model.Product | product |
ApplyItemsDataToItems
public Task ApplyItemsDataToItems(IEnumerable<BaseItem> items, IDictionary<string, ItemData> itemsData)
Parameters
| Type | Name | Description |
|---|---|---|
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