ObjectDefinitions.h
Go to the documentation of this file.
1 // ****************************************************************************
2 // This file is part of the Integrating Vision Toolkit (IVT).
3 //
4 // The IVT is maintained by the Karlsruhe Institute of Technology (KIT)
5 // (www.kit.edu) in cooperation with the company Keyetech (www.keyetech.de).
6 //
7 // Copyright (C) 2014 Karlsruhe Institute of Technology (KIT).
8 // All rights reserved.
9 //
10 // Redistribution and use in source and binary forms, with or without
11 // modification, are permitted provided that the following conditions are met:
12 //
13 // 1. Redistributions of source code must retain the above copyright
14 // notice, this list of conditions and the following disclaimer.
15 //
16 // 2. Redistributions in binary form must reproduce the above copyright
17 // notice, this list of conditions and the following disclaimer in the
18 // documentation and/or other materials provided with the distribution.
19 //
20 // 3. Neither the name of the KIT nor the names of its contributors may be
21 // used to endorse or promote products derived from this software
22 // without specific prior written permission.
23 //
24 // THIS SOFTWARE IS PROVIDED BY THE KIT AND CONTRIBUTORS “AS IS” AND ANY
25 // EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED
26 // WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE
27 // DISCLAIMED. IN NO EVENT SHALL THE KIT OR CONTRIBUTORS BE LIABLE FOR ANY
28 // DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES
29 // (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES;
30 // LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND
31 // ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
32 // (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF
33 // THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
34 // ****************************************************************************
35 // ****************************************************************************
36 // Filename: ObjectDefinitions.h
37 // Author: Pedram Azad
38 // Date: 2005
39 // ****************************************************************************
40 
41 
42 #ifndef _OBJECT_DEFINITIONS_H_
43 #define _OBJECT_DEFINITIONS_H_
44 
45 
46 // ****************************************************************************
47 // Necessary includes
48 // ****************************************************************************
49 
51 #include "Structs/Structs.h"
52 #include "Math/Math3d.h"
53 
54 #include <string>
55 
56 
57 
58 // ****************************************************************************
59 // Enums
60 // ****************************************************************************
61 
63 {
84 };
85 
87 {
94 };
95 
96 
97 // ****************************************************************************
98 // Structs
99 // ****************************************************************************
100 
102 {
104  {
105  id = -1;
107  color = eNone;
108  data = 0;
109  reserved = 0;
110  }
111 
113  {
114  id = entry.id;
115  region = entry.region;
116  type = entry.type;
117  color = entry.color;
118  sName = "";
119  sName += entry.sName;
120  data = entry.data;
121  reserved = entry.reserved;
122  }
123 
124  int id; // unique id
129  void *data;
130  int reserved;
131 };
132 
134 {
136  {
137  region_id_left = -1;
138  region_id_right = -1;
140  color = eNone;
141  data = 0;
142  class_id = -1;
143  quality = 0.0f;
144  quality2 = 0.0f;
145  localizationValid = false;
146 
147  Math3d::SetVec(world_point, Math3d::zero_vec);
148  Math3d::SetVec(orientation, Math3d::zero_vec);
149  Math3d::SetVec(pose.translation, Math3d::zero_vec);
150  Math3d::SetMat(pose.rotation, Math3d::unit_mat);
151  }
152 
154  {
155  region_left = entry.region_left;
156  region_right = entry.region_right;
157  region_id_left = entry.region_id_left;
158  region_id_right = entry.region_id_right;
159  type = entry.type;
160  color = entry.color;
161  Math3d::SetTransformation(pose, entry.pose);
162  Math3d::SetVec(world_point, entry.world_point);
163  Math3d::SetVec(orientation, entry.orientation);
164  sName = "";
165  sName += entry.sName;
166  sOivFilePath = "";
167  sOivFilePath += entry.sOivFilePath;
168  data = entry.data;
169  class_id = entry.class_id;
170  quality = entry.quality;
171  quality2 = entry.quality2;
172  localizationValid = entry.localizationValid;
173  }
174 
175  MyRegion region_left, region_right;
176  int region_id_left, region_id_right;
184  void *data;
185  int class_id;
186  float quality, quality2;
188 };
189 
190 // ****************************************************************************
191 // Typedefs
192 // ****************************************************************************
193 
194 typedef std::vector<Object2DEntry> Object2DList;
195 typedef std::vector<Object3DEntry> Object3DList;
198 
199 
200 
201 #endif /* _OBJECT_DEFINITIONS_H_ */
void SetTransformation(Transformation3d &transformation, const Vec3d &rotation, const Vec3d &translation)
Definition: Math3d.cpp:732
CDynamicArrayTemplate< Object3DEntry > CObject3DArray
ObjectColor color
Object2DEntry(const Object2DEntry &entry)
Data structure for the representation of a 3D vector.
Definition: Math3d.h:73
ObjectColor color
GLuint GLuint GLsizei GLenum type
Definition: glext.h:3121
Transformation3d pose
std::string sName
const Vec3d zero_vec
Definition: Math3d.cpp:59
void SetVec(Vec3d &vec, float x, float y, float z)
Definition: Math3d.cpp:243
GLsizei GLsizei GLenum GLenum const GLvoid * data
Definition: glext.h:3129
GLsizei const GLchar ** string
Definition: glext.h:3528
std::vector< Object2DEntry > Object2DList
Object3DEntry(const Object3DEntry &entry)
const Mat3d unit_mat
Definition: Math3d.cpp:60
CDynamicArrayTemplate< Object2DEntry > CObject2DArray
std::string sOivFilePath
void SetMat(Mat3d &matrix, float r1, float r2, float r3, float r4, float r5, float r6, float r7, float r8, float r9)
Definition: Math3d.cpp:257
ObjectType
std::vector< Object3DEntry > Object3DList
Data structure for the representation of a 3D rigid body transformation.
Definition: Math3d.h:105
ObjectColor
std::string sName


asr_ivt
Author(s): Allgeyer Tobias, Hutmacher Robin, Kleinert Daniel, Meißner Pascal, Scholz Jonas, Stöckle Patrick
autogenerated on Mon Dec 2 2019 03:47:28