diff options
Diffstat (limited to '')
-rw-r--r-- | docs/doxygen/nel/class_NL3D__IModel.html | 682 |
1 files changed, 682 insertions, 0 deletions
diff --git a/docs/doxygen/nel/class_NL3D__IModel.html b/docs/doxygen/nel/class_NL3D__IModel.html new file mode 100644 index 00000000..ca4c883b --- /dev/null +++ b/docs/doxygen/nel/class_NL3D__IModel.html @@ -0,0 +1,682 @@ +<!doctype html public "-//W3C//DTD HTML 4.0 Transitional//EN" "http://www.w3.org/TR/REC-html40/loose.dtd"> +<HTML> +<HEAD> + <TITLE>nevrax.org : docs</TITLE> + <LINK REL=stylesheet TYPE="text/css" HREF="http://www.nevrax.org/inc/css/nevrax.css"> + <link href="doxygen.css" rel="stylesheet" type="text/css"> +</HEAD> +<BODY MARGINHEIGHT="0" MARGINWIDTH="0"> + +<!-- uplinks --> +<TABLE CELLSPACING=0 CELLPADDING=0 BORDER=0> + <TR> + <TD WIDTH=16><IMG SRC="http://www.nevrax.org/inc/img/pixel.gif" WIDTH="16" HEIGHT="16" BORDER=0 ALT=""></TD> + <TD WIDTH=140 BGCOLOR=#dddddd><IMG SRC="http://www.nevrax.org/inc/img/pixel.gif" WIDTH="140" HEIGHT="16" BORDER=0 ALT=""></TD> + <TD WIDTH=16><IMG SRC="http://www.nevrax.org/inc/img/pixel.gif" WIDTH="16" HEIGHT="16" BORDER=0 ALT=""></TD> + <TD><IMG width=6 height=14 SRC="http://www.nevrax.org/inc/img/reddots.gif" ALT="#" VSPACE=2 HSPACE=2 BORDER=0 ></TD><TD VALIGN=middle> <A CLASS=uplinks HREF=http://www.nevrax.org><b>Home</B></FONT></A> </TD> + <TD><IMG width=6 height=14 SRC="http://www.nevrax.org/inc/img/reddots.gif" ALT="#" VSPACE=2 HSPACE=2 BORDER=0 ></TD><TD VALIGN=middle> <A CLASS=uplinks HREF=http://www.nevrax.com><b>nevrax.com</B></FONT></A> </TD> + </TR> +</TABLE> + +<!-- banner Nevrax --> +<TABLE CELLSPACING=0 CELLPADDING=0 BORDER=0 WIDTH=100%> + <TR><TD BGCOLOR="#000000" BACKGROUND="http://www.nevrax.org/inc/img/black_banner.jpg"><A HREF="http://www.nevrax.org"><IMG SRC="http://www.nevrax.org/inc/img/nevrax.gif" WIDTH="170" HEIGHT="45" BORDER=0 ALT="Nevrax" ></A></TD></TR> +</TABLE> + +<!-- main table --> +<TABLE CELLSPACING=0 CELLPADDING=0 BORDER=0 height=100%> + <TR> + <TD WIDTH=16><IMG SRC="http://www.nevrax.org/inc/img/pixel.gif" WIDTH="16" HEIGHT="10" BORDER=0 ALT=""></TD> + <TD WIDTH=140 BGCOLOR=#dddddd VALIGN=TOP ALIGN=middle><IMG SRC="http://www.nevrax.org/inc/img/pixel.gif" WIDTH="140" HEIGHT="10" BORDER=0 ALT=""> + + <!------ Begin Box ------> + <TABLE BORDER=0 CELLSPACING=0 CELLPADDING=0 BGCOLOR=black><TR><TD><TABLE border=0 cellspacing=2 cellpadding=0 width=120><tr><TD ALIGN=middle bgcolor=black> + <FONT COLOR=white FACE="sans-serif"><B>Nevrax.org</B></FONT></TD></TR><tr><td colspan=2 bgcolor=#FFFFFF> + <TABLE cellspacing=0 cellpadding=1 border=0> + <tr><td ALIGN=middle><a class='linkbox' href="http://www.nevrax.org/news/" TITLE="Rubrique news"><img width=13 height=15 hspace=5 border=0 src=http://www.nevrax.org/inc/img/picto-news.gif ALT=#></A></td><td><a class='linkbox' href="http://www.nevrax.org/news/" TITLE="News">News</a></td></tr> + <tr><td ALIGN=middle><a class='linkbox' href="http://www.nevrax.org/mail/" TITLE="Rubrique mail"><img width=15 height=11 hspace=5 border=0 src=http://www.nevrax.org/inc/img/picto-mail.gif ALT=#></A></td><td><a class='linkbox' href="http://www.nevrax.org/mail/" TITLE="Mailing list archive">Mailing-list</a></td></tr> + <tr><td ALIGN=middle><a class='linkbox' href="http://www.nevrax.org/docs/" TITLE="Rubrique docs"><img width=14 height=16 hspace=5 border=0 src=http://www.nevrax.org/inc/img/picto-docs.gif ALT=#></A></td><td><a class='linkbox' href="http://www.nevrax.org/docs/" TITLE="Documentation">Documentation</a></td></tr> + <tr><td ALIGN=middle><a class='linkbox' href="http://www.nevrax.org/cvs/" TITLE="Rubrique cvs"><img width=13 height=17 hspace=5 border=0 src=http://www.nevrax.org/inc/img/picto-cvs.gif ALT=#></A></td><td><a class='linkbox' href="http://www.nevrax.org/cvs/" TITLE="CVS Web">CVS</a></td></tr> + <tr><td ALIGN=middle><a class='linkbox' href="http://www.nevrax.org/bugs/" TITLE="Rubrique bugs"><img width=20 height=16 hspace=5 border=0 src=http://www.nevrax.org/inc/img/picto-bugs.gif ALT=#></A></td><td><a class='linkbox' href="http://www.nevrax.org/bugs/" TITLE="Bugtracking">Bugs</a></td></tr> + <tr><td ALIGN=middle><a class='linkbox' href="http://www.nevrax.org/GPL.php3" TITLE="Rubrique license"><img width=18 height=12 hspace=5 border=0 src=http://www.nevrax.org/inc/img/picto-gpl.gif ALT=#></A></td><td><a class='linkbox' href="http://www.nevrax.org/GPL.php3" TITLE="License">License</a></td></tr> + </TABLE> + </TD></TR></TABLE></TD></TR></TABLE> + <!------ End Box ------> + + </TD> + <TD WIDTH=15><IMG SRC="http://www.nevrax.org/inc/img/pixel.gif" WIDTH="16" HEIGHT="16" BORDER=0 ALT=""></TD> + <TD ALIGN=left valign=top><IMG SRC="http://www.nevrax.org/inc/img/pixel.gif" WIDTH="140" HEIGHT="10" BORDER=0 ALT=""> + +<!-- title --> +<TABLE background="http://www.nevrax.org/inc/img/redline.gif" CELLSPACING=0 CELLPADDING=0 BORDER=0 width=100%><tr><td> +<A HREF="http://www.nevrax.org/docs/"><img src="http://www.nevrax.org/inc/img/t_docs.gif" ALT="Docs" HEIGHT=20 BORDER=0></A> +</td><td><IMG SRC="http://www.nevrax.org/inc/img/pixel.gif" WIDTH="1" HEIGHT="1" BORDER=0 ALT=""> +</td></tr></table> + + +<!-- block --> +<TABLE bgcolor="#dddddd" CELLSPACING=0 CELLPADDING=0 BORDER=0 width=100%><tr><td width=1% valign=middle><img width=6 height=14 hspace=2 vspace=2 src="http://www.nevrax.org/inc/img/reddots.gif"></TD> + <TD><B>Documentation</B></TD> + <TD ALIGN=RIGHT> </td> +</tr></table> +<!-- Generated by Doxygen 1.2.2 on Sun May 13 22:29:29 2001 --> +<center> +<a class="qindex" href="index.html">Main Page</a> <a class="qindex" href="namespaces.html">Namespace List</a> <a class="qindex" href="hierarchy.html">Class Hierarchy</a> <a class="qindex" href="classes.html">Alphabetical List</a> <a class="qindex" href="annotated.html">Compound List</a> <a class="qindex" href="files.html">File List</a> <a class="qindex" href="namespacemembers.html">Namespace Members</a> <a class="qindex" href="functions.html">Compound Members</a> <a class="qindex" href="globals.html">File Members</a> <a class="qindex" href="pages.html">Related Pages</a> <a class="qindexRef" doxygen="_cgi:http://www.nevrax.org/cgi-bin/nel-search.cgi" href="http://www.nevrax.org/cgi-bin/nel-search.cgi">Search</a> </center> +<hr><h1>NL3D::IModel Class Reference</h1>A base model. +<a href="#_details">More...</a> +<p> +<code>#include <<a class="el" href="mot_h-source.html">mot.h</a>></code> +<p> +Inheritance diagram for NL3D::IModel<p><center><img src="class_NL3D__IModel_inherit_graph.gif" border="0" usemap="#NL3D::IModel_inherit_map" alt="Inheritance graph"></center> +<map name="NL3D::IModel_inherit_map"> +<area href="class_NL3D__CTransform.html" shape="rect" coords="145,134,265,153"> +<area href="class_NLMISC__CRefCount.html" shape="rect" coords="140,1,271,19"> +<area href="class_NL3D__CCamera.html" shape="rect" coords="0,201,104,219"> +<area href="class_NL3D__CLandscapeModel.html" shape="rect" coords="128,201,283,219"> +<area href="class_NL3D__CTransformShape.html" shape="rect" coords="307,201,459,219"> +<area href="class_NL3D__CMeshInstance.html" shape="rect" coords="133,267,269,286"> +<area href="class_NL3D__CParticleSystemModel.html" shape="rect" coords="293,267,472,286"> +<area href="class_NL3D__CSkeletonModel.html" shape="rect" coords="496,267,640,286"> +</map> +<center><font size="2">[<a href="graph_legend.html">legend</a>]</font></center>Collaboration diagram for NL3D::IModel:<p><center><img src="class_NL3D__IModel_coll_graph.gif" border="0" usemap="#NL3D::IModel_coll_map" alt="Collaboration graph"></center> +<map name="NL3D::IModel_coll_map"> +<area href="class_NL3D__IObs.html" shape="rect" coords="331,264,411,283"> +<area href="class_NLMISC__CRefCount.html" shape="rect" coords="347,99,477,118"> +<area href="class_NL3D__ITrav.html" shape="rect" coords="456,182,539,200"> +<area href="class_NLMISC__CRefCount__CPtrInfo.html" shape="rect" coords="409,0,596,19"> +<area href="class_NLMISC__CRefPtr.html" shape="rect" coords="501,99,664,118"> +<area href="class_NLMISC__CClassId.html" shape="rect" coords="0,99,120,118"> +<area href="class_NLMISC__CBitSet.html" shape="rect" coords="205,99,317,118"> +</map> +<center><font size="2">[<a href="graph_legend.html">legend</a>]</font></center><a href="class_NL3D__IModel-members.html">List of all members.</a><table border=0 cellpadding=0 cellspacing=0> +<tr><td colspan=2><br><h2>Notification system</h2></td></tr> +<tr><td nowrap align=right valign=top>enum </td><td valign=bottom><a class="el" href="class_NL3D__IModel.html#s2">TDirty</a> { <br> + <a class="el" href="class_NL3D__IModel.html#s2s0">Dirty</a> = 0, +<br> + <a class="el" href="class_NL3D__IModel.html#s2s1">Last</a> +<br> + }</td></tr> +<tr><td> </td><td><font size=-1><em>The Dirty states.</em> <a href="#s2">More...</a><em></em></font><br><br></td></tr> +<tr><td nowrap align=right valign=top>void </td><td valign=bottom><a class="el" href="class_NL3D__IModel.html#a0">foul</a> (<a class="el" href="types_nl_h.html#a13">uint</a> flag)</td></tr> +<tr><td> </td><td><font size=-1><em>The derived model should call <a class="el" href="class_NL3D__IModel.html#a0">foul</a>() in <a class="el" href="class_NL3D__IModel.html#b3">update</a>() or other mutator functions.</em> <a href="#a0">More...</a><em></em></font><br><br></td></tr> +<tr><td nowrap align=right valign=top>void </td><td valign=bottom><a class="el" href="class_NL3D__IModel.html#a1">validate</a> ()</td></tr> +<tr><td> </td><td><font size=-1><em>check if the model is modified, and if yes, update him and his observers.</em> <a href="#a1">More...</a><em></em></font><br><br></td></tr> +<tr><td nowrap align=right valign=top><a class="el" href="class_NLMISC__CBitSet.html">NLMISC::CBitSet</a> </td><td valign=bottom><a class="el" href="class_NL3D__IModel.html#m0">TouchObs</a></td></tr> +<tr><td> </td><td><font size=-1><em>TouchObs say what part of the model has changed, so Observers can deal with this in Obs::update().</em> <a href="#m0">More...</a><em></em></font><br><br></td></tr> +<tr><td colspan=2><br><h2>Protected Types</h2></td></tr> +<tr><td nowrap align=right valign=top>typedef <a class="el" href="class_NL3D__std__map.html">std::map</a><<a class="el" href="class_NLMISC__CClassId.html">NLMISC::CClassId</a>,<br> + <a class="el" href="class_NL3D__IObs.html">IObs</a>*> </td><td valign=bottom><a class="el" href="class_NL3D__IModel.html#t0">CObsMap</a></td></tr> +<tr><td colspan=2><br><h2>Protected Methods</h2></td></tr> +<tr><td nowrap align=right valign=top> </td><td valign=bottom><a class="el" href="class_NL3D__IModel.html#b0">IModel</a> ()</td></tr> +<tr><td> </td><td><font size=-1><em>Init a model.</em> <a href="#b0">More...</a><em></em></font><br><br></td></tr> +<tr><td nowrap align=right valign=top>virtual </td><td valign=bottom><a class="el" href="class_NL3D__IModel.html#b1">~IModel</a> ()</td></tr> +<tr><td> </td><td><font size=-1><em>Destrutor.</em> <a href="#b1">More...</a><em></em></font><br><br></td></tr> +<tr><td nowrap align=right valign=top><a class="el" href="class_NL3D__IObs.html">IObs</a>* </td><td valign=bottom><a class="el" href="class_NL3D__IModel.html#b2">getObs</a> (const <a class="el" href="class_NLMISC__CClassId.html">NLMISC::CClassId</a> &idTrav) const</td></tr> +<tr><td> </td><td><font size=-1><em>Get an observer according to his Traversal Id. NULL, if not found.</em> <a href="#b2">More...</a><em></em></font><br><br></td></tr> +<tr><td colspan="2"><div class="groupHeader">Notification system specification.</div></td></tr> +<tr><td nowrap align=right valign=top>virtual void </td><td valign=bottom><a class="el" href="class_NL3D__IModel.html#b3">update</a> ()</td></tr> +<tr><td> </td><td><font size=-1><em>This function must update the model (called by <a class="el" href="class_NL3D__CMOT.html#a6">CMOT::validateModels</a>()), and <a class="el" href="class_NL3D__IModel.html#a0">foul</a>() necessary flags.</em> <a href="#b3">More...</a><em></em></font><br><br></td></tr> +<tr><td nowrap align=right valign=top>virtual void </td><td valign=bottom><a class="el" href="class_NL3D__IModel.html#b4">cleanTouch</a> ()</td></tr> +<tr><td> </td><td><font size=-1><em>This function must clean the Touch information of the model (called by <a class="el" href="class_NL3D__CMOT.html#a6">CMOT::validateModels</a>()) It is called AFTER his observers are validated according to him.</em> <a href="#b4">More...</a><em></em></font><br><br></td></tr> +<tr><td colspan=2><br><h2>Protected Attributes</h2></td></tr> +<tr><td nowrap align=right valign=top><a class="el" href="class_NL3D__IModel.html#t0">CObsMap</a> </td><td valign=bottom><a class="el" href="class_NL3D__IModel.html#n0">Observers</a></td></tr> +<tr><td nowrap align=right valign=top><a class="el" href="class_NLMISC__CClassId.html">NLMISC::CClassId</a> </td><td valign=bottom><a class="el" href="class_NL3D__IModel.html#n1">LastClassId</a></td></tr> +<tr><td nowrap align=right valign=top><a class="el" href="class_NL3D__IObs.html">IObs</a>* </td><td valign=bottom><a class="el" href="class_NL3D__IModel.html#n2">LastObs</a></td></tr> +<tr><td colspan=2><br><h2>Friends</h2></td></tr> +<tr><td nowrap align=right valign=top>class </td><td valign=bottom><a class="el" href="#l0">CMOT</a></td></tr> +<tr><td nowrap align=right valign=top>class </td><td valign=bottom><a class="el" href="#l1">IObs</a></td></tr> +<tr><td nowrap align=right valign=top>class </td><td valign=bottom><a class="el" href="#l2">ITrav</a></td></tr> +</table> +<hr><a name="_details"></a><h2>Detailed Description</h2> +A base model. +<p> +A model is the base structure for any node. The user directly manipulates Models implemented by the deriver. +<p> +The deriver must implement a notification system so observers can know if they must update themselves. This is done with a <a class="el" href="class_NLMISC__CBitSet.html">NLMISC::CBitSet</a> TouchObs. Deriver may add Additional flags, or additional info which may serves just as hint, to not compute everything (eg: vertex interval...). In <a class="el" href="class_NL3D__CMOT.html#a6">CMOT::validateModels</a>(), for each model, do:<ul> +<li><a class="el" href="class_NL3D__IModel.html#b3">update</a>() the model.<li>if the model is dirty:<ul> +<li><a class="el" href="class_NL3D__IModel.html#b3">update</a>() the observers<li><a class="el" href="class_NL3D__IModel.html#b4">cleanTouch</a>() the model.</ul> +</ul> +<b>DERIVERS</b> <b>RULES</b>:<ul> +<li>Possibly Add his own TDirty state (see TDirty and TouchObs), and resize TouchObs (see <a class="el" href="class_NL3D__IModel.html#b0">IModel</a>()).<li>Implement the notification system (see <a class="el" href="class_NL3D__IModel.html#b3">update</a>()/<a class="el" href="class_NL3D__IModel.html#b4">cleanTouch</a>()), as descripted above.</ul> +The deriver may choose how to <a class="el" href="class_NL3D__IModel.html#a0">foul</a>() himself: either automatic (on any mutator function), or by user (which may call a foul function). <dl compact><dt> +<b>See also: </b><dd> + <a class="el" href="class_NL3D__CMOT.html">CMOT</a> <a class="el" href="class_NL3D__IObs.html">IObs</a> <a class="el" href="class_NL3D__ITrav.html">ITrav</a> </dl><dl compact><dt> +<b>Author(s): </b><dd> + Lionel Berenguier , Nevrax France </dl><dl compact><dt> +<b>Date: </b><dd> + 2000 </dl> +<p> + +<p> +Definition at line <a class="el" href="mot_h-source.html#l00328">328</a> of file <a class="el" href="mot_h-source.html">mot.h</a>.<hr><h2>Member Typedef Documentation</h2> +<a name="t0" doxytag="NL3D::IModel::CObsMap"></a><p> +<table width="100%" cellpadding="2" cellspacing="0" border="0"> + <tr> + <td class="md"> + <table cellpadding="0" cellspacing="0" border="0"> + <tr> + <td nowrap valign="top"><b> +typedef <a class="el" href="class_NL3D__std__map.html">std::map</a><<a class="el" href="class_NLMISC__CClassId.html">NLMISC::CClassId</a>, <a class="el" href="class_NL3D__IObs.html">IObs</a>*> NL3D::IModel::CObsMap<code> [protected]</code> + </b></td> + </tr> + + </table> + </td> + </tr> +</table> +<table cellspacing=5 cellpadding=0 border=0> + <tr> + <td> + + </td> + <td> + +<p> + +<p> +Definition at line <a class="el" href="mot_h-source.html#l00378">378</a> of file <a class="el" href="mot_h-source.html">mot.h</a>. </td> + </tr> +</table> +<hr><h2>Member Enumeration Documentation</h2> +<a name="s2" doxytag="NL3D::IModel::TDirty"></a><p> +<table width="100%" cellpadding="2" cellspacing="0" border="0"> + <tr> + <td class="md"> + <table cellpadding="0" cellspacing="0" border="0"> + <tr> + <td nowrap valign="top"><b> +enum NL3D::IModel::TDirty + </b></td> + </tr> + + </table> + </td> + </tr> +</table> +<table cellspacing=5 cellpadding=0 border=0> + <tr> + <td> + + </td> + <td> + +<p> +The Dirty states. +<p> +Derived models may add flags with similar enum. The first enum element must begin at CBaseClass::Last (where CBaseClass is the base class), so falg compatibility is maintained. <dl compact><dt> +<b>Enumeration values:</b><dd> +<table border=0 cellspacing=2 cellpadding=0> +<tr><td valign=top><a name="s2s0" doxytag="Dirty"></a><em>Dirty</em> + </td><td> +</td></tr> +<tr><td valign=top><a name="s2s1" doxytag="Last"></a><em>Last</em> + </td><td> +</td></tr> +</table> +</dl> + +<p> +Reimplemented in <a class="el" href="class_NL3D__CTransform.html#u2">NL3D::CTransform</a>. +<p> +Definition at line <a class="el" href="mot_h-source.html#l00357">357</a> of file <a class="el" href="mot_h-source.html">mot.h</a>. </td> + </tr> +</table> +<hr><h2>Constructor & Destructor Documentation</h2> +<a name="b0" doxytag="NL3D::IModel::IModel"></a><p> +<table width="100%" cellpadding="2" cellspacing="0" border="0"> + <tr> + <td class="md"> + <table cellpadding="0" cellspacing="0" border="0"> + <tr> + <td nowrap valign="top"><b> +NL3D::IModel::IModel ( + </b></td> + <td valign="bottom"><b> +)<code> [protected]</code> + </b></td> + </tr> + + </table> + </td> + </tr> +</table> +<table cellspacing=5 cellpadding=0 border=0> + <tr> + <td> + + </td> + <td> + +<p> +Init a model. +<p> +The user must create a Model only with <a class="el" href="class_NL3D__CMOT.html#a4">CMOT::createModel</a>(). This is required since, <a class="el" href="class_NL3D__CMOT.html#a4">CMOT::createModel</a>() create observers for his traversals and link them to this created model. +<p> +The deriver <b>should</b> do a <code><a class="el" href="class_NL3D__IModel.html#m0">TouchObs</a>.resize(Last)</code>, to ensure he resize the BitSet correctly. The dervier <b>should</b> keep/declare ctor and dtor protected, to avoid user error (new and delete). +<p> +Definition at line <a class="el" href="mot_cpp-source.html#l00433">433</a> of file <a class="el" href="mot_cpp-source.html">mot.cpp</a>. </td> + </tr> +</table> +<a name="b1" doxytag="NL3D::IModel::~IModel"></a><p> +<table width="100%" cellpadding="2" cellspacing="0" border="0"> + <tr> + <td class="md"> + <table cellpadding="0" cellspacing="0" border="0"> + <tr> + <td nowrap valign="top"><b> +NL3D::IModel::~IModel ( + </b></td> + <td valign="bottom"><b> +)<code> [protected, virtual]</code> + </b></td> + </tr> + + </table> + </td> + </tr> +</table> +<table cellspacing=5 cellpadding=0 border=0> + <tr> + <td> + + </td> + <td> + +<p> +Destrutor. +<p> +Model's observers are deleted automatically. The user must delete a Model only with <a class="el" href="class_NL3D__CMOT.html#a5">CMOT::deleteModel</a>(). This ensure that model validity is correct during the life of <a class="el" href="class_NL3D__CMOT.html">CMOT</a>. +<p> +The dervier <b>should</b> keep/declare ctor and dtor protected, to avoid user error (new and delete). +<p> +Definition at line <a class="el" href="mot_cpp-source.html#l00440">440</a> of file <a class="el" href="mot_cpp-source.html">mot.cpp</a>. </td> + </tr> +</table> +<hr><h2>Member Function Documentation</h2> +<a name="b4" doxytag="NL3D::IModel::cleanTouch"></a><p> +<table width="100%" cellpadding="2" cellspacing="0" border="0"> + <tr> + <td class="md"> + <table cellpadding="0" cellspacing="0" border="0"> + <tr> + <td nowrap valign="top"><b> +void NL3D::IModel::cleanTouch ( + </b></td> + <td valign="bottom"><b> +)<code> [inline, protected, virtual]</code> + </b></td> + </tr> + + </table> + </td> + </tr> +</table> +<table cellspacing=5 cellpadding=0 border=0> + <tr> + <td> + + </td> + <td> + +<p> +This function must clean the Touch information of the model (called by <a class="el" href="class_NL3D__CMOT.html#a6">CMOT::validateModels</a>()) It is called AFTER his observers are validated according to him. +<p> +This function Must :<ul> +<li>call BaseClass::cleanTouch() (eg: <a class="el" href="class_NL3D__IModel.html#b4">IModel::cleanTouch</a>()).<li>maybe clean other Touch information (vertex intervals...).</ul> +NB: Touch bits are leared in validateModels(). +<p> +The default behavior is just to clear flags of TouchObs, which may be sufficient, except if you have special touch information (eg: a vertex interval). +<p> +Definition at line <a class="el" href="mot_h-source.html#l00421">421</a> of file <a class="el" href="mot_h-source.html">mot.h</a>. </td> + </tr> +</table> +<a name="a0" doxytag="NL3D::IModel::foul"></a><p> +<table width="100%" cellpadding="2" cellspacing="0" border="0"> + <tr> + <td class="md"> + <table cellpadding="0" cellspacing="0" border="0"> + <tr> + <td nowrap valign="top"><b> +void NL3D::IModel::foul ( + </b></td> + <td valign="bottom"><b> +<a class="el" href="types_nl_h.html#a13">uint</a> <em>flag</em> )<code> [inline]</code> + </b></td> + </tr> + + </table> + </td> + </tr> +</table> +<table cellspacing=5 cellpadding=0 border=0> + <tr> + <td> + + </td> + <td> + +<p> +The derived model should call <a class="el" href="class_NL3D__IModel.html#a0">foul</a>() in <a class="el" href="class_NL3D__IModel.html#b3">update</a>() or other mutator functions. +<p> + +<p> +Definition at line <a class="el" href="mot_h-source.html#l00365">365</a> of file <a class="el" href="mot_h-source.html">mot.h</a>. </td> + </tr> +</table> +<a name="b2" doxytag="NL3D::IModel::getObs"></a><p> +<table width="100%" cellpadding="2" cellspacing="0" border="0"> + <tr> + <td class="md"> + <table cellpadding="0" cellspacing="0" border="0"> + <tr> + <td nowrap valign="top"><b> +<a class="el" href="class_NL3D__IObs.html">IObs</a> * NL3D::IModel::getObs ( + </b></td> + <td valign="bottom"><b> +const <a class="el" href="class_NLMISC__CClassId.html">NLMISC::CClassId</a> & <em>idTrav</em> ) const<code> [protected]</code> + </b></td> + </tr> + + </table> + </td> + </tr> +</table> +<table cellspacing=5 cellpadding=0 border=0> + <tr> + <td> + + </td> + <td> + +<p> +Get an observer according to his Traversal Id. NULL, if not found. +<p> + +<p> +Definition at line <a class="el" href="mot_cpp-source.html#l00450">450</a> of file <a class="el" href="mot_cpp-source.html">mot.cpp</a>. </td> + </tr> +</table> +<a name="b3" doxytag="NL3D::IModel::update"></a><p> +<table width="100%" cellpadding="2" cellspacing="0" border="0"> + <tr> + <td class="md"> + <table cellpadding="0" cellspacing="0" border="0"> + <tr> + <td nowrap valign="top"><b> +void NL3D::IModel::update ( + </b></td> + <td valign="bottom"><b> +)<code> [inline, protected, virtual]</code> + </b></td> + </tr> + + </table> + </td> + </tr> +</table> +<table cellspacing=5 cellpadding=0 border=0> + <tr> + <td> + + </td> + <td> + +<p> +This function must update the model (called by <a class="el" href="class_NL3D__CMOT.html#a6">CMOT::validateModels</a>()), and <a class="el" href="class_NL3D__IModel.html#a0">foul</a>() necessary flags. +<p> +Must :<ul> +<li>call BaseClass::update() (eg: <a class="el" href="class_NL3D__IModel.html#b3">IModel::update</a>()).<li>test if something is different (eg: animation modification). update Model information (eg compute new Matrix).<li><a class="el" href="class_NL3D__IModel.html#a0">foul</a>() good bits. (eg: foul(TransformDirty)).<li>maybe set other Touch information (vertex intervals...).</ul> +The default behavior is to do nothing. +<p> +NB: Touch information is reseted after observers validation in <a class="el" href="class_NL3D__CMOT.html#a6">CMOT::validateModels</a>(), using Model::cleanTouch() +<p> +Reimplemented in <a class="el" href="class_NL3D__CCamera.html#b2">NL3D::CCamera</a>, and <a class="el" href="class_NL3D__CTransform.html#b2">NL3D::CTransform</a>. +<p> +Definition at line <a class="el" href="mot_h-source.html#l00405">405</a> of file <a class="el" href="mot_h-source.html">mot.h</a>. </td> + </tr> +</table> +<a name="a1" doxytag="NL3D::IModel::validate"></a><p> +<table width="100%" cellpadding="2" cellspacing="0" border="0"> + <tr> + <td class="md"> + <table cellpadding="0" cellspacing="0" border="0"> + <tr> + <td nowrap valign="top"><b> +void NL3D::IModel::validate ( + </b></td> + <td valign="bottom"><b> +) + </b></td> + </tr> + + </table> + </td> + </tr> +</table> +<table cellspacing=5 cellpadding=0 border=0> + <tr> + <td> + + </td> + <td> + +<p> +check if the model is modified, and if yes, update him and his observers. +<p> + +<p> +Definition at line <a class="el" href="mot_cpp-source.html#l00469">469</a> of file <a class="el" href="mot_cpp-source.html">mot.cpp</a>. </td> + </tr> +</table> +<hr><h2>Friends And Related Function Documentation</h2> +<a name="l0" doxytag="NL3D::IModel::CMOT"></a><p> +<table width="100%" cellpadding="2" cellspacing="0" border="0"> + <tr> + <td class="md"> + <table cellpadding="0" cellspacing="0" border="0"> + <tr> + <td nowrap valign="top"><b> +class CMOT<code> [friend]</code> + </b></td> + </tr> + + </table> + </td> + </tr> +</table> +<table cellspacing=5 cellpadding=0 border=0> + <tr> + <td> + + </td> + <td> + +<p> + +<p> +Definition at line <a class="el" href="mot_h-source.html#l00375">375</a> of file <a class="el" href="mot_h-source.html">mot.h</a>. </td> + </tr> +</table> +<a name="l1" doxytag="NL3D::IModel::IObs"></a><p> +<table width="100%" cellpadding="2" cellspacing="0" border="0"> + <tr> + <td class="md"> + <table cellpadding="0" cellspacing="0" border="0"> + <tr> + <td nowrap valign="top"><b> +class IObs<code> [friend]</code> + </b></td> + </tr> + + </table> + </td> + </tr> +</table> +<table cellspacing=5 cellpadding=0 border=0> + <tr> + <td> + + </td> + <td> + +<p> + +<p> +Definition at line <a class="el" href="mot_h-source.html#l00376">376</a> of file <a class="el" href="mot_h-source.html">mot.h</a>. </td> + </tr> +</table> +<a name="l2" doxytag="NL3D::IModel::ITrav"></a><p> +<table width="100%" cellpadding="2" cellspacing="0" border="0"> + <tr> + <td class="md"> + <table cellpadding="0" cellspacing="0" border="0"> + <tr> + <td nowrap valign="top"><b> +class ITrav<code> [friend]</code> + </b></td> + </tr> + + </table> + </td> + </tr> +</table> +<table cellspacing=5 cellpadding=0 border=0> + <tr> + <td> + + </td> + <td> + +<p> + +<p> +Definition at line <a class="el" href="mot_h-source.html#l00377">377</a> of file <a class="el" href="mot_h-source.html">mot.h</a>. </td> + </tr> +</table> +<hr><h2>Member Data Documentation</h2> +<a name="n1" doxytag="NL3D::IModel::LastClassId"></a><p> +<table width="100%" cellpadding="2" cellspacing="0" border="0"> + <tr> + <td class="md"> + <table cellpadding="0" cellspacing="0" border="0"> + <tr> + <td nowrap valign="top"><b> +<a class="el" href="class_NLMISC__CClassId.html">NLMISC::CClassId</a> NL3D::IModel::LastClassId<code> [mutable, protected]</code> + </b></td> + </tr> + + </table> + </td> + </tr> +</table> +<table cellspacing=5 cellpadding=0 border=0> + <tr> + <td> + + </td> + <td> + +<p> + +<p> +Definition at line <a class="el" href="mot_h-source.html#l00382">382</a> of file <a class="el" href="mot_h-source.html">mot.h</a>. </td> + </tr> +</table> +<a name="n2" doxytag="NL3D::IModel::LastObs"></a><p> +<table width="100%" cellpadding="2" cellspacing="0" border="0"> + <tr> + <td class="md"> + <table cellpadding="0" cellspacing="0" border="0"> + <tr> + <td nowrap valign="top"><b> +<a class="el" href="class_NL3D__IObs.html">IObs</a> * NL3D::IModel::LastObs<code> [mutable, protected]</code> + </b></td> + </tr> + + </table> + </td> + </tr> +</table> +<table cellspacing=5 cellpadding=0 border=0> + <tr> + <td> + + </td> + <td> + +<p> + +<p> +Definition at line <a class="el" href="mot_h-source.html#l00383">383</a> of file <a class="el" href="mot_h-source.html">mot.h</a>. </td> + </tr> +</table> +<a name="n0" doxytag="NL3D::IModel::Observers"></a><p> +<table width="100%" cellpadding="2" cellspacing="0" border="0"> + <tr> + <td class="md"> + <table cellpadding="0" cellspacing="0" border="0"> + <tr> + <td nowrap valign="top"><b> +<a class="el" href="class_NL3D__IModel.html#t0">CObsMap</a> NL3D::IModel::Observers<code> [protected]</code> + </b></td> + </tr> + + </table> + </td> + </tr> +</table> +<table cellspacing=5 cellpadding=0 border=0> + <tr> + <td> + + </td> + <td> + +<p> + +<p> +Definition at line <a class="el" href="mot_h-source.html#l00379">379</a> of file <a class="el" href="mot_h-source.html">mot.h</a>. </td> + </tr> +</table> +<a name="m0" doxytag="NL3D::IModel::TouchObs"></a><p> +<table width="100%" cellpadding="2" cellspacing="0" border="0"> + <tr> + <td class="md"> + <table cellpadding="0" cellspacing="0" border="0"> + <tr> + <td nowrap valign="top"><b> +<a class="el" href="class_NLMISC__CBitSet.html">NLMISC::CBitSet</a> NL3D::IModel::TouchObs + </b></td> + </tr> + + </table> + </td> + </tr> +</table> +<table cellspacing=5 cellpadding=0 border=0> + <tr> + <td> + + </td> + <td> + +<p> +TouchObs say what part of the model has changed, so Observers can deal with this in Obs::update(). +<p> + +<p> +Definition at line <a class="el" href="mot_h-source.html#l00363">363</a> of file <a class="el" href="mot_h-source.html">mot.h</a>. </td> + </tr> +</table> +<hr>The documentation for this class was generated from the following files:<ul> +<li><a class="el" href="mot_h-source.html">mot.h</a><li><a class="el" href="mot_cpp-source.html">mot.cpp</a></ul> + + +<!-- footer --> +<BR><FONT Size=+5> </FONT> +</TD> +<TD WIDTH=15><IMG SRC=http://www.nevrax.org/inc/img/pixel.gif WIDTH=15 HEIGHT=15 BORDER=0 ALT=""></TD> +</TR> +</TABLE> +</BODY> +</HTML> |