|
wavelength 1.0.0
|
View that shows the children of another view, its children owner, under its own transform and frame. More...
#include <rndview.h>


Public Member Functions | |
| RndView (const char *pszName) | |
| Construct a view that owns its children and is in range. | |
| ~RndView () override | |
| Drop the reference on the children owner. | |
| void * | operator new (size_t nSize) |
| Allocate a view from its pool. | |
| void | operator delete (void *pBlock) |
| Return a view to its pool. | |
| int | SetFrameSelf (float fFrame) override |
| Record whether the unfiltered frame is in a non-empty mVisibleRange. | |
| void | ListDrawables (std::list< RndDrawable * > &drawables) override |
| Add the view, when the children owner's children have something to draw, then the view's children, to a list. | |
| int | DrawShowing () override |
| Draw the children owner's children at this view's frame and transform, when in range. | |
| int | UpdateWorldXfm (RndTransformable *pParent, int bForce) override |
| Update the world transform when in range. | |
| void | DumpText (PrnStream &stream) override |
| Write a description of the view and its bases. | |
| void | Save (BinStream &stream) override |
| Write the view and its bases. | |
| void | Replace (RndObject *pFrom, RndObject *pTo) override |
| Replace a referenced object with another. | |
| const char * | ClassName () const override |
| Report the class name. | |
| void | Copy (const RndObject *pSource, int nFlags) override |
| Copy another view and its bases. | |
| void | Load (BinStream &stream) override |
| Read what Save() wrote, or an earlier version of it. | |
| void | SetVisibleRange (float fStart, float fEnd) |
| Set the range of frames the view shows in, and put the view in range. | |
| void | SetInRange (int nInRange) |
| Put the view in or out of range. | |
| const Vector2 & | GetVisibleRange () const |
| Public Member Functions inherited from RndAnimatable | |
| RndAnimatable () | |
| Construct an animatable at frame 0 without children or filters. | |
| ~RndAnimatable () override | |
| Drop the references on the children and delete the filters. | |
| virtual float | EndFrame () |
| Report the frame at which the animation ends. | |
| virtual void | ListAnimObjects (std::list< RndObject * > &objects) |
| Add the objects the animation uses to a list. | |
| RndAnimatable * | Parent () |
| Find the animatable whose children include this one. | |
| void | SetFrame (float fFrame) |
| Filter a frame, apply it, and pass the result on to the children. | |
| float | FilterFrame (float fValue) |
| Run a frame through the filters. | |
| float | UnfilterFrame (float fValue) |
| Run a filtered frame back through the filters, last first. | |
| float | ChildrenEndFrame () |
| Report the latest end frame of the children, unfiltered through this animatable. | |
| bool | AddAnim (RndAnimatable *pAnim) |
| Append a child. | |
| void | RemoveAnim (RndAnimatable *pAnim) |
| Remove a child. | |
| void | RemoveAllAnims () |
| Remove every child. | |
| const std::list< Filter * > & | GetFilters () const |
| float | GetFrame () const |
| float | GetFilteredFrame () const |
| const std::list< RndAnimatable * > & | GetAnims () const |
| std::list< Filter * > & | GetFilters () |
| Public Member Functions inherited from RndObject | |
| RndObject (const char *pszName) | |
| Construct an object and register it under a name. | |
| virtual | ~RndObject () |
| Notify every referrer, then erase the registration. | |
| void | SetName (const char *pszName) |
| Register the object under a different name. | |
| void | AddRef (RndObject *pReferrer) |
| Register an object as a store of a pointer to this one. | |
| void | RemoveRef (RndObject *pReferrer) |
| Drop the first registration AddRef() made for a referrer. | |
| const char * | GetName () const |
| const std::list< RndObject * > & | GetRefs () const |
| int | GetInternal () const |
| void | SetInternal (int nInternal) |
| Public Member Functions inherited from RndDrawable | |
| RndDrawable () | |
| Construct a showing drawable without a highlight or children. | |
| ~RndDrawable () override | |
| Drop the references on the children. | |
| virtual void | ListDrawObjects (std::list< RndObject * > &objects) |
| Add the objects the drawable uses to a list. | |
| virtual void | SetShowing (int nShowing) |
| Set whether the drawable draws at all. | |
| virtual void | SetHighlight (int nHighlight) |
| Set whether the drawable draws with its highlight treatment. | |
| RndDrawable * | Parent () |
| Find the drawable whose children include this one. | |
| void | Draw () |
| Draw the drawable and then its children, when it is showing. | |
| bool | AddDraw (RndDrawable *pDraw, RndDrawable *pBefore) |
| Add a child before another. | |
| void | RemoveDraw (RndDrawable *pDraw) |
| Remove a child. | |
| void | ClearDraws () |
| Remove every child. | |
| int | GetShowing () const |
| const std::list< RndDrawable * > & | GetDraws () const |
| Public Member Functions inherited from RndTransformable | |
| RndTransformable () | |
| Construct a transformable with identity transforms, no origin offset, and no billboard. | |
| ~RndTransformable () override | |
| Drop the references on the children. | |
| virtual void | SetBillboard (int nBillboard) |
| Set the billboard mode. | |
| void | SetOrigin (const Vector3 &origin) |
| Set the point the world transform subtracts first when there is no billboard. | |
| RndTransformable * | Parent () |
| Find the transformable whose children include this object. | |
| bool | AddTrans (RndTransformable *pTrans) |
| Append a child and mark its world transform dirty. | |
| void | RemoveTrans (RndTransformable *pTrans) |
| Remove a child. | |
| void | ClearTrans () |
| Remove every child. | |
| const Transform & | BillboardXfm () |
| Report the world transform turned to face the current camera. | |
| const Transform & | GetLocalXfm () const |
| Transform & | GetLocalXfm () |
| void | SetLocalXfm (const Transform &xfm) |
| const Transform & | GetWorldXfm () const |
| Transform & | GetWorldXfm () |
| int | GetDirty () const |
| void | SetDirty (int nDirty) |
| const std::list< RndTransformable * > & | GetTransList () const |
| Public Member Functions inherited from RndCollideable | |
| RndCollideable () | |
| Construct a collideable without children. | |
| ~RndCollideable () override | |
| Drop the references on the children. | |
| virtual void | Collide (const Segment &segment, std::list< Collision > &collisions) |
| Test a segment against the collideable and add what it strikes to a list. | |
| virtual void | Collide (const Vector2 &point, std::list< Collision > &collisions) |
| Test a screen point against the collideable and add what it strikes to a list. | |
| RndCollideable * | Parent () |
| Find the collideable whose children include this one. | |
| bool | AddCollide (RndCollideable *pCollide) |
| Append a child. | |
| void | RemoveCollide (RndCollideable *pCollide) |
| Remove a child. | |
Static Public Member Functions | |
| static RndObject * | New (const char *pszName) |
| Create a view. | |
| Static Public Member Functions inherited from RndAnimatable | |
| static Filter * | NewFilter (int nType) |
| Create a filter stage of a type, with its parameters unset. | |
| static void | CollectChildren (std::list< RndObject * > &objects, RndAnimatable *pAnimatable) |
| Append every animation descendant of an animatable, depth first, each before its descendants. | |
| Static Public Member Functions inherited from RndDrawable | |
| static void | CollectChildren (std::list< RndObject * > &objects, RndDrawable *pDrawable) |
| Append every draw descendant of a drawable, depth first, each before its descendants. | |
| Static Public Member Functions inherited from RndTransformable | |
| static void | CollectChildren (std::list< RndObject * > &objects, RndTransformable *pTransformable) |
| Append every transform descendant of a transformable, depth first, each before its descendants. | |
| Static Public Member Functions inherited from RndCollideable | |
| static void | CollectChildren (std::list< RndObject * > &objects, RndCollideable *pCollideable) |
| Append every collision descendant of a collideable, depth first, each before its descendants. | |
Static Public Attributes | |
| static constexpr int | kCopyShareChildren = 0x20 |
| The bit of the Copy() flags that shares the source's children owner. | |
| static const char * | sClassName |
| The class name a .rnd file writes, View. | |
| static int | sRev |
| The format version Save() writes and Load() accepts. | |
| Static Public Attributes inherited from RndAnimatable | |
| static int | sRev |
| The format version Save() writes and Load() accepts. | |
| Static Public Attributes inherited from RndObject | |
| static constexpr int | kCopyChildLists = 0x200 |
| The bit of the Copy() flags that copies the child lists of the mix-ins. | |
| Static Public Attributes inherited from RndDrawable | |
| static int | sRev |
| The format version Save() writes and Load() accepts. | |
| Static Public Attributes inherited from RndTransformable | |
| static int | sRev |
| The format version Save() writes and Load() accepts. | |
| Static Public Attributes inherited from RndCollideable | |
| static int | sRev |
| The format version Save() writes and Load() accepts. | |
Protected Member Functions | |
| void | ReleaseRefs () |
| Drop the reference on the children owner. | |
| void | AcquireRefs () |
| Take a reference on the children owner, and put the view in range. | |
| void | SyncChildren () |
| Bring the children owner's animations to this view's frame and its transforms under this view's transform. | |
| Protected Member Functions inherited from RndAnimatable | |
| void | ReleaseObjects () |
| Drop the references on the children without emptying the list, and delete the filters. | |
| void | AcquireAnimRefs () |
| Take a reference on every child. | |
| Protected Member Functions inherited from RndDrawable | |
| void | ReleaseDrawRefs () |
| Drop the reference on every child without emptying the list. | |
| void | AcquireDrawRefs () |
| Take a reference on every child. | |
| Protected Member Functions inherited from RndTransformable | |
| void | ReleaseTransRefs () |
| Drop the reference on every child without emptying the list. | |
| void | AcquireTransRefs () |
| Take a reference on every child. | |
| Protected Member Functions inherited from RndCollideable | |
| void | ReleaseCollideRefs () |
| Drop the reference on every child without emptying the list. | |
| void | AcquireCollideRefs () |
| Take a reference on every child. | |
Additional Inherited Members | |
| Public Types inherited from RndAnimatable | |
| enum | FilterType { kFilterScaleOffset = 0 , kFilterMinMaxLoop = 1 , kFilterZeroOrder = 2 , kFilterFirstOrder = 3 , kFilterSecondOrder = 4 } |
| The type tags of the filters, as Save() writes them. More... | |
| Public Types inherited from RndTransformable | |
| enum | Billboard { kBillboardNone = 0 , kBillboardX = 1 , kBillboardY = 2 , kBillboardZ = 4 , kBillboardXZ = 8 , kBillboardXYZ = 16 , kBillboardSimpleXYZ = 32 , kBillboardLocalRotate = 64 , kBillboardScale = 128 , kBillboardScaleX = 129 , kBillboardScaleY = 130 , kBillboardScaleZ = 132 , kBillboardScaleXZ = 136 , kBillboardScaleXYZ = 144 , kBillboardScaleSimpleXYZ = 160 } |
| How the world transform turns to face the current camera. More... | |
| Protected Attributes inherited from RndAnimatable | |
| std::list< RndAnimatable * > | mAnims |
| std::list< Filter * > | mFilters |
| float | mFrame |
| float | mFilteredFrame |
| Protected Attributes inherited from RndObject | |
| std::list< RndObject * > | mRefs |
| String | mName |
| Protected Attributes inherited from RndDrawable | |
| int | mShowing |
| Protected Attributes inherited from RndTransformable | |
| std::list< RndTransformable * > | mTransList |
| Transform | mLocalXfm |
| Transform | mWorldXfm |
| Vector3 | mOrigin |
| int | mDirty |
| int | mBillboard |
View that shows the children of another view, its children owner, under its own transform and frame.
The RTTI includes the class name and records RndAnimatable, RndDrawable, RndTransformable, and RndCollideable as bases. A view is shown only while its frame is in mVisibleRange, when the range is not empty.
|
explicit |
Construct a view that owns its children and is in range.
| pszName | The registry key. |
|
override |
Drop the reference on the children owner.
|
inline |
Allocate a view from its pool.
| nSize | The object size the compiler supplies. |
|
inline |
Return a view to its pool.
| pBlock | The block. |
|
overridevirtual |
Record whether the unfiltered frame is in a non-empty mVisibleRange.
The filtered frame is ignored.
| fFrame | The filtered frame. |
Reimplemented from RndAnimatable.
|
overridevirtual |
Add the view, when the children owner's children have something to draw, then the view's children, to a list.
The children owner's animations and transforms are first brought to this view's frame and transform.
| drawables | The list to add to. |
Reimplemented from RndDrawable.
|
overridevirtual |
Draw the children owner's children at this view's frame and transform, when in range.
Reimplemented from RndDrawable.
|
overridevirtual |
Update the world transform when in range.
| pParent | The parent, or null. |
| bForce | Non-zero to update even when the transform is not out of date. |
Reimplemented from RndTransformable.
|
overridevirtual |
Write a description of the view and its bases.
| stream | The stream to write to. |
Reimplemented from RndAnimatable.
|
overridevirtual |
Write the view and its bases.
| stream | The stream to write to. |
Reimplemented from RndAnimatable.
Replace a referenced object with another.
A children owner replaced by null becomes the view itself.
| pFrom | The object being replaced. |
| pTo | The replacement, or null. |
Reimplemented from RndAnimatable.
|
inlineoverridevirtual |
Report the class name.
Implements RndObject.
|
overridevirtual |
Copy another view and its bases.
The children owner is the view itself when the source owns its children and the flags do not include kCopyShareChildren. Otherwise it is the source's.
| pSource | The view to copy from. |
| nFlags | The set of fields to copy. |
Reimplemented from RndAnimatable.
|
overridevirtual |
Read what Save() wrote, or an earlier version of it.
| stream | The stream to read from. |
Reimplemented from RndAnimatable.
| void RndView::SetVisibleRange | ( | float | fStart, |
| float | fEnd ) |
Set the range of frames the view shows in, and put the view in range.
The name is inferred.
| fStart | The first frame. |
| fEnd | The frame after the last. |
| void RndView::SetInRange | ( | int | nInRange | ) |
Put the view in or out of range.
The name is inferred.
| nInRange | Non-zero for in range. |
|
inlinestatic |
Create a view.
| pszName | The registry key. |
|
inline |
|
protected |
Drop the reference on the children owner.
The name is inferred.
|
protected |
Take a reference on the children owner, and put the view in range.
The name is inferred.
|
protected |
Bring the children owner's animations to this view's frame and its transforms under this view's transform.
The binary expands the routine inline in DrawShowing() and ListDrawables(). The name is inferred.
|
staticconstexpr |
The bit of the Copy() flags that shares the source's children owner.
|
static |
The class name a .rnd file writes, View.
|
static |