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
idSplinePosition Class Reference

#include <splines.h>

Inheritance diagram for idSplinePosition:
idCameraPosition idPointListInterface

Public Member Functions

 idSplinePosition ()
 
 idSplinePosition (long time)
 
 ~idSplinePosition ()
 
void init ()
 
virtual void start (long t)
 
virtual const idVec3getPosition (long t)
 
void addControlPoint (idVec3 &v)
 
void parse (idParser *src)
 
void write (idFile *f, const char *name)
 
virtual int numPoints ()
 
virtual idVec3getPoint (int index)
 
virtual void addPoint (const idVec3 &v)
 
virtual void draw (bool editMode)
 
virtual void updateSelection (const idVec3 &move)
 
- 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 addPoint (const float x, const float y, const float z)
 
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 ()
 
void drawSelection ()
 

Protected Attributes

idSplineList target
 
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 241 of file splines.h.

Constructor & Destructor Documentation

idSplinePosition::idSplinePosition ( )
inline

Definition at line 244 of file splines.h.

idSplinePosition::idSplinePosition ( long  time)
inline

Definition at line 245 of file splines.h.

idSplinePosition::~idSplinePosition ( )
inline

Definition at line 246 of file splines.h.

Member Function Documentation

void idSplinePosition::addControlPoint ( idVec3 v)
inline

Definition at line 251 of file splines.h.

virtual void idSplinePosition::addPoint ( const idVec3 v)
inlinevirtual

Reimplemented from idPointListInterface.

Definition at line 256 of file splines.h.

virtual void idSplinePosition::draw ( bool  editMode)
inlinevirtual

Reimplemented from idCameraPosition.

Definition at line 257 of file splines.h.

virtual idVec3* idSplinePosition::getPoint ( int  index)
inlinevirtual

Reimplemented from idPointListInterface.

Definition at line 255 of file splines.h.

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

Reimplemented from idCameraPosition.

Definition at line 1965 of file splines.cpp.

void idSplinePosition::init ( )
inline

Definition at line 248 of file splines.h.

virtual int idSplinePosition::numPoints ( )
inlinevirtual

Reimplemented from idPointListInterface.

Definition at line 254 of file splines.h.

void idSplinePosition::parse ( idParser src)
virtual

Reimplemented from idCameraPosition.

Definition at line 1928 of file splines.cpp.

void idSplinePosition::start ( long  t)
virtual

Reimplemented from idCameraPosition.

Definition at line 1915 of file splines.cpp.

virtual void idSplinePosition::updateSelection ( const idVec3 move)
inlinevirtual

Reimplemented from idPointListInterface.

Definition at line 258 of file splines.h.

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

Reimplemented from idCameraPosition.

Definition at line 1953 of file splines.cpp.

Member Data Documentation

float idSplinePosition::distSoFar
protected

Definition at line 263 of file splines.h.

long idSplinePosition::lastTime
protected

Definition at line 262 of file splines.h.

idSplineList idSplinePosition::target
protected

Definition at line 261 of file splines.h.


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