# Home    # nevrax.com   
Nevrax
Nevrax.org
#News
#Mailing-list
#Documentation
#CVS
#Bugs
#License
Docs
 
Documentation  
Main Page   Namespace List   Class Hierarchy   Alphabetical List   Compound List   File List   Namespace Members   Compound Members   File Members   Related Pages   Search  

NLAIAGENT::IVector Class Reference

This define encapsulate a vector and manage its manipulation. More...

#include <agent_3dvector.h>

Inheritance diagram for NLAIAGENT::IVector:

NLAIAGENT::IObjetOp NLAIAGENT::IObjectIA NLAIAGENT::IBasicObjectIA NLAIC::IBasicInterface NLAIC::IBasicType NLAIC::IPointerGestion NLMISC::IStreamable NLMISC::IClassable NLAIAGENT::VectorType List of all members.

Public Methods

 IVector (double x, double y, double z)
 Constructor. More...

 IVector (const NLMISC::CVectorD &v)
 IVector (const IVector &value)
 IVector ()
 IVector (NLMISC::IStream &is)
virtual ~IVector ()
virtual void save (NLMISC::IStream &os)
 Save the class in a stream. More...

virtual void load (NLMISC::IStream &is)
 Load the class from a stream. More...

virtual bool isEqual (const IBasicObjectIA &a) const
 The bool operator==(const IBasicObjectIA &a) const member method call this function when class 'classType' have the same type of this class, programme have to assume the equality between the memebers of this class and the memeber of the class 'classType'. More...

virtual bool isTrue () const
 throw (NLAIE::CExceptionNotImplemented). More...

const NLMISC::CVectorDgetValueRef () const
NLMISC::CVectorD getValue () const
void setValue (NLMISC::CVectorD value)
double x () const
double y () const
double z () const
void x (const double u)
void y (const double v)
void z (const double w)
double squareLength ()
double length ()
void unit ()
virtual IObjectIAoperator= (const IObjectIA &a)
 Equality operator. More...

virtual IObjetOpoperator+= (const IObjetOp &a)
 add the operater by anather. More...

virtual IObjetOpoperator-= (const IObjetOp &a)
 throw (NLAIE::CExceptionNotImplemented). More...

virtual IObjetOpoperator+ (const IObjetOp &a)
 throw (NLAIE::CExceptionNotImplemented). More...

virtual IObjetOpoperator- (const IObjetOp &a)
 throw (NLAIE::CExceptionNotImplemented). More...

virtual IObjetOpoperator!= (IObjetOp &a) const
 throw (NLAIE::CExceptionNotImplemented). More...

virtual IObjetOpoperator== (IObjetOp &a) const
 throw (NLAIE::CExceptionNotImplemented). More...

virtual sint32 getMethodIndexSize () const
 getMethodIndexSize define the nomber of method define in the class. More...

virtual tQueue isMember (const IVarName *, const IVarName *, const IObjectIA &) const
 The method isMember(nameSubClass,methodName,param) return the best method correspondent to the search. More...

virtual CProcessResult runMethodeMember (sint32, sint32, IObjectIA *)
 The methode runMethodeMember(sint32 heritance, sint32 index, IObjectIA *param) allow us to run a member method. More...

virtual CProcessResult runMethodeMember (sint32 index, IObjectIA *)
 The methode runMethodeMember(sint32 index,IObjectIA *param) allow us to run a own member method. More...

virtual sint32 isClassInheritedFrom (const IVarName &) const
 isClassInheritedFrom(className) allow us to known if this class have a base class with the name className. More...


Protected Attributes

NLMISC::CVectorD _Value

Detailed Description

This define encapsulate a vector and manage its manipulation.

Vector manibulation is need for the script and agent fonctionality.

Author:
Alain SAFFRAY , Guillaume PUZIN , Nevrax France
Date:
2000

Definition at line 47 of file agent_3dvector.h.


Constructor & Destructor Documentation

NLAIAGENT::IVector::IVector double    x,
double    y,
double    z
[inline]
 

Constructor.

Definition at line 55 of file agent_3dvector.h.

References x, y, and z.

Referenced by IVector, operator!=, operator+=, operator-=, operator=, operator==, and NLAIAGENT::VectorType::VectorType.

NLAIAGENT::IVector::IVector const NLMISC::CVectorD   v [inline]
 

Definition at line 59 of file agent_3dvector.h.

References v.

NLAIAGENT::IVector::IVector const IVector &    value [inline]
 

Definition at line 63 of file agent_3dvector.h.

References NLAIAGENT::IObjetOp::IObjetOp, IVector, and value.

NLAIAGENT::IVector::IVector   [inline]
 

Definition at line 66 of file agent_3dvector.h.

NLAIAGENT::IVector::IVector NLMISC::IStream   is [inline]
 

Definition at line 69 of file agent_3dvector.h.

References load.

virtual NLAIAGENT::IVector::~IVector   [inline, virtual]
 

