From 0ea5fc66924303d1bf73ba283a383e2aadee02f2 Mon Sep 17 00:00:00 2001 From: neodarz Date: Sat, 11 Aug 2018 20:21:34 +0200 Subject: Initial commit --- .../nel/classNLPACS_1_1CPrimitiveWorldImage.html | 3082 ++++++++++++++++++++ 1 file changed, 3082 insertions(+) create mode 100644 docs/doxygen/nel/classNLPACS_1_1CPrimitiveWorldImage.html (limited to 'docs/doxygen/nel/classNLPACS_1_1CPrimitiveWorldImage.html') diff --git a/docs/doxygen/nel/classNLPACS_1_1CPrimitiveWorldImage.html b/docs/doxygen/nel/classNLPACS_1_1CPrimitiveWorldImage.html new file mode 100644 index 00000000..ebd30cfe --- /dev/null +++ b/docs/doxygen/nel/classNLPACS_1_1CPrimitiveWorldImage.html @@ -0,0 +1,3082 @@ + + + + nevrax.org : docs + + + + + + + + + + + + + + +
# 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  
+

NLPACS::CPrimitiveWorldImage Class Reference

Data for the primitive duplicated for each world image it is linked. +More... +

+#include <primitive_world_image.h> +

+List of all members. + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +

Public Methods

 CPrimitiveWorldImage ()
void deleteIt (CMoveContainer &container, uint8 worldImage)
void copy (const CPrimitiveWorldImage &source)
void setGlobalPosition (const UGlobalPosition &pos, CMoveContainer &container, CMovePrimitive &primitive, uint8 worldImage)
 Set the global position of the move primitive. More...

void setGlobalPosition (const NLMISC::CVectorD &pos, CMoveContainer &container, CMovePrimitive &primitive, uint8 worldImage, bool keepZ=false)
 Set the global position of the move primitive. More...

NLMISC::CVectorD getFinalPosition () const
 Get the position of the move primitive at the end of the movement. More...

void setOrientation (double rot, CMoveContainer *container, CMovePrimitive *primitive, uint8 worldImage)
 Set the new orientation of the move primitive. More...

void move (const NLMISC::CVectorD &speed, CMoveContainer &container, CMovePrimitive &primitive, uint8 worldImage)
 Set the speed vector for this primitive. More...

void setSpeed (const NLMISC::CVectorD &speed, CMoveContainer *container, CMovePrimitive *primitive, uint8 worldImage)
 Set the speed vector for this primitive. More...

const NLMISC::CVectorDgetSpeed () const
 Get the speed vector for this primitive. More...

bool isInModifiedListFlag ()
 Is in modified list ? More...

void setInModifiedListFlag (bool itis)
 Clear the inModifiedList flag. More...

void linkInModifiedList (CMovePrimitive *next)
bool isInWorldImageFlag ()
 Is in modified list ? More...

void setInWorldImageFlag (bool itis)
 Clear the inModifiedList flag. More...

CMovePrimitivegetNextModified () const
 Get next modified primitive. More...

double getBBXMin () const
 Return min of the bounding box in X. More...

double getBBYMin () const
 Return min of the bounding box in Y. More...

double getBBXMax () const
 Return max of the bounding box in X. More...

double getBBYMax () const
 Return max of the bounding box in Y. More...

const NLMISC::CVectorDgetDeltaPosition () const
 Return the delta position. More...

CMoveElementgetMoveElement (uint i)
 Return the nieme MoveElement. The primitive can have 4 move elements. Can be NULL if the ineme elment is not in a list. More...

void removeMoveElement (uint i, CMoveContainer &container, uint8 worldImage)
 Remove the nieme MoveElement. More...

void addMoveElement (CMoveCell &cell, uint16 x, uint16 y, double centerX, double centerY, CMovePrimitive *primitive, CMoveContainer &container, uint8 worldImage)
 Add the primitive in the cell and resort the list. More...

void CPrimitiveWorldImage::addMoveElementendOfList (CMoveCell &cell, uint16 x, uint16 y, CMovePrimitive *primitive, CMoveContainer &container)
 Add the primitive in the cell at the end of the list and don't sort. More...

void update (double beginTime, double endTime, CMovePrimitive &primitive)
 Update precalculated data. More...

void checkSortedList (uint8 worldImage)
 Check sorted lists. More...

const UGlobalPositiongetGlobalPosition ()
double getOrientation () const
void dirtPos (CMoveContainer *container, CMovePrimitive *primitive, uint8 worldImage)
void dirtBB (CMoveContainer *container, CMovePrimitive *primitive, uint8 worldImage)
double getInitTime () const
void precalcPos (CMovePrimitive &primitive)
void precalcSpeed ()
void precalcBB (double beginTime, double endTime, CMovePrimitive &primitive)
bool evalCollision (CPrimitiveWorldImage &other, class CCollisionDesc &desc, double timeMin, double timeMax, uint32 testTime, uint32 maxTestIteration, double &firstContactTime, double &lastContactTime, CMovePrimitive &primitive, CMovePrimitive &otherPrimitive)
 Eval collisions with the other primitive. More...

