VR-Forces 4.8 Class Documentation
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Groups Pages
DtDynamicTerrainGeometry.h
Go to the documentation of this file.
1 /******************************************************************************
2 ** Copyright (c) 2016 MAK Technologies, Inc.
3 ** All rights reserved.
4 ******************************************************************************/
5 
9 
10 #pragma once
11 
12 #include <vrvUtil/vrvUtil.h>
13 
14 #include <matrix/vlVector.h>
15 
16 namespace makVrv
17 {
20  {
21  public:
24  {
25  public:
27  virtual ~Visitor();
28 
29  virtual void visitSphere(const DtVector& center, double radius) = 0;
30 
31  virtual void visitUnion(
33 
34  virtual void visitIntersection(
36  };
37 
39 
42  static DtDynamicTerrainGeometry* Sphere(const DtVector& center, double radius);
43  static DtDynamicTerrainGeometry* Point(const DtVector& center);
45  public:
46 
48 
50  virtual ~DtDynamicTerrainGeometry();
51 
54  virtual DtDynamicTerrainGeometry* clone() const = 0;
55 
57  virtual void accept(Visitor& visitor) const = 0;
58 
62  virtual bool intersects(const DtDynamicTerrainGeometry& geometry) const = 0;
63 
65  virtual double distanceTo(const DtVector& point) const = 0;
66 
68  virtual bool isFinite() const = 0;
69  };
70 }
#define DT_DLL_VRVUTIL
Definition: vrvUtil.h:34
Represents (possibly infinite) area of space.
Definition: DtDynamicTerrainGeometry.h:19
Contains DLL export macros.
Definition: vrfObjectManipulationHandlerBaseClass.h:61
Visitor for search through geometries.
Definition: DtDynamicTerrainGeometry.h:23
DT_DLL_vrfutil bool intersects(const DtVector &localPoint1, const DtVector &localPoint2, const DtLocalVertexList &localVertexList, const Coordinate_System &coordinateSystem)
Returns true if the line segment localPoint1-localPoint2 intersects.

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)