Definition at line 74 of file agent_3dvector.h.


Member Function Documentation

sint32 NLAIAGENT::IVector::getMethodIndexSize   const [virtual]
 

getMethodIndexSize define the nomber of method define in the class.

Reimplemented from NLAIAGENT::IObjetOp.

Definition at line 41 of file agent_3dvector.cpp.

NLMISC::CVectorD NLAIAGENT::IVector::getValue   const [inline]
 

Definition at line 103 of file agent_3dvector.h.

Referenced by NLAIAGENT::VectorType::getDebugString, and operator=.

const NLMISC::CVectorD& NLAIAGENT::IVector::getValueRef   const [inline]
 

Definition at line 98 of file agent_3dvector.h.

sint32 NLAIAGENT::IVector::isClassInheritedFrom const IVarName   const [virtual]
 

isClassInheritedFrom(className) allow us to known if this class have a base class with the name className.

If true the method return the range of the base class, this range is an arbitrary reference id define by the programmer or bay the scrypt. the false return is define by -1.

Reimplemented from NLAIAGENT::IObjectIA.

Definition at line 214 of file agent_3dvector.cpp.

References NLAIC::IBasicType::getType.

virtual bool NLAIAGENT::IVector::isEqual const IBasicObjectIA   a const [inline, virtual]
 

The bool operator==(const IBasicObjectIA &a) const member method call this function when class 'classType' have the same type of this class, programme have to assume the equality between the memebers of this class and the memeber of the class 'classType'.

Implements NLAIAGENT::IBasicObjectIA.

Definition at line 88 of file agent_3dvector.h.

References NLAIAGENT::IBasicObjectIA::IBasicObjectIA, NLAIAGENT::IObjectIA::IObjectIA, and NLAIAGENT::IObjetOp::IObjetOp.

tQueue NLAIAGENT::IVector::isMember const IVarName  ,
const IVarName  ,
const IObjectIA  
const [virtual]
 

The method isMember(nameSubClass,methodName,param) return the best method correspondent to the search.

remember we use the overloadind method.

NameSubClass: if this pointer is not NULL then NameSubClass is the name of the base class were the method are defined.

methodName: is the name of the class.

param: is an IObjectIA where it defined the parametre of the method. lot of method use a IObjectIA vector object with an NLAIC::CIdentType as the the template argm.

Reimplemented from NLAIAGENT::IObjectIA.

Definition at line 49 of file agent_3dvector.cpp.

References _CONSTRUCTOR_, NLAISCRIPT::CParam::eval, NLAIC::IBasicType::getType, NLAIC::IPointerGestion::incRef, NLAIAGENT::IObjetOp::IObjetOp::isMember, param, NLAISCRIPT::CParam::push, NLAISCRIPT::CParam::size, t, NLAIAGENT::tQueue, and NLAIC::CIdentType::VoidType.

virtual bool NLAIAGENT::IVector::isTrue   const [inline, virtual]
 

throw (NLAIE::CExceptionNotImplemented).

Implements NLAIAGENT::IObjetOp.

Definition at line 93 of file agent_3dvector.h.

double NLAIAGENT::IVector::length   [inline]
 

Definition at line 148 of file agent_3dvector.h.

References squareLength.

Referenced by runMethodeMember.

virtual void NLAIAGENT::IVector::load NLMISC::IStream   is [inline, virtual]
 

Load the class from a stream.

Implements NLAIC::IBasicInterface.

Definition at line 83 of file agent_3dvector.h.

References NLMISC::IStream::serial.

Referenced by IVector.

virtual IObjetOp* NLAIAGENT::IVector::operator!= IObjetOp   a const [inline, virtual]
 

throw (NLAIE::CExceptionNotImplemented).

Reimplemented from NLAIAGENT::IObjetOp.

Definition at line 193 of file agent_3dvector.h.

References NLAIAGENT::IObjetOp::IObjetOp, IVector, v, and x.

virtual IObjetOp* NLAIAGENT::IVector::operator+ const IObjetOp   a [inline, virtual]
 

throw (NLAIE::CExceptionNotImplemented).

Reimplemented from NLAIAGENT::IObjetOp.

Definition at line 179 of file agent_3dvector.h.

References NLAIC::IBasicType::clone, and NLAIAGENT::IObjetOp::IObjetOp.

virtual IObjetOp& NLAIAGENT::IVector::operator+= const IObjetOp   a [inline, virtual]
 

add the operater by anather.

Reimplemented from NLAIAGENT::IObjetOp.

Definition at line 165 of file agent_3dvector.h.

References NLAIAGENT::IObjetOp::IObjetOp, IVector, and v.

virtual IObjetOp* NLAIAGENT::IVector::operator- const IObjetOp   a [inline, virtual]
 

throw (NLAIE::CExceptionNotImplemented).

Reimplemented from NLAIAGENT::IObjetOp.