bool evalCollisionOBoverOB (CPrimitiveWorldImage &other, CCollisionDesc &desc, double timeMin, double timeMax, double &firstContactTime, double &lastContactTime, CMovePrimitive &primitive, CMovePrimitive &otherPrimitive)
bool evalCollisionOBoverOC (CPrimitiveWorldImage &other, CCollisionDesc &desc, double timeMin, double timeMax, double &firstContactTime, double &lastContactTime, CMovePrimitive &primitive, CMovePrimitive &otherPrimitive)
bool evalCollisionOCoverOC (CPrimitiveWorldImage &other, CCollisionDesc &desc, double timeMin, double timeMax, double &firstContactTime, double &lastContactTime, CMovePrimitive &primitive, CMovePrimitive &otherPrimitive)
bool evalCollisionPoverS (CPrimitiveWorldImage &other, CCollisionDesc &desc, uint numPoint, uint numSeg, CMovePrimitive &primitive, CMovePrimitive &otherPrimitive)
bool evalCollisionPoverOC (CPrimitiveWorldImage &other, CCollisionDesc &desc, uint numPoint, double &firstContactTime, double &lastContactTime, CMovePrimitive &primitive, CMovePrimitive &otherPrimitive)
bool evalCollisionSoverOC (CPrimitiveWorldImage &other, CCollisionDesc &desc, uint numPoint, CMovePrimitive &primitive, CMovePrimitive &otherPrimitive)
const TCollisionSurfaceDescVectorevalCollision (CGlobalRetriever &retriever, CCollisionSurfaceTemp &surfaceTemp, uint32 testTime, uint32 maxTestIteration, CMovePrimitive &primitive)
 Eval collisions with the global retriever. More...

void doMove (CGlobalRetriever &retriever, CCollisionSurfaceTemp &surfaceTemp, double originalMax, double finalMax, bool keepZ=false)
void doMove (double timeMax)
void reaction (CPrimitiveWorldImage &second, const CCollisionDesc &desc, CGlobalRetriever *retriver, CCollisionSurfaceTemp &surfaceTemp, bool collision, CMovePrimitive &primitive, CMovePrimitive &otherPrimitive, CMoveContainer *container, uint8 worldImage, uint8 secondWorldImage, bool secondConst)
void reaction (const CCollisionSurfaceDesc &surfaceDesc, const UGlobalPosition &globalPosition, CGlobalRetriever &retriever, double ratio, double dt, CMovePrimitive &primitive, CMoveContainer &container, uint8 worldImage)

Private Types

enum  TDynamicFlags {
+  DirtPosFlag = 0x0001, +DirtBBFlag = 0x0002, +InModifiedListFlag = 0x0004, +InWorldImageFlag = 0x0008, +
+  ForceSize = 0xffff +
+ }

Private Attributes

uint16 _DynamicFlags
CPosition _Position
double _InitTime
NLMISC::CVectorD _3dInitPosition
NLMISC::CVectorD _DeltaPosition
NLMISC::CVectorD _Speed
double _BBXMin
double _BBYMin
double _BBXMax
double _BBYMax
CMovePrimitive_NextModified
CMoveElement_MoveElement [4]
double PointPosX [4]
double PointPosY [4]
double EdgeDirectionX [4]
double EdgeDirectionY [4]
double Orientation
   struct {
      double   PointPosX [4]
      double   PointPosY [4]
      double   EdgeDirectionX [4]
      double   EdgeDirectionY [4]
      double   Orientation
   } _OBData
+


Detailed Description

+Data for the primitive duplicated for each world image it is linked. +

+

+Author:
+Cyril 'Hulud' Corvazier , Nevrax France
+Date:
+2001
+

+ +

+Definition at line 43 of file primitive_world_image.h.


Member Enumeration Documentation

+

+ + + + +
+ + +
enum NLPACS::CPrimitiveWorldImage::TDynamicFlags [private] +
+
+ + + + + +
+   + + +

+

+Enumeration values:
+ + + + + + +
DirtPosFlag  +
DirtBBFlag  +
InModifiedListFlag  +
InWorldImageFlag  +
ForceSize  +
+
+ +

+Definition at line 385 of file primitive_world_image.h.

+


Constructor & Destructor Documentation

+

+ + + + +
+ + + + + + + + + +
NLPACS::CPrimitiveWorldImage::CPrimitiveWorldImage  
+
+ + + + + +
+   + + +

+ +

+Definition at line 42 of file primitive_world_image.cpp. +

