Scanframe Modular Application
0.1.0
Loading...
Searching...
No Matches
Nipscan.h
Go to the documentation of this file.
1
#pragma once
2
#include <
ktm/ToolInformation.h
>
3
#include <
ktm/global.h
>
4
#include <math/Types.h>
5
#include <misc/gen/TSet.h>
6
7
namespace
sf
8
{
9
10
// Returns true on success of translating a matrix value to manipulator coordinates.
11
// This function should be part of a scan mode but will be needed else where too.
12
enum
ETranslateOption
:
int
13
{
14
// Use the second solution for A and B axis if one is there.
15
toSECSOLUTION
,
16
// Toggle the second solution when the surface position is in line with the A-axis position.
17
toTOGGLESECSOL
,
18
// Do not calculate the A-axis from the surface.
19
toNOSURFACECALC
20
};
21
//
22
// Bitmap set of translation options.
23
typedef
TSet<ETranslateOption>
TTranslateOptions
;
24
//
25
bool
_KTM_FUNC
TranslateToNipscanCoords
(
26
const
Matrix44& surface,
// Matrix describing the surface.
27
const
ToolInformation
& tool,
// Description of the tool vector and beam angle.
28
double
beamlen,
// Length of the beam when it leaves the tool.
29
double
& x,
// Linear axis return value.
30
double
& y,
// Linear axis return value.
31
double
& z,
// Linear axis return value.
32
double
& a,
// Radial axis return value.
33
double
& b,
// Radial axis return value.
34
TTranslateOptions
options = {}
// Options for translation.
35
);
36
37
}
// namespace sf
ToolInformation.h
sf::ToolInformation
Holds the needed information on a tool to make calculations.
Definition
ToolInformation.h:13
global.h
_KTM_FUNC
#define _KTM_FUNC
Definition
ktm/global.h:34
sf
Definition
Application.h:10
sf::ETranslateOption
ETranslateOption
Definition
Nipscan.h:13
sf::toSECSOLUTION
@ toSECSOLUTION
Definition
Nipscan.h:15
sf::toNOSURFACECALC
@ toNOSURFACECALC
Definition
Nipscan.h:19
sf::toTOGGLESECSOL
@ toTOGGLESECSOL
Definition
Nipscan.h:17
sf::TTranslateOptions
TSet< ETranslateOption > TTranslateOptions
Definition
Nipscan.h:23
sf::TranslateToNipscanCoords
bool _KTM_FUNC TranslateToNipscanCoords(const Matrix44 &surface, const ToolInformation &tool, double beamlen, double &x, double &y, double &z, double &a, double &b, TTranslateOptions options={})
src
com
ktm
Nipscan.h
Generated by
1.9.8