Definition at line 186 of file agent_3dvector.h.

References NLAIC::IBasicType::clone, and NLAIAGENT::IObjetOp::IObjetOp.

virtual IObjetOp& NLAIAGENT::IVector::operator-= const IObjetOp   a [inline, virtual]
 

throw (NLAIE::CExceptionNotImplemented).

Reimplemented from NLAIAGENT::IObjetOp.

Definition at line 172 of file agent_3dvector.h.

References NLAIAGENT::IObjetOp::IObjetOp, IVector, and v.

virtual IObjectIA& NLAIAGENT::IVector::operator= const IObjectIA   a [inline, virtual]
 

Equality operator.

Reimplemented from NLAIAGENT::IObjectIA.

Definition at line 158 of file agent_3dvector.h.

References getValue, NLAIAGENT::IObjectIA::IObjectIA, IVector, and v.

virtual IObjetOp* NLAIAGENT::IVector::operator== IObjetOp   a const [inline, virtual]
 

throw (NLAIE::CExceptionNotImplemented).

Reimplemented from NLAIAGENT::IObjetOp.

Definition at line 200 of file agent_3dvector.h.

References NLAIAGENT::IObjetOp::IObjetOp, IVector, v, and x.

IObjectIA::CProcessResult NLAIAGENT::IVector::runMethodeMember sint32    index,
IObjectIA  
[virtual]
 

The methode runMethodeMember(sint32 index,IObjectIA *param) allow us to run a own member method.

index: is the method id return by the isMember(const IVarName *,const IVarName *,const IObjectIA &) const method. param: is the parametre for the method.

Reimplemented from NLAIAGENT::IObjectIA.

Definition at line 256 of file agent_3dvector.cpp.

References NLAIAGENT::IObjetOp::IObjetOp::runMethodeMember, length, param, NLAIAGENT::processIdle, r, squareLength, unit, x, y, and z.

IObjectIA::CProcessResult NLAIAGENT::IVector::runMethodeMember sint32   ,
sint32   ,
IObjectIA  
[virtual]
 

The methode runMethodeMember(sint32 heritance, sint32 index, IObjectIA *param) allow us to run a member method.

heritance: is the id returned by the methodisClassInheritedFrom(const IVarName &). index: is the method id return by the isMember(const IVarName *,const IVarName *,const IObjectIA &) const method. param: is the parametre for the method.

Reimplemented from NLAIAGENT::IObjectIA.

Definition at line 236 of file agent_3dvector.cpp.

virtual void NLAIAGENT::IVector::save NLMISC::IStream   os [inline, virtual]
 

Save the class in a stream.

Implements NLAIC::IBasicInterface.

Definition at line 78 of file agent_3dvector.h.

References NLMISC::IStream::serial.

void NLAIAGENT::IVector::setValue NLMISC::CVectorD    value [inline]
 

Definition at line 108 of file agent_3dvector.h.

References value.

double NLAIAGENT::IVector::squareLength   [inline]
 

Definition at line 143 of file agent_3dvector.h.

References NLMISC::CVectorD::x, NLMISC::CVectorD::y, and NLMISC::CVectorD::z.

Referenced by length, and runMethodeMember.

void NLAIAGENT::IVector::unit   [inline]
 

Definition at line 153 of file agent_3dvector.h.

References NLMISC::CVectorD::normalize.

Referenced by runMethodeMember.

void NLAIAGENT::IVector::x const double    u [inline]
 

Definition at line 128 of file agent_3dvector.h.

References NLMISC::CVectorD::x.

double NLAIAGENT::IVector::x   const [inline]
 

Definition at line 113 of file agent_3dvector.h.

References NLMISC::CVectorD::x.

Referenced by NLAIAGENT::VectorType::getDebugString, IVector, operator!=, operator==, runMethodeMember, and NLAIAGENT::VectorType::VectorType.

void NLAIAGENT::IVector::y const double    v [inline]
 

Definition at line 133 of file agent_3dvector.h.

References v, and NLMISC::CVectorD::y.

double NLAIAGENT::IVector::y   const [inline]
 

Definition at line 118 of file agent_3dvector.h.

References NLMISC::CVectorD::y.

Referenced by NLAIAGENT::VectorType::getDebugString, IVector, runMethodeMember, and NLAIAGENT::VectorType::VectorType.

void NLAIAGENT::IVector::z const double    w [inline]
 

Definition at line 138 of file agent_3dvector.h.

References w, and NLMISC::CVectorD::z.

double NLAIAGENT::IVector::z   const [inline]
 

Definition at line 123 of file agent_3dvector.h.

References NLMISC::CVectorD::z.

Referenced by NLAIAGENT::VectorType::getDebugString, IVector, runMethodeMember, and NLAIAGENT::VectorType::VectorType.


Member Data Documentation

NLMISC::CVectorD NLAIAGENT::IVector::_Value [protected]
 

Definition at line 50 of file agent_3dvector.h.


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