+References _BBXMax, _BBXMin, _BBYMax, _BBYMin, _DynamicFlags, and _MoveElement.

+


Member Function Documentation

+

+ + + + +
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
void NLPACS::CPrimitiveWorldImage::addMoveElement CMoveCell  cell,
uint16   x,
uint16   y,
double   centerX,
double   centerY,
CMovePrimitive  primitive,
CMoveContainer  container,
uint8   worldImage
+
+ + + + + +
+   + + +

+Add the primitive in the cell and resort the list. +

+ +

+Definition at line 1055 of file primitive_world_image.cpp. +

+References _BBXMax, _BBXMin, _MoveElement, x, and y.

+

+ + + + +
+ + + + + + + + + + +
void NLPACS::CPrimitiveWorldImage::checkSortedList uint8   worldImage
+
+ + + + + +
+   + + +

+Check sorted lists. +

+ +

+Definition at line 1146 of file primitive_world_image.cpp. +

+References _BBXMin, _MoveElement, and nlassertonce.

+

+ + + + +
+ + + + + + + + + + +
void NLPACS::CPrimitiveWorldImage::copy const CPrimitiveWorldImage &   source
+
+ + + + + +
+   + + +

+ +

+Definition at line 66 of file primitive_world_image.cpp. +

+References _DynamicFlags, _MoveElement, and InModifiedListFlag.

+

+ + + + +
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
void NLPACS::CPrimitiveWorldImage::CPrimitiveWorldImage::addMoveElementendOfList CMoveCell  cell,
uint16   x,
uint16   y,
CMovePrimitive  primitive,
CMoveContainer  container
+
+ + + + + +
+   + + +

+Add the primitive in the cell at the end of the list and don't sort. +

+

+

+ + + + +
+ + + + + + + + + + + + + + + + + + + +
void NLPACS::CPrimitiveWorldImage::deleteIt CMoveContainer  container,
uint8   worldImage
+
+ + + + + +
+   + + +

+ +

+Definition at line 57 of file primitive_world_image.cpp. +

+References _MoveElement, and removeMoveElement.

+

+ + + + +
+ + + + + + + + + + + + + + + + + + + + + + + + + +
void NLPACS::CPrimitiveWorldImage::dirtBB CMoveContainer  container,
CMovePrimitive  primitive,
uint8   worldImage
[inline]
+
+ + + + + +
+   + + +

+ +

+Definition at line 277 of file primitive_world_image.h. +

+References _DynamicFlags, and DirtBBFlag. +

+Referenced by dirtPos.

+

+ + + + +
+ + + + + + + + + + + + + + + + + + + + + + + + + +
void NLPACS::CPrimitiveWorldImage::dirtPos CMoveContainer  container,
CMovePrimitive  primitive,
uint8   worldImage
[inline]
+
+ + + + + +
+   + + +

+ +

+Definition at line 270 of file primitive_world_image.h. +

+References _DynamicFlags, dirtBB, and DirtPosFlag. +

+Referenced by move, reaction, setGlobalPosition, setOrientation, and setSpeed.

+

+ + + + +
+ + + + + + + + + + +
void NLPACS::CPrimitiveWorldImage::doMove double   timeMax
+
+ + + + + +
+   + + +

+ +

+Definition at line 229 of file primitive_world_image.cpp. +

+References _InitTime, _Position, _Speed, NLPACS::CPrimitiveWorldImage::CPosition::getPos, and NLPACS::CPrimitiveWorldImage::CPosition::setPos.

+

+ + + + +
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
void NLPACS::CPrimitiveWorldImage::doMove CGlobalRetriever  retriever,
CCollisionSurfaceTemp  surfaceTemp,
double   originalMax,
double   finalMax,
bool   keepZ = false
+
+ + + + + +
+   + + +

+ +

+Definition at line 201 of file primitive_world_image.cpp. +

+References _DeltaPosition, _InitTime, _Position, NLPACS::CPrimitiveWorldImage::CPosition::getGlobalPos, NLPACS::CPrimitiveWorldImage::CPosition::setGlobalPos, and NLPACS::CPrimitiveWorldImage::CPosition::setGlobalPosKeepZ.

+

+ + + + +
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
const TCollisionSurfaceDescVector * NLPACS::CPrimitiveWorldImage::evalCollision CGlobalRetriever  retriever,
CCollisionSurfaceTemp  surfaceTemp,
uint32   testTime,
uint32   maxTestIteration,
CMovePrimitive  primitive
+
+ + + + + +
+   + + +

+Eval collisions with the global retriever. +

+

+Parameters:
+ + + + +
retriever  +is the global retriever used to test collision
timeMin  +is the time you want to clip collision result in the past.
timeMax  +is the time you want to clip collision result in the futur.
+
+Returns:
+true if a collision has been detected in the time range, else false.
+

