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

#include <splines.h>

Public Member Functions

 idSplineList ()
 
 idSplineList (const char *p)
 
 ~idSplineList ()
 
void clearControl ()
 
void clearSpline ()
 
void parse (idParser *src)
 
void write (idFile *f, const char *name)
 
void clear ()
 
void initPosition (long startTime, long totalTime)
 
const idVec3getPosition (long time)
 
void draw (bool editMode)
 
void addToRenderer ()
 
void setSelectedPoint (idVec3 *p)
 
idVec3getSelectedPoint ()
 
void addPoint (const idVec3 &v)
 
void addPoint (float x, float y, float z)
 
void updateSelection (const idVec3 &move)
 
void startEdit ()
 
void stopEdit ()
 
void buildSpline ()
 
void setGranularity (float f)
 
float getGranularity ()
 
int numPoints ()
 
idVec3getPoint (int index)
 
idVec3getSegmentPoint (int index)
 
void setSegmentTime (int index, int time)
 
int getSegmentTime (int index)
 
void addSegmentTime (int index, int time)
 
float totalDistance ()
 
int getActiveSegment ()
 
void setActiveSegment (int i)
 
int numSegments ()
 
void setColors (idVec4 &path, idVec4 &segment, idVec4 &control, idVec4 &active)
 
const char * getName ()
 
void setName (const char *p)
 
bool validTime ()
 
void setTime (long t)
 
void setBaseTime (long t)
 

Protected Member Functions

float calcSpline (int step, float tension)
 

Protected Attributes

idStr name
 
idList< idVec3 * > controlPoints
 
idList< idVec3 * > splinePoints
 
idList< double > splineTime
 
idVec3selected
 
idVec4 pathColor
 
idVec4 segmentColor
 
idVec4 controlColor
 
idVec4 activeColor
 
float granularity
 
bool editMode
 
bool dirty
 
int activeSegment
 
long baseTime
 
long time
 

Friends

class idCamera
 

Detailed Description

Definition at line 62 of file splines.h.

Constructor & Destructor Documentation

idSplineList::idSplineList ( )
inline

Definition at line 67 of file splines.h.

idSplineList::idSplineList ( const char *  p)
inline

Definition at line 68 of file splines.h.

idSplineList::~idSplineList ( )
inline

Definition at line 69 of file splines.h.

Member Function Documentation

void idSplineList::addPoint ( const idVec3 v)
inline

Definition at line 86 of file splines.h.

void idSplineList::addPoint ( float  x,
float  y,
float  z 
)
inline

Definition at line 87 of file splines.h.

void idSplineList::addSegmentTime ( int  index,
int  time 
)
inline

Definition at line 101 of file splines.h.

void idSplineList::addToRenderer ( )

Definition at line 345 of file splines.cpp.

void idSplineList::buildSpline ( )

Definition at line 405 of file splines.cpp.

float idSplineList::calcSpline ( int  step,
float  tension 
)
protected

Definition at line 556 of file splines.cpp.

void idSplineList::clear ( )

Definition at line 300 of file splines.cpp.

void idSplineList::clearControl ( )

Definition at line 276 of file splines.cpp.

void idSplineList::clearSpline ( )

Definition at line 288 of file splines.cpp.

void idSplineList::draw ( bool  editMode)

Definition at line 430 of file splines.cpp.

int idSplineList::getActiveSegment ( )
inline

Definition at line 104 of file splines.h.

float idSplineList::getGranularity ( )
inline

Definition at line 94 of file splines.h.

const char* idSplineList::getName ( )
inline

Definition at line 110 of file splines.h.

idVec3* idSplineList::getPoint ( int  index)
inline

Definition at line 97 of file splines.h.

const idVec3 * idSplineList::getPosition ( long  time)

Definition at line 601 of file splines.cpp.

idVec3* idSplineList::getSegmentPoint ( int  index)
inline

Definition at line 98 of file splines.h.

int idSplineList::getSegmentTime ( int  index)
inline

Definition at line 100 of file splines.h.

idVec3* idSplineList::getSelectedPoint ( )
inline

Definition at line 84 of file splines.h.

void idSplineList::initPosition ( long  startTime,
long  totalTime 
)

Definition at line 518 of file splines.cpp.

int idSplineList::numPoints ( )
inline

Definition at line 96 of file splines.h.

int idSplineList::numSegments ( )
inline

Definition at line 106 of file splines.h.

void idSplineList::parse ( idParser src)

Definition at line 682 of file splines.cpp.

void idSplineList::setActiveSegment ( int  i)
inline

Definition at line 105 of file splines.h.

void idSplineList::setBaseTime ( long  t)
inline

Definition at line 115 of file splines.h.

void idSplineList::setColors ( idVec4 path,
idVec4 segment,
idVec4 control,
idVec4 active 
)

Definition at line 319 of file splines.cpp.

void idSplineList::setGranularity ( float  f)
inline

Definition at line 93 of file splines.h.

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

Definition at line 111 of file splines.h.

void idSplineList::setSegmentTime ( int  index,
int  time 
)
inline

Definition at line 99 of file splines.h.

void idSplineList::setSelectedPoint ( idVec3 p)

Definition at line 583 of file splines.cpp.

void idSplineList::setTime ( long  t)
inline

Definition at line 114 of file splines.h.

void idSplineList::startEdit ( )
inline

Definition at line 90 of file splines.h.

void idSplineList::stopEdit ( )
inline

Definition at line 91 of file splines.h.

float idSplineList::totalDistance ( )

Definition at line 490 of file splines.cpp.

void idSplineList::updateSelection ( const idVec3 move)

Definition at line 571 of file splines.cpp.

bool idSplineList::validTime ( )

Definition at line 331 of file splines.cpp.

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

Definition at line 726 of file splines.cpp.

Friends And Related Function Documentation

friend class idCamera
friend

Definition at line 63 of file splines.h.

Member Data Documentation

idVec4 idSplineList::activeColor
protected

Definition at line 124 of file splines.h.

int idSplineList::activeSegment
protected

Definition at line 128 of file splines.h.

long idSplineList::baseTime
protected

Definition at line 129 of file splines.h.

idVec4 idSplineList::controlColor
protected

Definition at line 124 of file splines.h.

idList<idVec3*> idSplineList::controlPoints
protected

Definition at line 120 of file splines.h.

bool idSplineList::dirty
protected

Definition at line 127 of file splines.h.

bool idSplineList::editMode
protected

Definition at line 126 of file splines.h.

float idSplineList::granularity
protected

Definition at line 125 of file splines.h.

idStr idSplineList::name
protected

Definition at line 118 of file splines.h.

idVec4 idSplineList::pathColor
protected

Definition at line 124 of file splines.h.

idVec4 idSplineList::segmentColor
protected

Definition at line 124 of file splines.h.

idVec3* idSplineList::selected
protected

Definition at line 123 of file splines.h.

idList<idVec3*> idSplineList::splinePoints
protected

Definition at line 121 of file splines.h.

idList<double> idSplineList::splineTime
protected

Definition at line 122 of file splines.h.

long idSplineList::time
protected

Definition at line 130 of file splines.h.


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