Blender V2.61 - r43446
Public Types | Public Member Functions

KX_RaySensor Class Reference

#include <KX_RaySensor.h>

Inheritance diagram for KX_RaySensor:
Inheritance graph
[legend]

List of all members.

Public Types

enum  RayAxis {
  KX_RAY_AXIS_POS_Y = 0, KX_RAY_AXIS_POS_X, KX_RAY_AXIS_POS_Z, KX_RAY_AXIS_NEG_X,
  KX_RAY_AXIS_NEG_Y, KX_RAY_AXIS_NEG_Z
}

Public Member Functions

 KX_RaySensor (class SCA_EventManager *eventmgr, SCA_IObject *gameobj, const STR_String &propname, bool bFindMaterial, bool bXRay, double distance, int axis, class KX_Scene *ketsjiScene)
virtual ~KX_RaySensor ()
virtual CValueGetReplica ()
virtual bool Evaluate ()
virtual bool IsPositiveTrigger ()
virtual void Init ()
bool RayHit (KX_ClientObjectInfo *client, KX_RayCast *result, void *const data)
bool NeedRayCast (KX_ClientObjectInfo *client)
virtual void Replace_IScene (SCA_IScene *val)

Detailed Description

Definition at line 44 of file KX_RaySensor.h.


Member Enumeration Documentation

Enumerator:
KX_RAY_AXIS_POS_Y 
KX_RAY_AXIS_POS_X 
KX_RAY_AXIS_POS_Z 
KX_RAY_AXIS_NEG_X 
KX_RAY_AXIS_NEG_Y 
KX_RAY_AXIS_NEG_Z 

Definition at line 85 of file KX_RaySensor.h.


Constructor & Destructor Documentation

KX_RaySensor::KX_RaySensor ( class SCA_EventManager eventmgr,
SCA_IObject gameobj,
const STR_String propname,
bool  bFindMaterial,
bool  bXRay,
double  distance,
int  axis,
class KX_Scene ketsjiScene 
)

Definition at line 54 of file KX_RaySensor.cpp.

References Init().

Referenced by GetReplica().

KX_RaySensor::~KX_RaySensor ( ) [virtual]

Definition at line 83 of file KX_RaySensor.cpp.


Member Function Documentation

bool KX_RaySensor::Evaluate ( ) [virtual]
CValue * KX_RaySensor::GetReplica ( void  ) [virtual]

Implements SCA_ISensor.

Definition at line 90 of file KX_RaySensor.cpp.

References Init(), KX_RaySensor(), and SCA_ISensor::ProcessReplica().

void KX_RaySensor::Init ( void  ) [virtual]

Reimplemented from SCA_ISensor.

Definition at line 75 of file KX_RaySensor.cpp.

References SCA_ISensor::m_invert, SCA_ISensor::m_reset, and NULL.

Referenced by GetReplica(), and KX_RaySensor().

bool KX_RaySensor::IsPositiveTrigger ( ) [virtual]

Reimplemented from SCA_ISensor.

Definition at line 101 of file KX_RaySensor.cpp.

References SCA_ISensor::m_invert.

bool KX_RaySensor::NeedRayCast ( KX_ClientObjectInfo client)
bool KX_RaySensor::RayHit ( KX_ClientObjectInfo client,
KX_RayCast result,
void *const  data 
)
virtual void KX_RaySensor::Replace_IScene ( SCA_IScene val) [inline, virtual]

Reimplemented from SCA_ILogicBrick.

Definition at line 79 of file KX_RaySensor.h.

References simple_enum_gen::val.


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