SBSDK 3.3.5
Polyga’s SB SDK is a set of programmable API’s that allow users to directly communicate and control any of Polyga’s 3D scanners using C++, C# or Command line.
SBEventHandler.h
Go to the documentation of this file.
1
10#pragma once
11
12#include "SBSDK_API.h"
13#include "SBTypes.h"
14namespace SBSDK3
15{
16 class SBScan;
17 class SBImage;
18 class SBMesh;
19 class ISBScanner;
26 {
27 public:
36 virtual void onScanCaptured(ISBScanner& scanner, SBScan outScan, SBMesh outMesh) = 0;
37 };
38
45 {
46 public:
47 virtual ~SBEventMessage() {}
48 };
55 {
56 public:
57 enum class SBInputEnums : int
58 {
59 INPUT1,
60 INPUT2,
61 INPUT3,
62
63 INPUT_END
64 };
65
67 };
75 {
76
77 };
85 {
86 public:
88 };
95 {
96 public:
102 virtual void onEventCalled(ISBScanner* scanner, SBEventEnums eventType, SBEventMessage* message) = 0;
103 };
104
105}
SBSDK API dll imports.
#define SBSDK_API
Definition: SBSDK_API.h:15
SBTypes Header File. Structure types and Class Enum types defining parameter options and device infor...
Interface with Scan Box Scanner instances.
Definition: ISBScanner.h:27
SBEventMessage derived class to implement event based behavior based on the scanner's events or statu...
Definition: SBEventHandler.h:75
SBEventMessage derived class to implement behavior based on an error message. Under development.
Definition: SBEventHandler.h:85
int errorCode
Definition: SBEventHandler.h:87
Parent to implement event based behavior using the GPIO ports of the scanner.
Definition: SBEventHandler.h:95
virtual void onEventCalled(ISBScanner *scanner, SBEventEnums eventType, SBEventMessage *message)=0
Override to define what happens once a given eventType has happened.
SBEventMessage base class.
Definition: SBEventHandler.h:45
virtual ~SBEventMessage()
Definition: SBEventHandler.h:47
SBEventMessage derived class to implement event based behavior using the GPIO ports of the scanner.
Definition: SBEventHandler.h:55
SBInputEnums input
Definition: SBEventHandler.h:66
SBInputEnums
Definition: SBEventHandler.h:58
Mesh Class Definition. SBMesh contains the information related to the vertices and vaces,...
Definition: SBData.h:342
Parent class to implement onScanCaptured callback function.
Definition: SBEventHandler.h:26
virtual void onScanCaptured(ISBScanner &scanner, SBScan outScan, SBMesh outMesh)=0
Override to define what happens once a Scan has been captured.
Class containing scan Images and accessing functions.
Definition: SBData.h:248
Definition: ISBScanner.h:20
SBEventEnums
Event Type.
Definition: SBTypes.h:171