VR-Forces 4.6 Class Documentation
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Groups Pages
DtDynamicTerrainSphere.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 
15 
16 namespace makVrv
17 
18 {
20  {
21  public:
22  class Intersector : public Visitor
23  {
24  public:
25  explicit Intersector(const DtDynamicTerrainSphere& sphere);
26  bool value() const;
27  void visitSphere(const DtVector& center, double radius);
28  void visitUnion(const DtDynamicTerrainGeometry& left, const DtDynamicTerrainGeometry& right);
29  void visitIntersection(const DtDynamicTerrainGeometry& left, const DtDynamicTerrainGeometry& right);
30 
31  protected:
34  };
35 
36  public:
37 
38  DtDynamicTerrainSphere(const DtVector& center, double radius);
39 
40  virtual ~DtDynamicTerrainSphere();
41 
42  virtual DtDynamicTerrainGeometry* clone() const;
43  virtual bool intersects(const DtDynamicTerrainGeometry& geometry) const;
44  virtual double distanceTo(const DtVector& point) const;
45  virtual bool isFinite() const;
46  virtual void accept(Visitor& visitor) const;
47 
48  protected:
50  const double myRadius;
51  };
52 }

Document ID: Generated on Thu Apr 12 03:15:37 EDT 2018 from SVN revision 187986
Copyright © 2005-2018 VT MÄK. All Rights Reserved (www.mak.com)