VR-Forces 5.0.2 Developer's Guide
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Groups Pages
DtIntersectionCache.h
Go to the documentation of this file.
1 /******************************************************************************
2 ** Copyright (c) 2010 MAK Technologies, Inc.
3 ** All rights reserved.
4 ******************************************************************************/
5 
9 
10 #pragma once
11 #include <vrvCore/vrvCore.h>
12 #include <matrix/vlVector.h>
13 
14 namespace makVrv
15 {
16  class DtIntersectorResult;
17 
23  {
24  public:
26  virtual ~DtIntersectionCache();;
27 
29  virtual void setCacheFromIntersectionResult(const DtIntersectorResult& result ) = 0;
30 
33  virtual bool intersectWithCache( const DtVector& point, const DtVector& dir,
34  DtVector& hitPoint, DtVector& hitNormal ) = 0;
35 
36  protected:
37 
40  };
41 
46  {
47  public:
50 
52  virtual ~DtTriangleIntersectionCache();
53 
55  virtual void setCacheFromIntersectionResult(const DtIntersectorResult& result );
56 
60  virtual bool intersectWithCache( const DtVector& point, const DtVector& dir,
61  DtVector& hitPoint, DtVector& hitNormal );
62 
63  protected:
65  bool intersectRayTriangle( const DtVector& point, const DtVector& dir,
66  DtVector& hitPoint );
67 
68  protected:
69  bool myCacheSet;
74  };
75 
76 }
77 
DtVector myVert2
Definition: DtIntersectionCache.h:72
DtVector myVert1
Definition: DtIntersectionCache.h:71
Descriptor for a single intersection result.
Definition: DtIntersectorResult.h:21
bool myCacheSet
Definition: DtIntersectionCache.h:69
Realization of a DtIntersectionCache that caches a previous intersection with a triangle.
Definition: DtIntersectionCache.h:45
#define DT_DLL_VRVCORE
Definition: vrvCore.h:20
An abstract interface for managing cached intersection information and determining if the cache needs...
Definition: DtIntersectionCache.h:22
DtVector myNormal
Definition: DtIntersectionCache.h:73
DtVector myVert0
Definition: DtIntersectionCache.h:70
Contains DLL export macros.

Document ID: Generated on Sun Dec 4 20:22:03 EST 2022 from SVN revision 249613
Copyright © 2005-2021 MAK Technologies. All Rights Reserved (www.mak.com)