+Definition at line 166 of file primitive_world_image.cpp. +

+References _DeltaPosition, _OBData, _Position, NLPACS::CPrimitiveWorldImage::CPosition::getGlobalPos, nlassert, and NLPACS::TCollisionSurfaceDescVector.

+

+ + + + +
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
bool NLPACS::CPrimitiveWorldImage::evalCollision CPrimitiveWorldImage &   other,
class CCollisionDesc  desc,
double   timeMin,
double   timeMax,
uint32   testTime,
uint32   maxTestIteration,
double &   firstContactTime,
double &   lastContactTime,
CMovePrimitive  primitive,
CMovePrimitive  otherPrimitive
+
+ + + + + +
+   + + +

+Eval collisions with the other primitive. +

+

+Parameters:
+ + + + + +
other  +is another move primitive to test collisions with.
desc  +is a collision descriptor filled with information about the collision context if the method return true.
timeMin  +is the time you want to clip collision result in the past.
timeMax  +is the time you want to clip collision result in the futur.
+
+Returns:
+true if a collision has been detected in the time range, else false.
+

+Definition at line 81 of file primitive_world_image.cpp. +

+References evalCollisionOBoverOB, evalCollisionOBoverOC, evalCollisionOCoverOC, and nlstop.

+

+ + + + +
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
bool NLPACS::CPrimitiveWorldImage::evalCollisionOBoverOB CPrimitiveWorldImage &   other,
CCollisionDesc  desc,
double   timeMin,
double   timeMax,
double &   firstContactTime,
double &   lastContactTime,
CMovePrimitive  primitive,
CMovePrimitive  otherPrimitive
+
+ + + + + +
+   + + +

+ +

+Definition at line 242 of file primitive_world_image.cpp. +

+References evalCollisionPoverS, and nlassert. +

+Referenced by evalCollision.

+

+ + + + +
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
bool NLPACS::CPrimitiveWorldImage::evalCollisionOBoverOC CPrimitiveWorldImage &   other,
CCollisionDesc  desc,
double   timeMin,
double   timeMax,
double &   firstContactTime,
double &   lastContactTime,
CMovePrimitive  primitive,
CMovePrimitive  otherPrimitive
+
+ + + + + +
+   + + +

+ +

+Definition at line 348 of file primitive_world_image.cpp. +

+References evalCollisionPoverOC, evalCollisionSoverOC, and nlassert. +

+Referenced by evalCollision.

+

+ + + + +
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
bool NLPACS::CPrimitiveWorldImage::evalCollisionOCoverOC CPrimitiveWorldImage &   other,
CCollisionDesc  desc,
double   timeMin,
double   timeMax,
double &   firstContactTime,
double &   lastContactTime,
CMovePrimitive  primitive,
CMovePrimitive  otherPrimitive
+
+ + + + + +
+   + + +

+ +

+Definition at line 779 of file primitive_world_image.cpp. +

+References _3dInitPosition, _Speed, nlassert, NLPACS::secondDegree, NLMISC::CVectorD::x, NLMISC::CVectorD::y, and NLMISC::CVectorD::z. +

+Referenced by evalCollision.

+

+ + + + +
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
bool NLPACS::CPrimitiveWorldImage::evalCollisionPoverOC CPrimitiveWorldImage &   other,
CCollisionDesc  desc,
uint   numPoint,
double &   firstContactTime,
double &   lastContactTime,
CMovePrimitive  primitive,
CMovePrimitive  otherPrimitive
+
+ + + + + +
+   + + +

+ +

+Definition at line 572 of file primitive_world_image.cpp. +

+References _3dInitPosition, _OBData, _Speed, nlassert, NLPACS::secondDegree, NLMISC::CVectorD::x, NLMISC::CVectorD::y, and NLMISC::CVectorD::z. +

+Referenced by evalCollisionOBoverOC.

+

+ + + + +
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
bool NLPACS::CPrimitiveWorldImage::evalCollisionPoverS CPrimitiveWorldImage &   other,
CCollisionDesc  desc,
uint   numPoint,
uint   numSeg,
CMovePrimitive  primitive,
CMovePrimitive  otherPrimitive
+
+ + + + + +
+   + + +

+ +

+Definition at line 454 of file primitive_world_image.cpp. +

+References _3dInitPosition, _OBData, _Speed, nlassert, NLMISC::CVectorD::x, NLMISC::CVectorD::y, and NLMISC::CVectorD::z. +

+Referenced by evalCollisionOBoverOB.

+

+ + + + +
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
bool NLPACS::CPrimitiveWorldImage::evalCollisionSoverOC CPrimitiveWorldImage &   other,
CCollisionDesc  desc,
uint   numPoint,
CMovePrimitive  primitive,
CMovePrimitive  otherPrimitive
+
+ + + + + +
+   + + +

+ +

