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

#include <splines.h>

Public Member Functions

 idCameraDef ()
 
 ~idCameraDef ()
 
void clear ()
 
idCameraPositionstartNewCamera (idCameraPosition::positionType type)
 
void addEvent (idCameraEvent::eventType t, const char *param, long time)
 
void addEvent (idCameraEvent *event)
 
int numEvents ()
 
idCameraEventgetEvent (int index)
 
void parse (idParser *src)
 
bool load (const char *filename)
 
void save (const char *filename)
 
void buildCamera ()
 
void addTarget (const char *name, idCameraPosition::positionType type)
 
idCameraPositiongetActiveTarget ()
 
idCameraPositiongetActiveTarget (int index)
 
int numTargets ()
 
void setActiveTargetByName (const char *name)
 
void setActiveTarget (int index)
 
void setRunning (bool b)
 
void setBaseTime (float f)
 
float getBaseTime ()
 
float getTotalTime ()
 
void startCamera (long t)
 
void stopCamera ()
 
void getActiveSegmentInfo (int segment, idVec3 &origin, idVec3 &direction, float *fv)
 
bool getCameraInfo (long time, idVec3 &origin, idVec3 &direction, float *fv)
 
void draw (bool editMode)
 
int numPoints ()
 
const idVec3getPoint (int index)
 
void stopEdit ()
 
void startEdit (bool camera)
 
bool waitEvent (int index)
 
const char * getName ()
 
void setName (const char *p)
 
idCameraPositiongetPositionObj ()
 

Static Public Member Functions

static int sortEvents (const void *p1, const void *p2)
 
static idCameraPositionnewFromType (idCameraPosition::positionType t)
 

Protected Attributes

idStr name
 
int currentCameraPosition
 
idVec3 lastDirection
 
bool cameraRunning
 
idCameraPositioncameraPosition
 
idList< idCameraPosition * > targetPositions
 
idList< idCameraEvent * > events
 
idCameraFOV fov
 
int activeTarget
 
float totalTime
 
float baseTime
 
long startTime
 
bool cameraEdit
 
bool editMode
 

Detailed Description

Definition at line 333 of file splines.h.

Constructor & Destructor Documentation

idCameraDef::idCameraDef ( )
inline

Definition at line 335 of file splines.h.

idCameraDef::~idCameraDef ( )
inline

Definition at line 336 of file splines.h.

Member Function Documentation

void idCameraDef::addEvent ( idCameraEvent::eventType  t,
const char *  param,
long  time 
)

Definition at line 1388 of file splines.cpp.

void idCameraDef::addEvent ( idCameraEvent event)

Definition at line 1377 of file splines.cpp.

void idCameraDef::addTarget ( const char *  name,
idCameraPosition::positionType  type 
)

Definition at line 794 of file splines.cpp.

void idCameraDef::buildCamera ( )

Definition at line 1081 of file splines.cpp.

void idCameraDef::clear ( )

Definition at line 751 of file splines.cpp.

void idCameraDef::draw ( bool  editMode)

Definition at line 862 of file splines.cpp.

void idCameraDef::getActiveSegmentInfo ( int  segment,
idVec3 origin,
idVec3 direction,
float fv 
)

Definition at line 948 of file splines.cpp.

idCameraPosition * idCameraDef::getActiveTarget ( )

Definition at line 813 of file splines.cpp.

idCameraPosition * idCameraDef::getActiveTarget ( int  index)

Definition at line 825 of file splines.cpp.

float idCameraDef::getBaseTime ( )
inline

Definition at line 359 of file splines.h.

bool idCameraDef::getCameraInfo ( long  time,
idVec3 origin,
idVec3 direction,
float fv 
)

Definition at line 989 of file splines.cpp.

idCameraEvent* idCameraDef::getEvent ( int  index)
inline

Definition at line 344 of file splines.h.

const char* idCameraDef::getName ( )
inline

Definition at line 371 of file splines.h.

const idVec3 * idCameraDef::getPoint ( int  index)

Definition at line 891 of file splines.cpp.

idCameraPosition * idCameraDef::getPositionObj ( )

Definition at line 936 of file splines.cpp.

float idCameraDef::getTotalTime ( )
inline

Definition at line 360 of file splines.h.

bool idCameraDef::load ( const char *  filename)

Definition at line 1307 of file splines.cpp.

idCameraPosition * idCameraDef::newFromType ( idCameraPosition::positionType  t)
static

Definition at line 1398 of file splines.cpp.

int idCameraDef::numEvents ( )
inline

Definition at line 343 of file splines.h.

int idCameraDef::numPoints ( )

Definition at line 879 of file splines.cpp.

int idCameraDef::numTargets ( )
inline

Definition at line 354 of file splines.h.

void idCameraDef::parse ( idParser src)

Definition at line 1239 of file splines.cpp.

void idCameraDef::save ( const char *  filename)

Definition at line 1330 of file splines.cpp.

void idCameraDef::setActiveTarget ( int  index)

Definition at line 852 of file splines.cpp.

void idCameraDef::setActiveTargetByName ( const char *  name)

Definition at line 838 of file splines.cpp.

void idCameraDef::setBaseTime ( float  f)
inline

Definition at line 358 of file splines.h.

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

Definition at line 372 of file splines.h.

void idCameraDef::setRunning ( bool  b)
inline

Definition at line 357 of file splines.h.

int idCameraDef::sortEvents ( const void p1,
const void p2 
)
static

Definition at line 1359 of file splines.cpp.

void idCameraDef::startCamera ( long  t)

Definition at line 1223 of file splines.cpp.

void idCameraDef::startEdit ( bool  camera)

Definition at line 917 of file splines.cpp.

idCameraPosition * idCameraDef::startNewCamera ( idCameraPosition::positionType  type)

Definition at line 777 of file splines.cpp.

void idCameraDef::stopCamera ( )
inline

Definition at line 362 of file splines.h.

void idCameraDef::stopEdit ( )

Definition at line 903 of file splines.cpp.

bool idCameraDef::waitEvent ( int  index)

Definition at line 1064 of file splines.cpp.

Member Data Documentation

int idCameraDef::activeTarget
protected

Definition at line 386 of file splines.h.

float idCameraDef::baseTime
protected

Definition at line 388 of file splines.h.

bool idCameraDef::cameraEdit
protected

Definition at line 391 of file splines.h.

idCameraPosition* idCameraDef::cameraPosition
protected

Definition at line 382 of file splines.h.

bool idCameraDef::cameraRunning
protected

Definition at line 381 of file splines.h.

int idCameraDef::currentCameraPosition
protected

Definition at line 379 of file splines.h.

bool idCameraDef::editMode
protected

Definition at line 392 of file splines.h.

idList<idCameraEvent*> idCameraDef::events
protected

Definition at line 384 of file splines.h.

idCameraFOV idCameraDef::fov
protected

Definition at line 385 of file splines.h.

idVec3 idCameraDef::lastDirection
protected

Definition at line 380 of file splines.h.

idStr idCameraDef::name
protected

Definition at line 378 of file splines.h.

long idCameraDef::startTime
protected

Definition at line 389 of file splines.h.

idList<idCameraPosition*> idCameraDef::targetPositions
protected

Definition at line 383 of file splines.h.

float idCameraDef::totalTime
protected

Definition at line 387 of file splines.h.


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