Structs.h
Go to the documentation of this file.
1// *****************************************************************
2// Filename: Structs.h
3// Copyright: Kai Welke, Chair Prof. Dillmann (IAIM),
4// Institute for Computer Science and Engineering (CSE),
5// University of Karlsruhe. All rights reserved.
6// Author: Kai Welke
7// Date: 12.06.2007
8// *****************************************************************
9
10#pragma once
11
12#include <vector>
13
14#include <Eigen/Core>
15
16// *****************************************************************
17// structs
18// *****************************************************************
19
20// sphere coordinates with the following convention:
21// phi: rotation from positive z-axis (pointing up) to the vector (p-o) (around the rotated y-axis)
22// theta: rotation from the positive x-axis to the projection of the point in xy plane (around z-axis)
24{
25 float fDistance;
26 float fPhi; // zenith
27 float fTheta; // azimuth
28};
29
30// transformation from one sphere to another
31// both spheres wiht same radius
32// psi: orientation of the view = rotation around the rotated (by spherical coords) x-axis
34{
36 float fPsi; // orientation
37};
38
39// transformation from one sphere to another
40// both spheres wiht same radius
41// fAlpha: rotation around the z axis in counterclockwise direction considering the positive z-axis
42// fBeta: rotation around the rotated y axis in counterclockwise direction considering the positive y-axis
44{
45 float fAlpha;
46 float fBeta;
47 Eigen::Vector3d betaAxis;
48 float fPsi;
49 Eigen::Vector3d psiAxis;
50};
51
52// *****************************************************************
53// structs
54// *****************************************************************
62
63using TPath = std::vector<TPathElement>;
64
66{
67 int nID;
69 // path look-a-like rating
70 float fRating;
71 // visual similarity of last comparison
73 // overall visual similarity
75 // overall rating
79};
std::vector< TPathElement > TPath
Definition Structs.h:63
float fRating
Definition Structs.h:70
TTransform Transform
Definition Structs.h:77
bool bValidTransform
Definition Structs.h:78
float fSimilarity
Definition Structs.h:72
float fOverallRating
Definition Structs.h:76
float fAccSimilarity
Definition Structs.h:74
TPath Path
Definition Structs.h:68
float fBestSimilarity
Definition Structs.h:60
int nNodeIndex
Definition Structs.h:58
TSphereCoord Position
Definition Structs.h:57
float fDistance
Definition Structs.h:25
float fTheta
Definition Structs.h:27
float fPhi
Definition Structs.h:26
TSphereCoord fPosition
Definition Structs.h:35
float fBeta
Definition Structs.h:46
Eigen::Vector3d psiAxis
Definition Structs.h:49
float fAlpha
Definition Structs.h:45
float fPsi
Definition Structs.h:48
Eigen::Vector3d betaAxis
Definition Structs.h:47