+Definition at line 688 of file primitive_world_image.cpp. +

+References _3dInitPosition, _OBData, _Speed, nlassert, NLMISC::CVectorD::x, NLMISC::CVectorD::y, and NLMISC::CVectorD::z. +

+Referenced by evalCollisionOBoverOC.

+

+ + + + +
+ + + + + + + + + +
double NLPACS::CPrimitiveWorldImage::getBBXMax   const [inline]
+
+ + + + + +
+   + + +

+Return max of the bounding box in X. +

+ +

+Definition at line 192 of file primitive_world_image.h. +

+References _BBXMax.

+

+ + + + +
+ + + + + + + + + +
double NLPACS::CPrimitiveWorldImage::getBBXMin   const [inline]
+
+ + + + + +
+   + + +

+Return min of the bounding box in X. +

+ +

+Definition at line 176 of file primitive_world_image.h. +

+References _BBXMin.

+

+ + + + +
+ + + + + + + + + +
double NLPACS::CPrimitiveWorldImage::getBBYMax   const [inline]
+
+ + + + + +
+   + + +

+Return max of the bounding box in Y. +

+ +

+Definition at line 200 of file primitive_world_image.h. +

+References _BBYMax.

+

+ + + + +
+ + + + + + + + + +
double NLPACS::CPrimitiveWorldImage::getBBYMin   const [inline]
+
+ + + + + +
+   + + +

+Return min of the bounding box in Y. +

+ +

+Definition at line 184 of file primitive_world_image.h. +

+References _BBYMin.

+

+ + + + +
+ + + + + + + + + +
const NLMISC::CVectorD& NLPACS::CPrimitiveWorldImage::getDeltaPosition   const [inline]
+
+ + + + + +
+   + + +

+Return the delta position. +

+ +

+Definition at line 208 of file primitive_world_image.h. +

+References _DeltaPosition.

+

+ + + + +
+ + + + + + + + + +
NLMISC::CVectorD NLPACS::CPrimitiveWorldImage::getFinalPosition   const [inline]
+
+ + + + + +
+   + + +

+Get the position of the move primitive at the end of the movement. +

+

+Returns:
+the new position of the primitive.
+

+Definition at line 78 of file primitive_world_image.h. +

+References _Position, and NLPACS::CPrimitiveWorldImage::CPosition::getPos.

+

+ + + + +
+ + + + + + + + + +
const UGlobalPosition& NLPACS::CPrimitiveWorldImage::getGlobalPosition   [inline]
+
+ + + + + +
+   + + +

+ +

+Definition at line 258 of file primitive_world_image.h. +

+References _Position, and NLPACS::CPrimitiveWorldImage::CPosition::getGlobalPos.

+

+ + + + +
+ + + + + + + + + +
double NLPACS::CPrimitiveWorldImage::getInitTime   const [inline]
+
+ + + + + +
+   + + +

+ +

+Definition at line 286 of file primitive_world_image.h. +

+References _InitTime.

+

+ + + + +
+ + + + + + + + + + +
CMoveElement* NLPACS::CPrimitiveWorldImage::getMoveElement uint   i [inline]
+
+ + + + + +
+   + + +

+Return the nieme MoveElement. The primitive can have 4 move elements. Can be NULL if the ineme elment is not in a list. +

+ +

+Definition at line 214 of file primitive_world_image.h. +

+References _MoveElement.

+

+ + + + +
+ + + + + + + + + +
CMovePrimitive* NLPACS::CPrimitiveWorldImage::getNextModified   const [inline]
+
+ + + + + +
+   + + +

+Get next modified primitive. +

+ +

+Definition at line 168 of file primitive_world_image.h. +

+References _NextModified.

+

+ + + + +
+ + + + + + + + + +
double NLPACS::CPrimitiveWorldImage::getOrientation   const [inline]
+
+ + + + + +
+   + + +

+ +

+Definition at line 264 of file primitive_world_image.h. +

+References _OBData.

+

+ + + + +
+ + + + + + + + + + +
const NLMISC::CVectorD& NLPACS::CPrimitiveWorldImage::getSpeed void   const [inline]
+
+ + + + + +
+   + + +

+Get the speed vector for this primitive. +

+\Return the new speed vector. +

+Definition at line 125 of file primitive_world_image.h. +

+References _Speed.

+

+ + + + +
+ + + + + + + + + +
bool NLPACS::CPrimitiveWorldImage::isInModifiedListFlag   [inline]
+
+ + + + + +
+   + + +

+Is in modified list ? +

+ +

+Definition at line 132 of file primitive_world_image.h. +

+References _DynamicFlags, and InModifiedListFlag.

+

+ + + + +
+ + + + + + + + + +
bool NLPACS::CPrimitiveWorldImage::isInWorldImageFlag   [inline]
+
+ + + + + +
+   + + +

