doom3-gpl
Doom 3 GPL source release
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Pages
Public Member Functions | Protected Attributes | List of all members
idInterpolatedPosition Class Reference

#include <splines.h>

Inheritance diagram for idInterpolatedPosition:
idCameraPosition idPointListInterface

Public Member Functions

 idInterpolatedPosition ()
 
 idInterpolatedPosition (idVec3 start, idVec3 end, long time)
 
 ~idInterpolatedPosition ()
 
void init ()
 
virtual const idVec3getPosition (long t)
 
void parse (idParser *src)
 
void write (idFile *f, const char *name)
 
virtual int numPoints ()
 
virtual idVec3getPoint (int index)
 
virtual void addPoint (const float x, const float y, const float z)
 
virtual void addPoint (const idVec3 &v)
 
virtual void draw (bool editMode)
 
virtual void start (long t)
 
- Public Member Functions inherited from idCameraPosition
 idCameraPosition ()
 
 idCameraPosition (const char *p)
 
 idCameraPosition (long t)
 
virtual ~idCameraPosition ()
 
virtual void clearVelocities ()
 
virtual void clear ()
 
long getTime ()
 
virtual void setTime (long t)
 
float getVelocity (long t)
 
float getBaseVelocity ()
 
void addVelocity (long start, long duration, float speed)
 
virtual bool parseToken (const idStr &key, idParser *src)
 
const char * getName ()
 
void setName (const char *p)
 
virtual void startEdit ()
 
virtual void stopEdit ()
 
virtual void draw ()
 
const char * typeStr ()
 
void calcVelocity (float distance)
 
- Public Member Functions inherited from idPointListInterface
 idPointListInterface ()
 
 ~idPointListInterface ()
 
virtual void removePoint (int index)
 
int numSelectedPoints ()
 
idVec3getSelectedPoint (int index)
 
int selectPointByRay (const idVec3 &origin, const idVec3 &direction, bool single)
 
int isPointSelected (int index)
 
int selectPoint (int index, bool single)
 
void selectAll ()
 
void deselectAll ()
 
virtual void updateSelection (const idVec3 &move)
 
void drawSelection ()
 

Protected Attributes

bool first
 
idVec3 startPos
 
idVec3 endPos
 
long lastTime
 
float distSoFar
 
- Protected Attributes inherited from idCameraPosition
long startTime
 
long time
 
positionType type
 
idStr name
 
bool editMode
 
idList< idVelocity * > velocities
 
float baseVelocity
 
- Protected Attributes inherited from idPointListInterface
idList< intselectedPoints
 

Additional Inherited Members

- Public Types inherited from idCameraPosition
enum  positionType { FIXED = 0x00, INTERPOLATED, SPLINE, POSITION_COUNT }
 
- Static Protected Attributes inherited from idCameraPosition
static const char * positionStr [POSITION_COUNT]
 

Detailed Description

Definition at line 215 of file splines.h.

Constructor & Destructor Documentation

idInterpolatedPosition::idInterpolatedPosition ( )
inline

Definition at line 217 of file splines.h.

idInterpolatedPosition::idInterpolatedPosition ( idVec3  start,
idVec3  end,
long  time 
)
inline

Definition at line 218 of file splines.h.

idInterpolatedPosition::~idInterpolatedPosition ( )
inline

Definition at line 219 of file splines.h.

Member Function Documentation

void idInterpolatedPosition::addPoint ( const float  x,
const float  y,
const float  z 
)
virtual

Reimplemented from idPointListInterface.

Definition at line 1619 of file splines.cpp.

void idInterpolatedPosition::addPoint ( const idVec3 v)
virtual

Reimplemented from idPointListInterface.

Definition at line 1634 of file splines.cpp.

void idInterpolatedPosition::draw ( bool  editMode)
virtual

Reimplemented from idCameraPosition.

Definition at line 1650 of file splines.cpp.

idVec3 * idInterpolatedPosition::getPoint ( int  index)
virtual

Reimplemented from idPointListInterface.

Definition at line 1606 of file splines.cpp.

const idVec3 * idInterpolatedPosition::getPosition ( long  t)
virtual

Reimplemented from idCameraPosition.

Definition at line 1678 of file splines.cpp.

void idInterpolatedPosition::init ( )
inline

Definition at line 221 of file splines.h.

virtual int idInterpolatedPosition::numPoints ( )
inlinevirtual

Reimplemented from idPointListInterface.

Definition at line 226 of file splines.h.

void idInterpolatedPosition::parse ( idParser src)
virtual

Reimplemented from idCameraPosition.

Definition at line 1728 of file splines.cpp.

void idInterpolatedPosition::start ( long  t)
virtual

Reimplemented from idCameraPosition.

Definition at line 1664 of file splines.cpp.

void idInterpolatedPosition::write ( idFile f,
const char *  name 
)
virtual

Reimplemented from idCameraPosition.

Definition at line 1757 of file splines.cpp.

Member Data Documentation

float idInterpolatedPosition::distSoFar
protected

Definition at line 238 of file splines.h.

idVec3 idInterpolatedPosition::endPos
protected

Definition at line 236 of file splines.h.

bool idInterpolatedPosition::first
protected

Definition at line 234 of file splines.h.

long idInterpolatedPosition::lastTime
protected

Definition at line 237 of file splines.h.

idVec3 idInterpolatedPosition::startPos
protected

Definition at line 235 of file splines.h.


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