Main Page   Namespace List   Class Hierarchy   Alphabetical List   Compound List   File List   Namespace Members   Compound Members   File Members   Related Pages  

Teddy::Imports::LWInstance Class Reference

#include <LWInstance.h>

Inheritance diagram for Teddy::Imports::LWInstance:

Inheritance graph
[legend]
Collaboration diagram for Teddy::Imports::LWInstance:

Collaboration graph
[legend]
List of all members.

Public Methods

 LWInstance ()
void add (LWBone *bone)
LWBonegetBone (int bone_num)
void setModel (Model *mi)
Model * getModel ()
void setModelName (const std::string &model_name)
std::string & getModelName ()
LWMotiongetMotion ()
void setMotion (LWMotion *motion)
void setVisibility (int visibility)
void setColor (int color)
void setParentObjectId (unsigned long parent_object_id)
unsigned long getParentObjectId ()
Vector & evalPosition (float time)
Matrix & evalRotation (float time)
Vector & evalPivot (float time)
void setTime (float time)
void setPivotPosition (Vector pivot_position)
void setParentObject (LWInstance *parent)

Protected Attributes

unsigned long parent_object_id
LWInstance * parent_object
LWMotionmotion
Model * model
std::string model_name
int_to_LWBone bones
int next_bone
int visibility
int color
float last_po_time
float last_ro_time
float last_pi_time
Vector pivot_position
Vector last_position
Matrix last_rotation
Vector last_pivot

Constructor & Destructor Documentation

Teddy::Imports::LWInstance::LWInstance  
 

Definition at line 43 of file LWInstance.cpp.

References last_pi_time, last_pivot, last_po_time, last_position, last_ro_time, last_rotation, motion, next_bone, parent_object, parent_object_id, pivot_position, and Vector.


Member Function Documentation

void Teddy::Imports::LWInstance::add LWBone   bone
 

Definition at line 64 of file LWInstance.cpp.

References bones, and next_bone.

Vector & Teddy::Imports::LWInstance::evalPivot float    time
 

Definition at line 171 of file LWInstance.cpp.

References evalRotation, last_pi_time, last_pivot, pivot_position, and Vector.

Referenced by evalPosition.

Vector & Teddy::Imports::LWInstance::evalPosition float    time
 

Definition at line 144 of file LWInstance.cpp.

References evalPivot, last_po_time, last_position, LW_CHANNEL_X, LW_CHANNEL_Y, LW_CHANNEL_Z, motion, parent_object, and Vector.

Referenced by setTime.

Matrix & Teddy::Imports::LWInstance::evalRotation float    time
 

Definition at line 182 of file LWInstance.cpp.

References last_ro_time, last_rotation, LW_CHANNEL_B, LW_CHANNEL_H, LW_CHANNEL_P, motion, parent_object, and Vector.

Referenced by evalPivot, and setTime.

LWBone * Teddy::Imports::LWInstance::getBone int    bone_num
 

Definition at line 70 of file LWInstance.cpp.

References bones.

Model * Teddy::Imports::LWInstance::getModel  
 

Definition at line 85 of file LWInstance.cpp.

References model.

std::string & Teddy::Imports::LWInstance::getModelName  
 

Definition at line 95 of file LWInstance.cpp.

References model_name.

Referenced by Teddy::Imports::LWLight::genLight.

LWMotion * Teddy::Imports::LWInstance::getMotion  
 

Definition at line 100 of file LWInstance.cpp.

References motion.

unsigned long Teddy::Imports::LWInstance::getParentObjectId  
 

Definition at line 124 of file LWInstance.cpp.

References parent_object_id.

void Teddy::Imports::LWInstance::setColor int    color
 

Definition at line 114 of file LWInstance.cpp.

References color.

void Teddy::Imports::LWInstance::setModel Model *    mi
 

Definition at line 80 of file LWInstance.cpp.

References model.

void Teddy::Imports::LWInstance::setModelName const std::string &    model_name
 

Definition at line 90 of file LWInstance.cpp.

References model_name.

void Teddy::Imports::LWInstance::setMotion LWMotion   motion
 

Definition at line 105 of file LWInstance.cpp.

References motion.

void Teddy::Imports::LWInstance::setParentObject LWInstance *    parent
 

Definition at line 59 of file LWInstance.cpp.

References parent_object.

void Teddy::Imports::LWInstance::setParentObjectId unsigned long    parent_object_id
 

Definition at line 119 of file LWInstance.cpp.

References parent_object_id.

void Teddy::Imports::LWInstance::setPivotPosition Vector    pivot_position
 

Definition at line 139 of file LWInstance.cpp.

References pivot_position, and Vector.

void Teddy::Imports::LWInstance::setTime float    time
 

Definition at line 129 of file LWInstance.cpp.

References evalPosition, evalRotation, model, and Vector.

void Teddy::Imports::LWInstance::setVisibility int    visibility
 

Definition at line 109 of file LWInstance.cpp.

References visibility.


Member Data Documentation

int_to_LWBone Teddy::Imports::LWInstance::bones [protected]
 

Definition at line 95 of file LWInstance.h.

Referenced by add, and getBone.

int Teddy::Imports::LWInstance::color [protected]
 

Reimplemented in Teddy::Imports::LWLight.

Definition at line 98 of file LWInstance.h.

Referenced by setColor.

float Teddy::Imports::LWInstance::last_pi_time [protected]
 

Definition at line 101 of file LWInstance.h.

Referenced by evalPivot, and LWInstance.

Vector Teddy::Imports::LWInstance::last_pivot [protected]
 

Definition at line 105 of file LWInstance.h.

Referenced by evalPivot, and LWInstance.

float Teddy::Imports::LWInstance::last_po_time [protected]
 

Definition at line 99 of file LWInstance.h.

Referenced by evalPosition, and LWInstance.

Vector Teddy::Imports::LWInstance::last_position [protected]
 

Definition at line 103 of file LWInstance.h.

Referenced by evalPosition, and LWInstance.

float Teddy::Imports::LWInstance::last_ro_time [protected]
 

Definition at line 100 of file LWInstance.h.

Referenced by evalRotation, and LWInstance.

Matrix Teddy::Imports::LWInstance::last_rotation [protected]
 

Definition at line 104 of file LWInstance.h.

Referenced by evalRotation, and LWInstance.

Model* Teddy::Imports::LWInstance::model [protected]
 

Definition at line 93 of file LWInstance.h.

Referenced by getModel, Teddy::Imports::LWCamera::setCamera, setModel, and setTime.

std::string Teddy::Imports::LWInstance::model_name [protected]
 

Definition at line 94 of file LWInstance.h.

Referenced by getModelName, and setModelName.

LWMotion* Teddy::Imports::LWInstance::motion [protected]
 

Definition at line 92 of file LWInstance.h.

Referenced by evalPosition, evalRotation, getMotion, LWInstance, and setMotion.

int Teddy::Imports::LWInstance::next_bone [protected]
 

Definition at line 96 of file LWInstance.h.

Referenced by add, and LWInstance.

LWInstance* Teddy::Imports::LWInstance::parent_object [protected]
 

Definition at line 91 of file LWInstance.h.

Referenced by evalPosition, evalRotation, LWInstance, and setParentObject.

unsigned long Teddy::Imports::LWInstance::parent_object_id [protected]
 

Definition at line 90 of file LWInstance.h.

Referenced by getParentObjectId, LWInstance, and setParentObjectId.

Vector Teddy::Imports::LWInstance::pivot_position [protected]
 

Definition at line 102 of file LWInstance.h.

Referenced by evalPivot, LWInstance, and setPivotPosition.

int Teddy::Imports::LWInstance::visibility [protected]
 

Definition at line 97 of file LWInstance.h.

Referenced by setVisibility.


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