+Is in modified list ? +

+ +

+Definition at line 153 of file primitive_world_image.h. +

+References _DynamicFlags, and InWorldImageFlag.

+

+ + + + +
+ + + + + + + + + + +
void NLPACS::CPrimitiveWorldImage::linkInModifiedList CMovePrimitive  next [inline]
+
+ + + + + +
+   + + +

+ +

+Definition at line 147 of file primitive_world_image.h. +

+References _NextModified.

+

+ + + + +
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
void NLPACS::CPrimitiveWorldImage::move const NLMISC::CVectorD  speed,
CMoveContainer  container,
CMovePrimitive  primitive,
uint8   worldImage
+
+ + + + + +
+   + + +

+Set the speed vector for this primitive. +

+Only for movable primitives.

+Parameters:
+ + +
speed  +is the speed of the primitive.
+
+

+Definition at line 1473 of file primitive_world_image.cpp. +

+References _3dInitPosition, _InitTime, _Position, dirtPos, NLPACS::CPrimitiveWorldImage::CPosition::getPos, and setSpeed.

+

+ + + + +
+ + + + + + + + + + + + + + + + + + + + + + + + + +
void NLPACS::CPrimitiveWorldImage::precalcBB double   beginTime,
double   endTime,
CMovePrimitive  primitive
+
+ + + + + +
+   + + +

+ +

+Definition at line 968 of file primitive_world_image.cpp. +

+References _3dInitPosition, _BBXMax, _BBXMin, _BBYMax, _BBYMin, _DeltaPosition, _OBData, _Speed, min, nlassert, type, NLMISC::CVectorD::x, and NLMISC::CVectorD::y. +

+Referenced by update.

+

+ + + + +
+ + + + + + + + + + +
void NLPACS::CPrimitiveWorldImage::precalcPos CMovePrimitive  primitive
+
+ + + + + +
+   + + +

+ +

+Definition at line 911 of file primitive_world_image.cpp. +

+References _3dInitPosition, _OBData, nlassert, type, NLMISC::CVectorD::x, and NLMISC::CVectorD::y. +

+Referenced by update.

+

+ + + + +
+ + + + + + + + + +
void NLPACS::CPrimitiveWorldImage::precalcSpeed  
+
+ + + + + +
+   + + +

+

+

+ + + + +
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
void NLPACS::CPrimitiveWorldImage::reaction const CCollisionSurfaceDesc  surfaceDesc,
const UGlobalPosition  globalPosition,
CGlobalRetriever  retriever,
double   ratio,
double   dt,
CMovePrimitive  primitive,
CMoveContainer  container,
uint8   worldImage
+
+ + + + + +
+   + + +

+ +

+Definition at line 1350 of file primitive_world_image.cpp. +

+References _3dInitPosition, _InitTime, _Position, _Speed, dirtPos, NLPACS::CPrimitiveWorldImage::CPosition::getPos, NELPACS_DIST_BACK, NLMISC::CVectorD::set, NLPACS::CPrimitiveWorldImage::CPosition::setGlobalPos, and type.

+

+ + + + +
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
void NLPACS::CPrimitiveWorldImage::reaction CPrimitiveWorldImage &   second,
const CCollisionDesc  desc,
CGlobalRetriever  retriver,
CCollisionSurfaceTemp  surfaceTemp,
bool   collision,
CMovePrimitive  primitive,
CMovePrimitive  otherPrimitive,
CMoveContainer  container,
uint8   worldImage,
uint8   secondWorldImage,
bool   secondConst
+
+ + + + + +
+   + + +

+ +

+Definition at line 1164 of file primitive_world_image.cpp. +

+References _3dInitPosition, _DeltaPosition, _InitTime, _Position, _Speed, NLMISC::clamp, dirtPos, NLPACS::CPrimitiveWorldImage::CPosition::getGlobalPos, NLPACS::CPrimitiveWorldImage::CPosition::getPos, nlassert, NLMISC::CVectorD::norm, NLMISC::CVectorD::set, NLPACS::CPrimitiveWorldImage::CPosition::setGlobalPos, NLPACS::CPrimitiveWorldImage::CPosition::setPos, and setSpeed.

+

+ + + + +
+ + + + + + + + + + + + + + + + + + + + + + + + + +
void NLPACS::CPrimitiveWorldImage::removeMoveElement uint   i,
CMoveContainer  container,
uint8   worldImage
+
+ + + + + +
+   + + +

+Remove the nieme MoveElement. +

+ +

+Definition at line 1128 of file primitive_world_image.cpp. +

+References _MoveElement, and nlassert. +

+Referenced by deleteIt.

+

+ + + + +
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
void NLPACS::CPrimitiveWorldImage::setGlobalPosition const NLMISC::CVectorD  pos,
CMoveContainer  container,
CMovePrimitive  primitive,
uint8   worldImage,
bool   keepZ = false
+
+ + + + + +
+   + + +

