VR-Forces Developer's Guide
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Groups Pages
DtIntersectorResult.h
Go to the documentation of this file.
1 /******************************************************************************
2 ** Copyright (c) 2022 MAK Technologies, Inc.
3 ** All rights reserved.
4 ******************************************************************************/
5 
9 
10 #pragma once
11 #include <vrvCore/vrvCore.h>
12 
13 #include <vrvCore/DtUniqueID.h>
14 
15 #include <vector>
16 
17 namespace makVrv
18 {
22  {
23  public:
24  // For this purpose, a triangle is described as 9 doubles; x0, y0, z0,
25  // x1, x2, etc...
26  typedef std::vector<double> DtIntersectTriangle;
27 
28  public:
31 
34 
36  DtIntersectorResult& operator=(const DtIntersectorResult& orig);
37 
39  bool operator==(const DtIntersectorResult&) const;
40 
42  bool operator!=(const DtIntersectorResult& rhs) const
43  {
44  return !(*this == rhs);
45  }
46 
47  public:
48 
52 
54  double x;
55 
57  double y;
58 
60  double z;
61 
64  double normalX;
65 
68  double normalY;
69 
72  double normalZ;
73 
76 
80 
83 
86 
89  double startX;
90 
93  double startY;
94 
97  double startZ;
98 
101  double endX;
102 
105  double endY;
106 
109  double endZ;
110  };
111 
112 }
double normalX
The x coordinate of the vector normal to the point of intersection, if requested. ...
Definition: DtIntersectorResult.h:64
double endY
for debugging, the y coordinate of the line segment that was used to end the intersection ...
Definition: DtIntersectorResult.h:105
bool hasIntersectTriangle
Indicates whether or not the DtIntersectorResult contains intersected triangle data.
Definition: DtIntersectorResult.h:79
double normalZ
The z coordinate of the vector normal to the point of intersection, if requested. ...
Definition: DtIntersectorResult.h:72
Descriptor for a single intersection result.
Definition: DtIntersectorResult.h:21
DtIntersectTriangle isectTriangle
The triangle intersection, if requested.
Definition: DtIntersectorResult.h:82
double y
y coordinate, in database coordinates of the intersection
Definition: DtIntersectorResult.h:57
bool hasIntersect
Indicate whether this DtIntersectorResult object actually contains the result of an intersection...
Definition: DtIntersectorResult.h:51
double startY
for debugging, the y coordinate of the line segment that was used to start the intersection ...
Definition: DtIntersectorResult.h:93
double startX
for debugging, the x coordinate of the line segment that was used to start the intersection ...
Definition: DtIntersectorResult.h:89
DtUniqueID id
The elementID of the node intersected.
Definition: DtIntersectorResult.h:75
double z
z coordinate, in database coordinates of the intersection
Definition: DtIntersectorResult.h:60
double normalY
The y coordinate of the vector normal to the point of intersection, if requested. ...
Definition: DtIntersectorResult.h:68
#define DT_DLL_VRVCORE
Definition: vrvCore.h:20
unsigned long long DtUniqueID
Definition: DtUniqueID.h:19
bool operator==(const DtTextureAtlasIndexParser::StringOrFloatAttrib &lhs, const DtTextureAtlasIndexParser::StringOrFloatAttrib &rhs)
needed for search comparison code
Definition: DtTextureAtlasIndexParser.h:160
bool operator!=(const DtIntersectorResult &rhs) const
Inequality Operator.
Definition: DtIntersectorResult.h:42
Contains makVrv::DtUniqueID type.
double endZ
for debugging, the z coordinate of the line segment that was used to end the intersection ...
Definition: DtIntersectorResult.h:109
double x
x coordinate, in database coordinates of the intersection
Definition: DtIntersectorResult.h:54
std::vector< double > DtIntersectTriangle
Definition: DtIntersectorResult.h:26
double startZ
for debugging, the z coordinate of the line segment that was used to start the intersection ...
Definition: DtIntersectorResult.h:97
double endX
for debugging, the x coordinate of the line segment that was used to end the intersection ...
Definition: DtIntersectorResult.h:101
bool dynamicOcean
Indicates whether the intersection was with dynamic ocean, if in use.
Definition: DtIntersectorResult.h:85
Contains DLL export macros.

Document ID: Generated on Thu Oct 23 22:29:17 EDT 2025 from SVN revision 280951
Copyright © 2005-2024 MAK Technologies. All Rights Reserved (www.mak.com)