|
|
|
|
Documentation |
|
Main Page Namespace List Class Hierarchy Alphabetical List Compound List File List Namespace Members Compound Members File Members Related Pages Search
NL3D::ITrav Class ReferenceA base Traversal.
More...
#include <mot.h>
Inheritance diagram for NL3D::ITrav:
List of all members.
Detailed Description
A base Traversal.
A traversal represent a functionality, something which is be performed on a graph of model. Since, we may have differents graph of models, dependent on the traversal, a traversal maintain rather a graph of observers. But this is invisible for the user, since he calls link() methods with models.
A traversal provide:
DERIVERS RULES:
No traverse() method is provided. The deriver may use their own function. -
See also:
-
CMOT IModel IObs
-
Author:
-
Lionel Berenguier , Nevrax France
-
Date:
-
2000
Definition at line 596 of file mot.h.
Constructor & Destructor Documentation
NL3D::ITrav::ITrav |
( |
|
) |
[inline] |
|
|
Constructor. Root Must be created/linked by User via setRoot().
Definition at line 603 of file mot.h.
References Root. |
virtual NL3D::ITrav::~ITrav |
( |
|
) |
[inline, virtual] |
|
|
Destructor. ~ITrav() doesn't delete Root. Root Must be destructed by user.
Definition at line 605 of file mot.h.
References Root. |
Member Function Documentation
virtual void NL3D::ITrav::addedToMOT |
( |
CMOT * |
mot |
) |
[inline, virtual] |
|
|
Called when this traversal has been added to MOT object. The default does nothing.
Reimplemented in NL3D::ITravScene.
Definition at line 618 of file mot.h. |
void NL3D::ITrav::copyChildren |
( |
IModel * |
parentFrom, |
|
|
IModel * |
parentTo |
|
) |
const |
|
|
make the children of parentFrom become the children of parentTo too (may works like moveChildren if children are TreeNode).
Definition at line 388 of file mot.cpp.
References getFirstChild, getNextChild, and link. |
virtual IObs* NL3D::ITrav::createDefaultObs |
( |
|
) |
const [pure virtual] |
|
|
This method must create a default observer for this traversal.
Any model which doesn't provide (by registerObs() or by inheritance) an observer for this view will be linked with this default observer.
Implemented in NL3D::CAnimDetailTrav. |
sint NL3D::ITrav::getNumChildren |
( |
IModel * |
m |
) |
const |
|
|
Get the number of children of the model for this traversal.
Definition at line 403 of file mot.cpp.
References getClassId. |
sint NL3D::ITrav::getNumParents |
( |
IModel * |
m |
) |
const |
|
|
Get the number of Parents of the model for this traversal.
Definition at line 428 of file mot.cpp.
References getClassId. |
IModel * NL3D::ITrav::getRoot |
( |
|
) |
const |
|
|
Get the root of the traversal (NULL if not defined).
Definition at line 308 of file mot.cpp.
References Root. |
void NL3D::ITrav::moveChildren |
( |
IModel * |
parentFrom, |
|
|
IModel * |
parentTo |
|
) |
const |
|
void NL3D::ITrav::setRoot |
( |
IModel * |
root |
) |
|
|
|
Specify a root Model for this traversal (via his IObs).
The model must be created with a valid/final CMOT. CMOT::createModel() will don't link the model if a traversal in the CMOT object has not specified a root.
ITrav::link(NULL, ...) will assert, if no root defined.
You may specify a NULL root (this may lead to a disabled traversal).
Definition at line 300 of file mot.cpp.
References getClassId, and Root. |
Member Data Documentation
The documentation for this class was generated from the following files:
|
|