VR-Forces 4.8 Class Documentation
 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 /******************************************************************************
6 ** $RCSfile: $ $Revision: $ $State: $
7 ******************************************************************************/
8 
12 
13 #pragma once
14 #include <vrvCore/vrvCore.h>
15 #include <matrix/vlVector.h>
16 
17 namespace makVrv
18 {
19  class DtIntersectorResult;
20 
26  {
27  public:
29  virtual ~DtIntersectionCache();;
30 
32  virtual void setCacheFromIntersectionResult(const DtIntersectorResult& result ) = 0;
33 
36  virtual bool intersectWithCache( const DtVector& point, const DtVector& dir,
37  DtVector& hitPoint, DtVector& hitNormal ) = 0;
38 
39  protected:
40 
43  };
44 
49  {
50  public:
53 
55  virtual ~DtTriangleIntersectionCache();
56 
58  virtual void setCacheFromIntersectionResult(const DtIntersectorResult& result );
59 
63  virtual bool intersectWithCache( const DtVector& point, const DtVector& dir,
64  DtVector& hitPoint, DtVector& hitNormal );
65 
66  protected:
68  bool intersectRayTriangle( const DtVector& point, const DtVector& dir,
69  DtVector& hitPoint );
70 
71  protected:
72  bool myCacheSet;
77  };
78 
79 }
80 
DtVector myVert2
Definition: DtIntersectionCache.h:75
DtVector myVert1
Definition: DtIntersectionCache.h:74
Descriptor for a single intersection result.
Definition: DtIntersector.h:33
bool myCacheSet
Definition: DtIntersectionCache.h:72
Realization of a DtIntersectionCache that caches a previous intersection with a triangle.
Definition: DtIntersectionCache.h:48
#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:25
DtVector myNormal
Definition: DtIntersectionCache.h:76
DtVector myVert0
Definition: DtIntersectionCache.h:73
Contains DLL export macros.

Document ID: Generated on Thu Aug 27 10:56:05 EDT 2020 from SVN revision 217100
Copyright © 2005-2020 MAK Technologies. All Rights Reserved (www.mak.com)