VR-Forces 5.0.3 Developer's Guide
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Groups Pages
DtDummyCharacterIntersector.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 #include <vrvCore/DtIntersector.h>
13 
14 #include <vector>
15 
16 namespace makVrv
17 {
18  // Dummy intersector returns false for all picks.
19  // Required by DtSceneEventProcessor::pickIntoScene()
20  // for when there is no DiGuy plugin.
22  {
23  public:
24  DtDummyCharacterIntersector(DtDe& de) : DtIntersector(de,-1) {} // model set does not matter
26 
27  virtual bool findNearestIntersectionToPoint(double, double, double,
28  double, double, double, DtIntersectorResult&,
29  IntersectProperties = AllNodes, std::vector<DtElementID>* = 0,
30  bool = false, double = -1., bool = false) override
31  {
32  return false;
33  }
34 
35  virtual bool findAllIntersectionsThroughPoint(double, double, double,
36  double, double, double, DtIntersector::DtIntersections&,
37  IntersectProperties = AllNodes, std::vector<DtElementID>* = 0,
38  bool = true, bool = false) override
39  {
40  return false;
41  }
42 
43  virtual bool findFirstIntersectWithLineSegment(double, double, double,
44  double, double, double, DtIntersectorResult&,
45  IntersectProperties = AllNodes, std::vector<DtElementID>* = 0,
46  bool = false) override
47  {
48  return false;
49  }
50 
51  virtual bool findAllIntersectWithLineSegment(double, double, double,
52  double, double, double, DtIntersector::DtIntersections&,
53  IntersectProperties = AllNodes, std::vector<DtElementID>* = 0,
54  bool = true, bool = false) override
55  {
56  return false;
57  }
58 
59  virtual bool pick(DtChannel&, double, double, DtIntersectorResult&,
60  IntersectProperties = AllNodes, std::vector<DtElementID>* = 0) override
61  {
62  return false;
63  }
64 
65  virtual bool pickAll(DtChannel*, double, double, DtIntersector::DtIntersections&,
66  IntersectProperties = AllNodes, std::vector<DtElementID>* = 0) override
67  {
68  return false;
69  }
70  };
71 }
IntersectProperties
The IntersectProperties enum is a flag set that indicates the types of nodes to be considered for int...
Definition: DtIntersector.h:31
virtual bool findFirstIntersectWithLineSegment(double, double, double, double, double, double, DtIntersectorResult &, IntersectProperties=AllNodes, std::vector< DtElementID > *=0, bool=false) override
find first intersection along segment x,y,z to end_x, end_y, end_z. The useHighLod argument tells the...
Definition: DtDummyCharacterIntersector.h:43
DtIntersector is an abstract class that provides the interface for requesting intersections with the ...
Definition: DtIntersector.h:25
Descriptor for a single intersection result.
Definition: DtIntersectorResult.h:21
virtual bool findAllIntersectionsThroughPoint(double, double, double, double, double, double, DtIntersector::DtIntersections &, IntersectProperties=AllNodes, std::vector< DtElementID > *=0, bool=true, bool=false) override
Return a list of all intersections along the line passing through &lt;x,y,z&gt; and directed by &lt;vx...
Definition: DtDummyCharacterIntersector.h:35
std::vector< DtIntersectorResult > DtIntersections
A vector of DtIntersectionRecords.
Definition: DtIntersector.h:50
virtual bool findNearestIntersectionToPoint(double, double, double, double, double, double, DtIntersectorResult &, IntersectProperties=AllNodes, std::vector< DtElementID > *=0, bool=false, double=-1., bool=false) override
Find the nearest scene intersection from a point (x,y,z) along a vector(vx,vy,vz) The useHighLod argu...
Definition: DtDummyCharacterIntersector.h:27
Definition: DtDummyCharacterIntersector.h:21
DtDummyCharacterIntersector(DtDe &de)
Definition: DtDummyCharacterIntersector.h:24
The abstract Channel Class.
Definition: DtChannel.h:35
virtual bool pick(DtChannel &, double, double, DtIntersectorResult &, IntersectProperties=AllNodes, std::vector< DtElementID > *=0) override
Find the object (if any) under the mouse mx, my are in window coordinates; cx, cy, cz are returned in database coordinates.
Definition: DtDummyCharacterIntersector.h:59
Contains makVrv:DtIntersector class.
virtual ~DtDummyCharacterIntersector()
Definition: DtDummyCharacterIntersector.h:25
The DtDe is the core component of any VR-Vantage application. It owns a DtRenderer, DtDeCommunicator, as well as a DtDisplay and other things.
Definition: DtDe.h:70
virtual bool findAllIntersectWithLineSegment(double, double, double, double, double, double, DtIntersector::DtIntersections &, IntersectProperties=AllNodes, std::vector< DtElementID > *=0, bool=true, bool=false) override
find all intersections along segment x,y,z to end_x, end_y, end_z. The useHighLod argument tells the ...
Definition: DtDummyCharacterIntersector.h:51
Definition: DtIntersector.h:33
virtual bool pickAll(DtChannel *, double, double, DtIntersector::DtIntersections &, IntersectProperties=AllNodes, std::vector< DtElementID > *=0) override
Find all the objects (if any) under the mouse mx, my are in window coordinates.
Definition: DtDummyCharacterIntersector.h:65
Contains DLL export macros.

Document ID: Generated on Thu Jun 1 17:58:13 EDT 2023 from SVN revision 255404
Copyright © 2005-2021 MAK Technologies. All Rights Reserved (www.mak.com)