+Set the global position of the move primitive. +

+Setting the global position can take a long time if you use a UGlobalRetriever. Set the position with this method only the first time or for teleporting.

+Parameters:
+ + +
pos  +is the new global position of the primitive.
+
+

+Definition at line 1429 of file primitive_world_image.cpp. +

+References _3dInitPosition, _InitTime, _Position, _Speed, dirtPos, NLPACS::CPrimitiveWorldImage::CPosition::getPos, nlassert, NLPACS::CPrimitiveWorldImage::CPosition::setGlobalPos, NLPACS::CPrimitiveWorldImage::CPosition::setPos, and NLMISC::CVectorD::z.

+

+ + + + +
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
void NLPACS::CPrimitiveWorldImage::setGlobalPosition const UGlobalPosition  pos,
CMoveContainer  container,
CMovePrimitive  primitive,
uint8   worldImage
+
+ + + + + +
+   + + +

+Set the global position of the move primitive. +

+

+Parameters:
+ + +
pos  +is the new global position of the primitive.
+
+

+Definition at line 1404 of file primitive_world_image.cpp. +

+References _3dInitPosition, _InitTime, _Position, _Speed, dirtPos, NLPACS::CPrimitiveWorldImage::CPosition::getPos, nlassert, and NLPACS::CPrimitiveWorldImage::CPosition::setGlobalPos.

+

+ + + + +
+ + + + + + + + + + +
void NLPACS::CPrimitiveWorldImage::setInModifiedListFlag bool   itis [inline]
+
+ + + + + +
+   + + +

+Clear the inModifiedList flag. +

+ +

+Definition at line 138 of file primitive_world_image.h. +

+References _DynamicFlags, and InModifiedListFlag.

+

+ + + + +
+ + + + + + + + + + +
void NLPACS::CPrimitiveWorldImage::setInWorldImageFlag bool   itis [inline]
+
+ + + + + +
+   + + +

+Clear the inModifiedList flag. +

+ +

+Definition at line 159 of file primitive_world_image.h. +

+References _DynamicFlags, and InWorldImageFlag.

+

+ + + + +
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
void NLPACS::CPrimitiveWorldImage::setOrientation double   rot,
CMoveContainer  container,
CMovePrimitive  primitive,
uint8   worldImage
[inline]
+
+ + + + + +
+   + + +

+Set the new orientation of the move primitive. +

+Only for the box primitives.

+Parameters:
+ + +
rot  +is the new OZ rotation in radian.
+
+

+Definition at line 89 of file primitive_world_image.h. +

+References _OBData, and dirtPos.

+

+ + + + +
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
void NLPACS::CPrimitiveWorldImage::setSpeed const NLMISC::CVectorD  speed,
CMoveContainer  container,
CMovePrimitive  primitive,
uint8   worldImage
[inline]
+
+ + + + + +
+   + + +

+Set the speed vector for this primitive. +

+

+Parameters:
+ + +
speed  +is the new speed vector.
+
+

+Definition at line 111 of file primitive_world_image.h. +

+References _Speed, and dirtPos. +

+Referenced by move, and reaction.

+

+ + + + +
+ + + + + + + + + + + + + + + + + + + + + + + + + +
void NLPACS::CPrimitiveWorldImage::update double   beginTime,
double   endTime,
CMovePrimitive  primitive
[inline]
+
+ + + + + +
+   + + +

+Update precalculated data. +

+ +

+Definition at line 231 of file primitive_world_image.h. +

+References _DynamicFlags, DirtBBFlag, DirtPosFlag, precalcBB, and precalcPos.

+


Member Data Documentation

+

+ + + + +
+ + +
NLMISC::CVectorD NLPACS::CPrimitiveWorldImage::_3dInitPosition [private] +
+
+ + + + + +
+   + + +

+ +

+Definition at line 463 of file primitive_world_image.h. +

+Referenced by evalCollisionOCoverOC, evalCollisionPoverOC, evalCollisionPoverS, evalCollisionSoverOC, move, precalcBB, precalcPos, reaction, and setGlobalPosition.

+

+ + + + +
+ + +
double NLPACS::CPrimitiveWorldImage::_BBXMax [private] +
+
+ + + + + +
+   + + +

+ +

+Definition at line 474 of file primitive_world_image.h. +

+Referenced by addMoveElement, CPrimitiveWorldImage, getBBXMax, and precalcBB.

+

+ + + + +
+ + +
double NLPACS::CPrimitiveWorldImage::_BBXMin [private] +
+
+ + + + + +
+   + + +

+ +

+Definition at line 472 of file primitive_world_image.h. +

+Referenced by addMoveElement, checkSortedList, CPrimitiveWorldImage, getBBXMin, and precalcBB.

+

