... | ... | @@ -608,7 +608,7 @@ Paths created by IceSL (e.g., when producing Machine Code) support the following |
|
|
|
|
|
As 'IPath' is a pure virtual class, it is sometimes necessary to have an implementation of it when constructing a path. For this purpose, the plugin interface provides the class 'Path'.
|
|
|
|
|
|
The `ILayer`
|
|
|
The `ILayer` and `ILayerSet` are specified next:
|
|
|
|
|
|
```c++
|
|
|
namespace IceSLInterface
|
... | ... | @@ -679,4 +679,40 @@ public: |
|
|
) = 0;
|
|
|
};
|
|
|
}
|
|
|
```
|
|
|
|
|
|
```c++
|
|
|
namespace IceSLInterface
|
|
|
{
|
|
|
class ILayerSet
|
|
|
{
|
|
|
protected:
|
|
|
ILayerSet() = default;
|
|
|
|
|
|
public:
|
|
|
virtual ~ILayerSet() = default;
|
|
|
|
|
|
// Returns the number of layers in this print.
|
|
|
virtual int getNumLayers() const = 0;
|
|
|
|
|
|
// Returns the i-th layer of this print.
|
|
|
virtual const ILayer& getLayer(
|
|
|
int i // Layer index
|
|
|
) const = 0;
|
|
|
virtual ILayer& getLayer(
|
|
|
int i // Layer index
|
|
|
) = 0;
|
|
|
|
|
|
// Converts trajectory coordinates (integer) to build space coordinates.
|
|
|
virtual v2f xyBuildSpace(
|
|
|
ClipperLib::IntPoint // Trajectory coordinates
|
|
|
) const = 0;
|
|
|
|
|
|
/// \brief convert internal coordinates (integer) to world space coordinates
|
|
|
// Converts trajectory coordinates (integer) to world space coordinates.
|
|
|
virtual v2f xyWorldSpace(
|
|
|
ClipperLib::IntPoint // Trajectory coordinates
|
|
|
) const = 0;
|
|
|
};
|
|
|
}
|
|
|
``` |
|
|
\ No newline at end of file |