SuperTuxKart
Public Member Functions | List of all members
ArenaNode3D Class Reference
Inheritance diagram for ArenaNode3D:
Inheritance graph
[legend]

Public Member Functions

 ArenaNode3D (const Vec3 &p0, const Vec3 &p1, const Vec3 &p2, const Vec3 &p3, const Vec3 &normal, unsigned int node_index)
 
virtual bool pointInside (const Vec3 &p, bool ignore_vertical=false) const OVERRIDE
 Returns true if a point is inside this quad. More...
 
virtual bool is3DQuad () const OVERRIDE
 Returns true if this quad is 3D, which additional 3D testing is used in pointInside. More...
 
- Public Member Functions inherited from ArenaNode
 ArenaNode (const Vec3 &p0, const Vec3 &p1, const Vec3 &p2, const Vec3 &p3, const Vec3 &normal, unsigned int node_index)
 
const std::vector< int > & getAdjacentNodes ()
 
std::vector< int > * getNearbyNodes ()
 
void setAdjacentNodes (const std::vector< int > &nodes)
 
void setNearbyNodes (const std::vector< int > &nodes)
 
bool isNearEdge () const
 Returns true if the quad lies near the edge, which means it doesn't have 4 adjacent quads.
 
virtual float getDistance2FromPoint (const Vec3 &xyz) const OVERRIDE
 Returns the square of the distance between the given point and any point on the 'centre' line, i.e. More...
 
- Public Member Functions inherited from Quad
 Quad (const Vec3 &p0, const Vec3 &p1, const Vec3 &p2, const Vec3 &p3, const Vec3 &normal=Vec3(0, 1, 0), int index=-1, bool invisible=false, bool ignored=false)
 Constructor, takes 4 points. More...
 
void getVertices (video::S3DVertex *v, const video::SColor &color) const
 Sets the vertices in a irrlicht vertex array to the 4 points of this quad. More...
 
void getSPMVertices (video::S3DVertexSkinnedMesh *v, const video::SColor &color) const
 Sets the vertices in an spm vertex array to the 4 points of this quad. More...
 
const Vec3operator[] (int i) const
 Returns the i-th. More...
 
const Vec3getCenter () const
 Returns the center of a quad. More...
 
void setQuad (const Vec3 &p0, const Vec3 &p1, const Vec3 &p2, const Vec3 &p3)
 Set new quad coordinates. More...
 
void setHeightTesting (float min, float max)
 
float getMinHeight () const
 Returns the minimum height of a quad. More...
 
int getIndex () const
 Returns the index of this quad. More...
 
bool isInvisible () const
 Returns true of this quad is invisible, i.e. More...
 
bool isIgnored () const
 
const Vec3getNormal () const
 Returns the normal of this quad. More...
 
- Public Member Functions inherited from BoundingBox3D
 BoundingBox3D (const Vec3 &p0, const Vec3 &p1, const Vec3 &p2, const Vec3 &p3, const Vec3 &normal)
 
bool pointInside (const Vec3 &p, bool ignore_vertical=false) const
 

Additional Inherited Members

- Protected Attributes inherited from Quad
Vec3 m_p [4]
 The four points of a quad. More...
 
Vec3 m_center
 The center of all four points, which is used by the AI. More...
 
int m_index
 Index of this quad, used only with graph. More...
 
Vec3 m_normal
 Normal of the quad.
 

Member Function Documentation

◆ is3DQuad()

virtual bool ArenaNode3D::is3DQuad ( ) const
inlinevirtual

Returns true if this quad is 3D, which additional 3D testing is used in pointInside.

Reimplemented from Quad.

◆ pointInside()

virtual bool ArenaNode3D::pointInside ( const Vec3 p,
bool  ignore_vertical = false 
) const
inlinevirtual

Returns true if a point is inside this quad.

Reimplemented from Quad.


The documentation for this class was generated from the following file: