Blender V2.61 - r43446
|
#include <IK_QTask.h>
Public Member Functions | |
IK_QTask (int size, bool primary, bool active, const IK_QSegment *segment) | |
virtual | ~IK_QTask () |
int | Id () const |
void | SetId (int id) |
int | Size () const |
bool | Primary () const |
bool | Active () const |
MT_Scalar | Weight () const |
void | SetWeight (MT_Scalar weight) |
virtual void | ComputeJacobian (IK_QJacobian &jacobian)=0 |
virtual MT_Scalar | Distance () const =0 |
virtual bool | PositionTask () const |
virtual void | Scale (float) |
Protected Attributes | |
int | m_id |
int | m_size |
bool | m_primary |
bool | m_active |
const IK_QSegment * | m_segment |
MT_Scalar | m_weight |
Definition at line 43 of file IK_QTask.h.
IK_QTask::IK_QTask | ( | int | size, |
bool | primary, | ||
bool | active, | ||
const IK_QSegment * | segment | ||
) |
Definition at line 38 of file IK_QTask.cpp.
virtual IK_QTask::~IK_QTask | ( | ) | [inline, virtual] |
Definition at line 52 of file IK_QTask.h.
bool IK_QTask::Active | ( | ) | const [inline] |
Definition at line 66 of file IK_QTask.h.
References m_active.
virtual void IK_QTask::ComputeJacobian | ( | IK_QJacobian & | jacobian | ) | [pure virtual] |
Implemented in IK_QPositionTask, IK_QOrientationTask, and IK_QCenterOfMassTask.
virtual MT_Scalar IK_QTask::Distance | ( | ) | const [pure virtual] |
Implemented in IK_QPositionTask, IK_QOrientationTask, and IK_QCenterOfMassTask.
int IK_QTask::Id | ( | ) | const [inline] |
Definition at line 54 of file IK_QTask.h.
References m_size.
virtual bool IK_QTask::PositionTask | ( | ) | const [inline, virtual] |
Reimplemented in IK_QPositionTask.
Definition at line 79 of file IK_QTask.h.
bool IK_QTask::Primary | ( | ) | const [inline] |
Definition at line 63 of file IK_QTask.h.
References m_primary.
Referenced by IK_QJacobianSolver::Setup().
virtual void IK_QTask::Scale | ( | float | ) | [inline, virtual] |
Reimplemented in IK_QPositionTask, and IK_QCenterOfMassTask.
Definition at line 81 of file IK_QTask.h.
void IK_QTask::SetId | ( | int | id | ) | [inline] |
Definition at line 57 of file IK_QTask.h.
References m_id.
Referenced by IK_QJacobianSolver::Setup().
void IK_QTask::SetWeight | ( | MT_Scalar | weight | ) | [inline] |
Definition at line 72 of file IK_QTask.h.
References m_weight, and sqrt().
Referenced by IK_SolverAddCenterOfMass(), IK_SolverAddGoal(), IK_SolverAddGoalOrientation(), and IK_QJacobianSolver::Setup().
int IK_QTask::Size | ( | ) | const [inline] |
Definition at line 60 of file IK_QTask.h.
References m_size.
Referenced by IK_QJacobianSolver::Setup().
MT_Scalar IK_QTask::Weight | ( | ) | const [inline] |
Definition at line 69 of file IK_QTask.h.
References m_weight.
Referenced by IK_QJacobianSolver::Setup().
bool IK_QTask::m_active [protected] |
Definition at line 87 of file IK_QTask.h.
Referenced by Active().
int IK_QTask::m_id [protected] |
Definition at line 84 of file IK_QTask.h.
Referenced by IK_QCenterOfMassTask::ComputeJacobian(), IK_QOrientationTask::ComputeJacobian(), IK_QPositionTask::ComputeJacobian(), and SetId().
bool IK_QTask::m_primary [protected] |
Definition at line 86 of file IK_QTask.h.
Referenced by Primary().
const IK_QSegment* IK_QTask::m_segment [protected] |
Definition at line 88 of file IK_QTask.h.
Referenced by IK_QCenterOfMassTask::ComputeJacobian(), IK_QOrientationTask::ComputeJacobian(), IK_QPositionTask::ComputeJacobian(), IK_QPositionTask::Distance(), IK_QCenterOfMassTask::IK_QCenterOfMassTask(), and IK_QPositionTask::IK_QPositionTask().
int IK_QTask::m_size [protected] |
Definition at line 85 of file IK_QTask.h.
Referenced by IK_QCenterOfMassTask::ComputeJacobian(), IK_QOrientationTask::ComputeJacobian(), IK_QPositionTask::ComputeJacobian(), Id(), and Size().
MT_Scalar IK_QTask::m_weight [protected] |
Definition at line 89 of file IK_QTask.h.
Referenced by IK_QCenterOfMassTask::ComputeJacobian(), IK_QOrientationTask::ComputeJacobian(), IK_QPositionTask::ComputeJacobian(), SetWeight(), and Weight().