From 0ea5fc66924303d1bf73ba283a383e2aadee02f2 Mon Sep 17 00:00:00 2001 From: neodarz Date: Sat, 11 Aug 2018 20:21:34 +0200 Subject: Initial commit --- docs/doxygen/nel/a03288.html | 760 +++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 760 insertions(+) create mode 100644 docs/doxygen/nel/a03288.html (limited to 'docs/doxygen/nel/a03288.html') diff --git a/docs/doxygen/nel/a03288.html b/docs/doxygen/nel/a03288.html new file mode 100644 index 00000000..ea3e15e9 --- /dev/null +++ b/docs/doxygen/nel/a03288.html @@ -0,0 +1,760 @@ + + +NeL: NLPACS::CQuadLeaf class Reference + + + +
+

NLPACS::CQuadLeaf Class Reference

#include <surface_quad.h> +

+

Inheritance diagram for NLPACS::CQuadLeaf: +

+ +NLPACS::IQuadNode + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +

Public Member Functions

virtual void addVertex (const NLMISC::CVector &v)
bool check () const
 CQuadLeaf (uint8 level=0)
virtual NLMISC::CAABBox getBBox () const
const IQuadNodegetChild (uint child) const
virtual uint8 getLevel () const
virtual float getMaxHeight () const
virtual float getMinHeight () const
bool isLeaf () const
void serial (NLMISC::IStream &f)
virtual void translate (const NLMISC::CVector &translation)

Protected Attributes

float _HalfSize
uint8 _Level
float _MaxHeight
float _MaxThickness
float _MinHeight
float _XCenter
float _YCenter

Friends

class CQuadBranch
class CQuadLeaf
class CSurfaceQuadTree
+

Constructor & Destructor Documentation

+

+ + + + +
+ + + + + + + + + + +
NLPACS::CQuadLeaf::CQuadLeaf uint8  level = 0  )  [inline]
+
+ + + + + +
+   + + +

+ +

+Definition at line 91 of file surface_quad.h. +

+References level, and uint8. +

+

00091 : IQuadNode(level) {}
+
+


Member Function Documentation

+

+ + + + +
+ + + + + + + + + + +
virtual void NLPACS::IQuadNode::addVertex const NLMISC::CVector v  )  [inline, virtual, inherited]
+
+ + + + + +
+   + + +

+ +

+Reimplemented in NLPACS::CQuadBranch. +

+Definition at line 57 of file surface_quad.h. +

+References NLPACS::IQuadNode::_MaxHeight, NLPACS::IQuadNode::_MinHeight, and v. +

+Referenced by NLPACS::CQuadBranch::addVertex(), and NLPACS::CSurfaceQuadTree::addVertex(). +

+

00058         {
+00059                 if (v.z < _MinHeight)   _MinHeight = v.z;
+00060                 if (v.z > _MaxHeight)   _MaxHeight = v.z;
+00061         }
+
+

+ + + + +
+ + + + + + + + + +
bool NLPACS::CQuadLeaf::check  )  const [inline, virtual]
+
+ + + + + +
+   + + +

+ +

+Reimplemented from NLPACS::IQuadNode. +

+Definition at line 94 of file surface_quad.h. +

+

00095         {
+00096                 if (!IQuadNode::check())
+00097                         return false;
+00098                 return (_Level == 1 || _MaxHeight-_MinHeight <= _MaxThickness);
+00099         }
+
+

+ + + + +
+ + + + + + + + + +
virtual NLMISC::CAABBox NLPACS::IQuadNode::getBBox  )  const [inline, virtual, inherited]
+
+ + + + + +
+   + + +

+ +

+Definition at line 62 of file surface_quad.h. +

+References NLPACS::IQuadNode::_HalfSize, NLPACS::IQuadNode::_XCenter, NLPACS::IQuadNode::_YCenter, NLMISC::CAABBox::setCenter(), and NLMISC::CAABBox::setHalfSize(). +

+Referenced by NLPACS::CSurfaceQuadTree::getInterpZ(), and NLPACS::CSurfaceQuadTree::getLeaf(). +

+

00063         {
+00064                 NLMISC::CAABBox bbox;
+00065                 bbox.setCenter(NLMISC::CVector(_XCenter, _YCenter, 0.0f));
+00066                 bbox.setHalfSize(NLMISC::CVector(_HalfSize, _HalfSize, 10000.0f));
+00067                 return bbox;
+00068         }
+
+

+ + + + +
+ + + + + + + + + + +
const IQuadNode* NLPACS::CQuadLeaf::getChild uint  child  )  const [inline, virtual]
+
+ + + + + +
+   + + +

+ +

+Implements NLPACS::IQuadNode. +

+Definition at line 93 of file surface_quad.h. +

+References nlerror, and uint. +

+Referenced by NLPACS::CSurfaceQuadTree::getInterpZ(). +

+

00093 { nlerror("Can't access child %d on the leaf!", child); return NULL; }
+
+

+ + + + +
+ + + + + + + + + +
virtual uint8 NLPACS::IQuadNode::getLevel  )  const [inline, virtual, inherited]
+
+ + + + + +
+   + + +

+ +

+Definition at line 55 of file surface_quad.h. +

+References uint8. +

+

00055 { return _Level; }
+
+

+ + + + +
+ + + + + + + + + +
virtual float NLPACS::IQuadNode::getMaxHeight  )  const [inline, virtual, inherited]
+
+ + + + + +
+   + + +

+ +

+Definition at line 54 of file surface_quad.h. +

+References NLPACS::IQuadNode::_MaxHeight. +

+Referenced by NLPACS::CSurfaceQuadTree::compile(), NLPACS::CLocalRetriever::getHeight(), and NLPACS::CQuadBranch::reduceChildren(). +

+

00054 { return _MaxHeight; }
+
+

+ + + + +
+ + + + + + + + + +
virtual float NLPACS::IQuadNode::getMinHeight  )  const [inline, virtual, inherited]
+
+ + + + + +
+   + + +

+ +

+Definition at line 53 of file surface_quad.h. +

+References NLPACS::IQuadNode::_MinHeight. +

+Referenced by NLPACS::CSurfaceQuadTree::compile(), NLPACS::CLocalRetriever::getHeight(), and NLPACS::CQuadBranch::reduceChildren(). +

+

00053 { return _MinHeight; }
+
+

+ + + + +
+ + + + + + + + + +
bool NLPACS::CQuadLeaf::isLeaf  )  const [inline, virtual]
+
+ + + + + +
+   + + +

+ +

+Implements NLPACS::IQuadNode. +

+Definition at line 92 of file surface_quad.h. +

+Referenced by NLPACS::CSurfaceQuadTree::getInterpZ(). +

+

00092 { return true; }
+
+

+ + + + +
+ + + + + + + + + + +
void NLPACS::CQuadLeaf::serial NLMISC::IStream f  )  [inline, virtual]
+
+ + + + + +
+   + + +

+ +

+Reimplemented from NLPACS::IQuadNode. +

+Definition at line 101 of file surface_quad.h. +

+Referenced by NLPACS::CSurfaceQuadTree::serial(), and NLPACS::CQuadBranch::serial(). +

+

00101 { IQuadNode::serial(f); }
+
+

+ + + + +
+ + + + + + + + + + +
virtual void NLPACS::IQuadNode::translate const NLMISC::CVector translation  )  [inline, virtual, inherited]
+
+ + + + + +
+   + + +

+ +

+Reimplemented in NLPACS::CQuadBranch. +

+Definition at line 70 of file surface_quad.h. +

+References NLPACS::IQuadNode::_MaxHeight, NLPACS::IQuadNode::_MinHeight, NLPACS::IQuadNode::_XCenter, NLPACS::IQuadNode::_YCenter, NLMISC::CVector::x, NLMISC::CVector::y, and NLMISC::CVector::z. +

+Referenced by NLPACS::CSurfaceQuadTree::translate(), and NLPACS::CQuadBranch::translate(). +

+

00071         {
+00072                 _XCenter += translation.x;
+00073                 _YCenter += translation.y;
+00074                 _MinHeight += translation.z;
+00075                 _MaxHeight += translation.z;
+00076         }
+
+


Friends And Related Function Documentation

+

+ + + + +
+ + +
friend class CQuadBranch [friend, inherited] +
+
+ + + + + +
+   + + +

+ +

+Definition at line 43 of file surface_quad.h.

+

