|
|
|
|
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 ReferenceThis define encapsulate a vector and manage its manipulation.
More...
#include <agent_3dvector.h>
Inheritance diagram for NLAIAGENT::IVector:
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::CVectorD & | getValueRef () 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 IObjectIA & | operator= (const IObjectIA &a) |
| Equality operator. More...
|
virtual IObjetOp & | operator+= (const IObjetOp &a) |
| add the operater by anather. More...
|
virtual IObjetOp & | operator-= (const IObjetOp &a) |
| throw (NLAIE::CExceptionNotImplemented). More...
|
virtual IObjetOp * | operator+ (const IObjetOp &a) |
| throw (NLAIE::CExceptionNotImplemented). More...
|
virtual IObjetOp * | operator- (const IObjetOp &a) |
| throw (NLAIE::CExceptionNotImplemented). More...
|
virtual IObjetOp * | operator!= (IObjetOp &a) const |
| throw (NLAIE::CExceptionNotImplemented). More...
|
virtual IObjetOp * | operator== (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] |
|
NLAIAGENT::IVector::IVector |
( |
const IVector & |
value |
) |
[inline] |
|
NLAIAGENT::IVector::IVector |
( |
|
) |
[inline] |
|
virtual NLAIAGENT::IVector::~IVector |
( |
|
) |
[inline, virtual] |
|
Member Function Documentation
sint32 NLAIAGENT::IVector::getMethodIndexSize |
( |
|
) |
const [virtual] |
|
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 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] |
|
double NLAIAGENT::IVector::length |
( |
|
) |
[inline] |
|
virtual void NLAIAGENT::IVector::load |
( |
NLMISC::IStream & |
is |
) |
[inline, virtual] |
|
virtual IObjetOp* NLAIAGENT::IVector::operator!= |
( |
IObjetOp & |
a |
) |
const [inline, virtual] |
|
virtual IObjetOp* NLAIAGENT::IVector::operator+ |
( |
const IObjetOp & |
a |
) |
[inline, virtual] |
|
virtual IObjetOp& NLAIAGENT::IVector::operator+= |
( |
const IObjetOp & |
a |
) |
[inline, virtual] |
|
virtual IObjetOp* NLAIAGENT::IVector::operator- |
( |
const IObjetOp & |
a |
) |
[inline, virtual] |
|
virtual IObjetOp& NLAIAGENT::IVector::operator-= |
( |
const IObjetOp & |
a |
) |
[inline, virtual] |
|
virtual IObjectIA& NLAIAGENT::IVector::operator= |
( |
const IObjectIA & |
a |
) |
[inline, virtual] |
|
virtual IObjetOp* NLAIAGENT::IVector::operator== |
( |
IObjetOp & |
a |
) |
const [inline, 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. |
|
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] |
|
double NLAIAGENT::IVector::squareLength |
( |
|
) |
[inline] |
|
void NLAIAGENT::IVector::unit |
( |
|
) |
[inline] |
|
void NLAIAGENT::IVector::x |
( |
const double |
u |
) |
[inline] |
|
double NLAIAGENT::IVector::x |
( |
|
) |
const [inline] |
|
void NLAIAGENT::IVector::y |
( |
const double |
v |
) |
[inline] |
|
double NLAIAGENT::IVector::y |
( |
|
) |
const [inline] |
|
void NLAIAGENT::IVector::z |
( |
const double |
w |
) |
[inline] |
|
double NLAIAGENT::IVector::z |
( |
|
) |
const [inline] |
|
Member Data Documentation
The documentation for this class was generated from the following files:
|
|