|
|
|
|
Documentation |
|
Main Page Namespace List Class Hierarchy Alphabetical List Compound List File List Namespace Members Compound Members File Members Related Pages Search
NL3D::IBaseClipObs Class ReferenceThe base interface for clip traversal.
More...
#include <clip_trav.h>
Inheritance diagram for NL3D::IBaseClipObs
[legend]Collaboration diagram for NL3D::IBaseClipObs:
[legend]List of all members.
Detailed Description
The base interface for clip traversal.
Clip observers MUST derive from IBaseClipObs. This observer:
- leave the notification system to DO NOTHING.
- implement the init() method, to set shortcut to neighbor observers.
DERIVER RULES:
- implement the notification system (see IObs and IObs() for details).
- implement the clip() method.
- implement the traverse(), which should call clip() and isRenderable(). see CTransform for an implementation.
- possibly modify/extend the graph methods (such as a graph behavior).
-
See also:
-
CClipTrav
-
Author(s):
-
Lionel Berenguier , Nevrax France
-
Date:
-
2000
Definition at line 127 of file clip_trav.h.
Constructor & Destructor Documentation
NL3D::IBaseClipObs::IBaseClipObs (
|
) [inline]
|
|
Member Function Documentation
bool NL3D::IBaseClipObs::clip (
|
IBaseClipObs * caller ) [pure virtual]
|
|
void NL3D::IBaseClipObs::init (
|
) [virtual]
|
|
bool NL3D::IBaseClipObs::isRenderable (
|
) const [pure virtual]
|
|
void NL3D::IBaseClipObs::traverse (
|
IObs * caller ) [pure virtual]
|
|
|
The base doit method.
The default behavior should be:
- test if HrcObs->WorldVis is visible.
- test if the observer is clipped with clip()
- if visible and not clipped, set
Visible=true (else false). - if Visible==true, and renderable, add it to the RenderTraversal:
RenderTrav->addRenderObs(RenderObs) ; - always traverseSons(), to clip the sons.
Reimplemented from NL3D::IObs.
Reimplemented in NL3D::CDefaultClipObs, and NL3D::CTransformClipObs. |
Member Data Documentation
bool NL3D::IBaseClipObs::Visible
|
|
|
OUT variable (good after traverse()).
set to true is the object is visible (not clipped).
Definition at line 137 of file clip_trav.h. |
The documentation for this class was generated from the following files:
|
|