ResidualVM logo ResidualVM website - Forums - Contact us BuildBot - Doxygen - Wiki curved edge

A 3D path for 3D items. More...

#include <path.h>

Inheritance diagram for Stark::Resources::Path3D:
Collaboration diagram for Stark::Resources::Path3D:

List of all members.

Classes

struct  Vertex

Public Member Functions

 Path3D (Object *parent, byte subType, uint16 index, const Common::String &name)
virtual ~Path3D ()
virtual void readData (Formats::XRCReadStream *stream) override
 Deserialize the resource static data and initial state.
uint getEdgeCount () const override
 Get the edge count in the path.
float getSortKey () const override
 Get the sort key to be used by the item following the path.
Math::Vector3d getEdgeDirection (uint edgeIndex) const override
 Get a unit vector pointing in the direction of an edge.
Math::Vector3d getVertexPosition3D (uint vertexIndex, int32 *faceIndex)
 Get the full position in world coordinates of one of the vertices of the path.

Protected Member Functions

float getVertexWeight (uint vertexIndex) const override
Math::Vector3d getVertexPosition (uint vertexIndex) const override

Private Member Functions

void printData () override

Private Attributes

Common::Array< Vertex_vertices
float _sortKey

Detailed Description

A 3D path for 3D items.

Definition at line 126 of file path.h.


Constructor & Destructor Documentation

Stark::Resources::Path3D::Path3D ( Object parent,
byte  subType,
uint16  index,
const Common::String name 
)

Definition at line 147 of file path.cpp.

Stark::Resources::Path3D::~Path3D (  )  [virtual]

Definition at line 178 of file path.cpp.


Member Function Documentation

uint Stark::Resources::Path3D::getEdgeCount (  )  const [override, virtual]

Get the edge count in the path.

Implements Stark::Resources::Path.

Definition at line 181 of file path.cpp.

Math::Vector3d Stark::Resources::Path3D::getEdgeDirection ( uint  edgeIndex  )  const [override, virtual]

Get a unit vector pointing in the direction of an edge.

Only valid for 3D paths

Reimplemented from Stark::Resources::Path.

Definition at line 197 of file path.cpp.

float Stark::Resources::Path3D::getSortKey (  )  const [override, virtual]

Get the sort key to be used by the item following the path.

Reimplemented from Stark::Resources::Path.

Definition at line 193 of file path.cpp.

Math::Vector3d Stark::Resources::Path3D::getVertexPosition ( uint  vertexIndex  )  const [override, protected, virtual]

Implements Stark::Resources::Path.

Definition at line 185 of file path.cpp.

Math::Vector3d Stark::Resources::Path3D::getVertexPosition3D ( uint  vertexIndex,
int32 faceIndex 
)

Get the full position in world coordinates of one of the vertices of the path.

Definition at line 203 of file path.cpp.

float Stark::Resources::Path3D::getVertexWeight ( uint  vertexIndex  )  const [override, protected, virtual]

Implements Stark::Resources::Path.

Definition at line 189 of file path.cpp.

void Stark::Resources::Path3D::printData (  )  [override, private, virtual]

Reimplemented from Stark::Resources::Path.

Definition at line 167 of file path.cpp.

void Stark::Resources::Path3D::readData ( Formats::XRCReadStream stream  )  [override, virtual]

Deserialize the resource static data and initial state.

Reimplemented from Stark::Resources::Path.

Definition at line 152 of file path.cpp.


Member Data Documentation

Definition at line 156 of file path.h.

Definition at line 155 of file path.h.


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


Generated on Sat Mar 16 2019 05:07:07 for ResidualVM by doxygen 1.7.1
curved edge   curved edge