+ + + + +
+ + +
friend class CQuadLeaf [friend, inherited] +
+
+ + + + + +
+   + + +

+ +

+Definition at line 42 of file surface_quad.h. +

+Referenced by NLPACS::CQuadBranch::addVertex(), NLPACS::CQuadBranch::operator=(), NLPACS::CQuadBranch::reduceChildren(), and NLPACS::CQuadBranch::serial().

+

+ + + + +
+ + +
friend class CSurfaceQuadTree [friend, inherited] +
+
+ + + + + +
+   + + +

+ +

+Reimplemented in NLPACS::CQuadBranch. +

+Definition at line 41 of file surface_quad.h.

+


Field Documentation

+

+ + + + +
+ + +
float NLPACS::IQuadNode::_HalfSize [protected, inherited] +
+
+ + + + + +
+   + + +

+ +

+Definition at line 48 of file surface_quad.h. +

+Referenced by NLPACS::CQuadBranch::addVertex(), NLPACS::CSurfaceQuadTree::addVertex(), NLPACS::IQuadNode::getBBox(), and NLPACS::IQuadNode::serial().

+

+ + + + +
+ + +
uint8 NLPACS::IQuadNode::_Level [protected, inherited] +
+
+ + + + + +
+   + + +

+ +

+Definition at line 47 of file surface_quad.h.

+

+ + + + +
+ + +
float NLPACS::IQuadNode::_MaxHeight [protected, inherited] +
+
+ + + + + +
+   + + +

+ +

+Definition at line 44 of file surface_quad.h. +

+Referenced by NLPACS::IQuadNode::addVertex(), NLPACS::CQuadBranch::addVertex(), NLPACS::CSurfaceQuadTree::addVertex(), NLPACS::IQuadNode::check(), NLPACS::IQuadNode::getMaxHeight(), NLPACS::IQuadNode::serial(), and NLPACS::IQuadNode::translate().

+

+ + + + +
+ + +
float NLPACS::IQuadNode::_MaxThickness [protected, inherited] +
+
+ + + + + +
+   + + +

+ +

+Definition at line 46 of file surface_quad.h. +

+Referenced by NLPACS::CQuadBranch::addVertex(), NLPACS::CSurfaceQuadTree::addVertex(), and NLPACS::IQuadNode::serial().

+

+ + + + +
+ + +
float NLPACS::IQuadNode::_MinHeight [protected, inherited] +
+
+ + + + + +
+   + + +

+ +

+Definition at line 44 of file surface_quad.h. +

+Referenced by NLPACS::IQuadNode::addVertex(), NLPACS::CQuadBranch::addVertex(), NLPACS::CSurfaceQuadTree::addVertex(), NLPACS::IQuadNode::check(), NLPACS::IQuadNode::getMinHeight(), NLPACS::IQuadNode::serial(), and NLPACS::IQuadNode::translate().

+

+ + + + +
+ + +
float NLPACS::IQuadNode::_XCenter [protected, inherited] +
+
+ + + + + +
+   + + +

+ +

+Definition at line 48 of file surface_quad.h. +

+Referenced by NLPACS::CQuadBranch::addVertex(), NLPACS::CSurfaceQuadTree::addVertex(), NLPACS::IQuadNode::getBBox(), NLPACS::CSurfaceQuadTree::getInterpZ(), NLPACS::CSurfaceQuadTree::getLeaf(), NLPACS::IQuadNode::serial(), and NLPACS::IQuadNode::translate().

+

+ + + + +
+ + +
float NLPACS::IQuadNode::_YCenter [protected, inherited] +
+
+ + + + + +
+   + + +

+ +

+Definition at line 48 of file surface_quad.h. +

+Referenced by NLPACS::CQuadBranch::addVertex(), NLPACS::CSurfaceQuadTree::addVertex(), NLPACS::IQuadNode::getBBox(), NLPACS::CSurfaceQuadTree::getInterpZ(), NLPACS::CSurfaceQuadTree::getLeaf(), NLPACS::IQuadNode::serial(), and NLPACS::IQuadNode::translate().

+


The documentation for this class was generated from the following file: +
Generated on Tue Mar 16 14:22:14 2004 for NeL by + +doxygen +1.3.6
+ + -- cgit v1.2.1