+ + + + +
+ + +
double NLPACS::CPrimitiveWorldImage::_BBYMax [private] +
+
+ + + + + +
+   + + +

+ +

+Definition at line 475 of file primitive_world_image.h. +

+Referenced by CPrimitiveWorldImage, getBBYMax, and precalcBB.

+

+ + + + +
+ + +
double NLPACS::CPrimitiveWorldImage::_BBYMin [private] +
+
+ + + + + +
+   + + +

+ +

+Definition at line 473 of file primitive_world_image.h. +

+Referenced by CPrimitiveWorldImage, getBBYMin, and precalcBB.

+

+ + + + +
+ + +
NLMISC::CVectorD NLPACS::CPrimitiveWorldImage::_DeltaPosition [private] +
+
+ + + + + +
+   + + +

+ +

+Definition at line 466 of file primitive_world_image.h. +

+Referenced by doMove, evalCollision, getDeltaPosition, precalcBB, and reaction.

+

+ + + + +
+ + +
uint16 NLPACS::CPrimitiveWorldImage::_DynamicFlags [private] +
+
+ + + + + +
+   + + +

+ +

+Definition at line 404 of file primitive_world_image.h. +

+Referenced by copy, CPrimitiveWorldImage, dirtBB, dirtPos, isInModifiedListFlag, isInWorldImageFlag, setInModifiedListFlag, setInWorldImageFlag, and update.

+

+ + + + +
+ + +
double NLPACS::CPrimitiveWorldImage::_InitTime [private] +
+
+ + + + + +
+   + + +

+ +

+Definition at line 460 of file primitive_world_image.h. +

+Referenced by doMove, getInitTime, move, reaction, and setGlobalPosition.

+

+ + + + +
+ + +
CMoveElement* NLPACS::CPrimitiveWorldImage::_MoveElement[4] [private] +
+
+ + + + + +
+   + + +

+ +

+Definition at line 500 of file primitive_world_image.h. +

+Referenced by addMoveElement, checkSortedList, copy, CPrimitiveWorldImage, deleteIt, getMoveElement, and removeMoveElement.

+

+ + + + +
+ + +
CMovePrimitive* NLPACS::CPrimitiveWorldImage::_NextModified [private] +
+
+ + + + + +
+   + + +

+ +

+Definition at line 497 of file primitive_world_image.h. +

+Referenced by getNextModified, and linkInModifiedList.

+

+ + + + +
+ + +
struct { ... } NLPACS::CPrimitiveWorldImage::_OBData [private] +
+
+ + + + + +
+   + + +

+ +

+Referenced by evalCollision, evalCollisionPoverOC, evalCollisionPoverS, evalCollisionSoverOC, getOrientation, precalcBB, precalcPos, and setOrientation.

+

+ + + + +
+ + +
CPosition NLPACS::CPrimitiveWorldImage::_Position [private] +
+
+ + + + + +
+   + + +

+ +

+Definition at line 457 of file primitive_world_image.h. +

+Referenced by doMove, evalCollision, getFinalPosition, getGlobalPosition, move, reaction, and setGlobalPosition.

+

+ + + + +
+ + +
NLMISC::CVectorD NLPACS::CPrimitiveWorldImage::_Speed [private] +
+
+ + + + + +
+   + + +

+ +

+Definition at line 469 of file primitive_world_image.h. +

+Referenced by doMove, evalCollisionOCoverOC, evalCollisionPoverOC, evalCollisionPoverS, evalCollisionSoverOC, getSpeed, precalcBB, reaction, setGlobalPosition, and setSpeed.

+

+ + + + +
+ + +
double NLPACS::CPrimitiveWorldImage::EdgeDirectionX[4] [private] +
+
+ + + + + +
+   + + +

+ +

+Definition at line 488 of file primitive_world_image.h.

+

+ + + + +
+ + +
double NLPACS::CPrimitiveWorldImage::EdgeDirectionY[4] [private] +
+
+ + + + + +
+   + + +

+ +

+Definition at line 489 of file primitive_world_image.h.

+

+ + + + +
+ + +
double NLPACS::CPrimitiveWorldImage::Orientation [private] +
+
+ + + + + +
+   + + +

+ +

+Definition at line 492 of file primitive_world_image.h.

+

+ + + + +
+ + +
double NLPACS::CPrimitiveWorldImage::PointPosX[4] [private] +
+
+ + + + + +
+   + + +

+ +

+Definition at line 484 of file primitive_world_image.h.

+

+ + + + +
+ + +
double NLPACS::CPrimitiveWorldImage::PointPosY[4] [private] +
+
+ + + + + +
+   + + +

+ +

+Definition at line 485 of file primitive_world_image.h.

+


The documentation for this class was generated from the following files: + + + +
                                                                                                                                                                    +
+ + -- cgit v1.2.1