MyScript Interactive Ink SDK  3.0.1
IStroker.h
1 // Copyright @ MyScript. All rights reserved.
2 
3 #pragma once
4 
5 #include <iink/graphics/IPath.h>
6 
7 #include <cstdint>
8 #include <vector>
9 #include <memory>
10 
11 namespace myscript {
12 namespace iink {
13 namespace graphics {
14 
18 struct InkPoint
19 {
20  float x;
21  float y;
22  int64_t t;
23  float f;
24 };
25 
30 class IStroker
31 {
32 public:
33 
34  virtual ~IStroker() = default;
35 
41  virtual bool isFill() const noexcept = 0;
42 
51  virtual void stroke(const std::vector<InkPoint>& input, float width, float pixelSize, std::shared_ptr<IPath> output) noexcept = 0;
52 
53 };
54 
55 }
56 }
57 }
Definition: IPath.h:29
Definition: IStroker.h:31
virtual void stroke(const std::vector< InkPoint > &input, float width, float pixelSize, std::shared_ptr< IPath > output) noexcept=0
virtual bool isFill() const noexcept=0
Definition: Configuration.h:11
Definition: IStroker.h:19
float y
Definition: IStroker.h:21
float x
Definition: IStroker.h:20
float f
Definition: IStroker.h:23
int64_t t
Definition: IStroker.h:22