mattercontrol/SlicerConfiguration/CuraEngineInfo.cs

44 lines
1.2 KiB
C#
Raw Normal View History

2015-04-08 15:20:10 -07:00
using MatterHackers.MatterControl.DataStorage;
using System.IO;
namespace MatterHackers.MatterControl.SlicerConfiguration
{
public class CuraEngineInfo : SliceEngineInfo
{
public CuraEngineInfo()
2015-04-08 15:20:10 -07:00
: base("CuraEngine")
{
}
2015-04-08 15:20:10 -07:00
public override ActivePrinterProfile.SlicingEngineTypes GetSliceEngineType()
{
return ActivePrinterProfile.SlicingEngineTypes.CuraEngine;
}
2015-04-08 15:20:10 -07:00
protected override string getWindowsPath()
{
string curaEngineRelativePath = Path.Combine("..", "CuraEngine.exe");
if (!File.Exists(curaEngineRelativePath))
{
curaEngineRelativePath = Path.Combine(".", "CuraEngine.exe");
}
return Path.GetFullPath(curaEngineRelativePath);
}
2015-04-08 15:20:10 -07:00
protected override string getMacPath()
{
string applicationPath = Path.Combine(ApplicationDataStorage.Instance.ApplicationPath, "CuraEngine");
return applicationPath;
}
2015-04-08 15:20:10 -07:00
protected override string getLinuxPath()
{
string curaEngineRelativePath = Path.Combine("..", "CuraEngine.exe");
if (!File.Exists(curaEngineRelativePath))
{
curaEngineRelativePath = Path.Combine(".", "CuraEngine.exe");
}
return Path.GetFullPath(curaEngineRelativePath);
}
}
2015-04-08 15:20:10 -07:00
}