#include <Geometry.h>
Inherits Snapshot.
|
| | GeometryInfo (GeometryType type, Bool isSmall, Real height, Real majorRadius, Real minorRadius) |
| |
| void | set (GeometryType type, Bool isSmall, Real height, Real majorRadius, Real minorRadius) |
| |
| void | setMajorRadius (Real majorRadius) |
| |
| void | setMinorRadius (Real minorRadius) |
| |
| GeometryType | getGeomType () const |
| |
| Bool | getIsSmall () const |
| |
| Real | getMajorRadius () const |
| |
| Real | getMinorRadius () const |
| |
| Real | getBoundingCircleRadius () const |
| |
| Real | getBoundingSphereRadius () const |
| |
| Bool | isIntersectedByLineSegment (const Coord3D &loc, const Coord3D &from, const Coord3D &to) const |
| |
| Real | getFootprintArea () const |
| |
| Real | getMaxHeightAbovePosition () const |
| |
| Real | getMaxHeightBelowPosition () const |
| |
| Real | getZDeltaToCenterPosition () const |
| |
| void | getCenterPosition (const Coord3D &pos, Coord3D ¢er) const |
| |
| void | calcPitches (const Coord3D &thisPos, const GeometryInfo &that, const Coord3D &thatPos, Real &minPitch, Real &maxPitch) const |
| |
| void | expandFootprint (Real radius) |
| | expand the 2d footprint
|
| |
| void | get2DBounds (const Coord3D &geomCenter, Real angle, Region2D &bounds) const |
| | get the 2d bounding box
|
| |
| void | makeRandomOffsetWithinFootprint (Coord3D &pt) const |
| | note that the pt is generated using game logic random, not game client random!
|
| |
| void | makeRandomOffsetOnPerimeter (Coord3D &pt) const |
| |
| void | clipPointToFootprint (const Coord3D &geomCenter, Coord3D &ptToClip) const |
| |
| Bool | isPointInFootprint (const Coord3D &geomCenter, const Coord3D &pt) const |
| |
| void | setMaxHeightAbovePosition (Real z) |
| |
| | Snapshot (void) |
| |
| | ~Snapshot (void) |
| |
|
| static void | parseGeometryType (INI *ini, void *, void *store, const void *) |
| |
| static void | parseGeometryIsSmall (INI *ini, void *, void *store, const void *) |
| |
| static void | parseGeometryHeight (INI *ini, void *, void *store, const void *) |
| |
| static void | parseGeometryMajorRadius (INI *ini, void *, void *store, const void *) |
| |
| static void | parseGeometryMinorRadius (INI *ini, void *, void *store, const void *) |
| |
Geometry information
Definition at line 85 of file Geometry.h.
◆ GeometryInfo()
◆ calcPitches()
- Todo
- srj – this could be better, by calcing it for all the corners, not just top-center and bottom-center... oh well
Definition at line 175 of file Geometry.cpp.
◆ clipPointToFootprint()
| void GeometryInfo::clipPointToFootprint |
( |
const Coord3D & | geomCenter, |
|
|
Coord3D & | ptToClip ) const |
◆ crc()
| void GeometryInfo::crc |
( |
Xfer * | xfer | ) |
|
|
protectedvirtual |
◆ expandFootprint()
| void GeometryInfo::expandFootprint |
( |
Real | radius | ) |
|
◆ get2DBounds()
| void GeometryInfo::get2DBounds |
( |
const Coord3D & | geomCenter, |
|
|
Real | angle, |
|
|
Region2D & | bounds ) const |
◆ getBoundingCircleRadius()
| Real GeometryInfo::getBoundingCircleRadius |
( |
| ) |
const |
|
inline |
◆ getBoundingSphereRadius()
| Real GeometryInfo::getBoundingSphereRadius |
( |
| ) |
const |
|
inline |
◆ getCenterPosition()
| void GeometryInfo::getCenterPosition |
( |
const Coord3D & | pos, |
|
|
Coord3D & | center ) const |
◆ getFootprintArea()
| Real GeometryInfo::getFootprintArea |
( |
| ) |
const |
◆ getGeomType()
◆ getIsSmall()
| Bool GeometryInfo::getIsSmall |
( |
| ) |
const |
|
inline |
◆ getMajorRadius()
| Real GeometryInfo::getMajorRadius |
( |
| ) |
const |
|
inline |
◆ getMaxHeightAbovePosition()
| Real GeometryInfo::getMaxHeightAbovePosition |
( |
| ) |
const |
◆ getMaxHeightBelowPosition()
| Real GeometryInfo::getMaxHeightBelowPosition |
( |
| ) |
const |
◆ getMinorRadius()
| Real GeometryInfo::getMinorRadius |
( |
| ) |
const |
|
inline |
◆ getZDeltaToCenterPosition()
| Real GeometryInfo::getZDeltaToCenterPosition |
( |
| ) |
const |
◆ isIntersectedByLineSegment()
- Todo
- srj – treats everything as a sphere for now. fix.
Definition at line 163 of file Geometry.cpp.
◆ isPointInFootprint()
| Bool GeometryInfo::isPointInFootprint |
( |
const Coord3D & | geomCenter, |
|
|
const Coord3D & | pt ) const |
◆ loadPostProcess()
| void GeometryInfo::loadPostProcess |
( |
void | | ) |
|
|
protectedvirtual |
◆ makeRandomOffsetOnPerimeter()
| void GeometryInfo::makeRandomOffsetOnPerimeter |
( |
Coord3D & | pt | ) |
const |
◆ makeRandomOffsetWithinFootprint()
| void GeometryInfo::makeRandomOffsetWithinFootprint |
( |
Coord3D & | pt | ) |
const |
note that the pt is generated using game logic random, not game client random!
Definition at line 384 of file Geometry.cpp.
◆ parseGeometryHeight()
| void GeometryInfo::parseGeometryHeight |
( |
INI * | ini, |
|
|
void * | , |
|
|
void * | store, |
|
|
const void * | ) |
|
static |
◆ parseGeometryIsSmall()
| void GeometryInfo::parseGeometryIsSmall |
( |
INI * | ini, |
|
|
void * | , |
|
|
void * | store, |
|
|
const void * | ) |
|
static |
◆ parseGeometryMajorRadius()
| void GeometryInfo::parseGeometryMajorRadius |
( |
INI * | ini, |
|
|
void * | , |
|
|
void * | store, |
|
|
const void * | ) |
|
static |
◆ parseGeometryMinorRadius()
| void GeometryInfo::parseGeometryMinorRadius |
( |
INI * | ini, |
|
|
void * | , |
|
|
void * | store, |
|
|
const void * | ) |
|
static |
◆ parseGeometryType()
| void GeometryInfo::parseGeometryType |
( |
INI * | ini, |
|
|
void * | , |
|
|
void * | store, |
|
|
const void * | ) |
|
static |
◆ set()
◆ setMajorRadius()
| void GeometryInfo::setMajorRadius |
( |
Real | majorRadius | ) |
|
|
inline |
◆ setMaxHeightAbovePosition()
| void GeometryInfo::setMaxHeightAbovePosition |
( |
Real | z | ) |
|
◆ setMinorRadius()
| void GeometryInfo::setMinorRadius |
( |
Real | minorRadius | ) |
|
|
inline |
◆ xfer()
| void GeometryInfo::xfer |
( |
Xfer * | xfer | ) |
|
|
protectedvirtual |
The documentation for this class was generated from the following files: