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

#include <splines.h>

Inheritance diagram for idCameraPosition:
idPointListInterface idFixedPosition idInterpolatedPosition idSplinePosition

Public Types

enum  positionType { FIXED = 0x00, INTERPOLATED, SPLINE, POSITION_COUNT }
 

Public Member Functions

 idCameraPosition ()
 
 idCameraPosition (const char *p)
 
 idCameraPosition (long t)
 
virtual ~idCameraPosition ()
 
virtual void clearVelocities ()
 
virtual void clear ()
 
virtual void start (long t)
 
long getTime ()
 
virtual void setTime (long t)
 
float getVelocity (long t)
 
float getBaseVelocity ()
 
void addVelocity (long start, long duration, float speed)
 
virtual const idVec3getPosition (long t)
 
virtual void draw (bool editMode)
 
virtual void parse (idParser *src)
 
virtual void write (idFile *f, const char *name)
 
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 int numPoints ()
 
virtual void addPoint (const float x, const float y, const float z)
 
virtual void addPoint (const idVec3 &v)
 
virtual void removePoint (int index)
 
virtual idVec3getPoint (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

long startTime
 
long time
 
positionType type
 
idStr name
 
bool editMode
 
idList< idVelocity * > velocities
 
float baseVelocity
 
- Protected Attributes inherited from idPointListInterface
idList< intselectedPoints
 

Static Protected Attributes

static const char * positionStr [POSITION_COUNT]
 

Detailed Description

Definition at line 143 of file splines.h.

Member Enumeration Documentation

Enumerator
FIXED 
INTERPOLATED 
SPLINE 
POSITION_COUNT 

Definition at line 154 of file splines.h.

Constructor & Destructor Documentation

idCameraPosition::idCameraPosition ( )
inline

Definition at line 146 of file splines.h.

idCameraPosition::idCameraPosition ( const char *  p)
inline

Definition at line 147 of file splines.h.

idCameraPosition::idCameraPosition ( long  t)
inline

Definition at line 148 of file splines.h.

virtual idCameraPosition::~idCameraPosition ( )
inlinevirtual

Definition at line 149 of file splines.h.

Member Function Documentation

void idCameraPosition::addVelocity ( long  start,
long  duration,
float  speed 
)
inline

Definition at line 168 of file splines.h.

void idCameraPosition::calcVelocity ( float  distance)
inline

Definition at line 180 of file splines.h.

virtual void idCameraPosition::clear ( )
inlinevirtual

Definition at line 162 of file splines.h.

void idCameraPosition::clearVelocities ( )
virtual

Definition at line 1513 of file splines.cpp.

virtual void idCameraPosition::draw ( bool  editMode)
inlinevirtual

Reimplemented in idSplinePosition, idInterpolatedPosition, and idFixedPosition.

Definition at line 170 of file splines.h.

virtual void idCameraPosition::draw ( )
inlinevirtual

Definition at line 178 of file splines.h.

float idCameraPosition::getBaseVelocity ( )
inline

Definition at line 167 of file splines.h.

const char* idCameraPosition::getName ( )
inline

Definition at line 174 of file splines.h.

virtual const idVec3* idCameraPosition::getPosition ( long  t)
inlinevirtual

Reimplemented in idSplinePosition, idInterpolatedPosition, and idFixedPosition.

Definition at line 169 of file splines.h.

long idCameraPosition::getTime ( )
inline

Definition at line 164 of file splines.h.

float idCameraPosition::getVelocity ( long  t)

Definition at line 1526 of file splines.cpp.

virtual void idCameraPosition::parse ( idParser src)
inlinevirtual

Reimplemented in idSplinePosition, idInterpolatedPosition, and idFixedPosition.

Definition at line 171 of file splines.h.

bool idCameraPosition::parseToken ( const idStr key,
idParser src 
)
virtual

Definition at line 1541 of file splines.cpp.

void idCameraPosition::setName ( const char *  p)
inline

Definition at line 175 of file splines.h.

virtual void idCameraPosition::setTime ( long  t)
inlinevirtual

Definition at line 165 of file splines.h.

virtual void idCameraPosition::start ( long  t)
inlinevirtual

Reimplemented in idSplinePosition, and idInterpolatedPosition.

Definition at line 163 of file splines.h.

virtual void idCameraPosition::startEdit ( )
inlinevirtual

Definition at line 176 of file splines.h.

virtual void idCameraPosition::stopEdit ( )
inlinevirtual

Definition at line 177 of file splines.h.

const char* idCameraPosition::typeStr ( )
inline

Definition at line 179 of file splines.h.

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

Reimplemented in idSplinePosition, idInterpolatedPosition, and idFixedPosition.

Definition at line 1583 of file splines.cpp.

Member Data Documentation

float idCameraPosition::baseVelocity
protected

Definition at line 190 of file splines.h.

bool idCameraPosition::editMode
protected

Definition at line 188 of file splines.h.

idStr idCameraPosition::name
protected

Definition at line 187 of file splines.h.

const char * idCameraPosition::positionStr
staticprotected
Initial value:
= {
"Fixed",
"Interpolated",
"Spline",
}

Definition at line 183 of file splines.h.

long idCameraPosition::startTime
protected

Definition at line 184 of file splines.h.

long idCameraPosition::time
protected

Definition at line 185 of file splines.h.

positionType idCameraPosition::type
protected

Definition at line 186 of file splines.h.

idList<idVelocity*> idCameraPosition::velocities
protected

Definition at line 189 of file splines.h.


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