|
wavelength 1.0.0
|
Animation that plays a movie file into a texture. More...
#include <rndmovie.h>


Public Member Functions | |
| RndMovie (const char *pszName) | |
| Construct a movie without a file or a texture. | |
| ~RndMovie () override | |
| Close the movie. | |
| void * | operator new (size_t nSize) |
| Allocate a movie, billed to the class name. | |
| void | operator delete (void *pBlock) |
| Release a movie. | |
| void | ListAnimObjects (std::list< RndObject * > &objects) override |
| Add the texture to a list, then the objects of the children. | |
| virtual void | Open () |
| Take a reference on the texture. | |
| virtual void | Close () |
| Drop the reference on the texture. | |
| void | DumpText (PrnStream &stream) override |
| Write a description of the movie and its base. | |
| void | Save (BinStream &stream) override |
| Write the movie and its base. | |
| void | Replace (RndObject *pFrom, RndObject *pTo) override |
| Replace the texture with another. | |
| const char * | ClassName () const override |
| Report the class name. | |
| void | Copy (const RndObject *pSource, int nFlags) override |
| Copy another movie and its base, closing the movie first and opening it after. | |
| void | Load (BinStream &stream) override |
| Read what Save() wrote, or an earlier version of it, closing the movie first and opening it after. | |
| const FilePath & | GetFile () const |
| RndTex * | GetTex () 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 int | SetFrameSelf (float fFrame) |
| Apply a filtered frame to this object alone. | |
| 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) |
Static Public Member Functions | |
| static RndObject * | New (const char *pszName) |
| Create a movie. | |
| 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 Attributes | |
| static const char * | sClassName |
| The class name a .rnd file writes, Movie. | |
| 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. | |
Protected Attributes | |
| FilePath | mFile |
| RndTex * | mTex |
| 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 |
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... | |
| 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. | |
Animation that plays a movie file into a texture.
The RTTI includes the class name and records RndAnimatable as the one base. The platform subclass decodes the file. This class records the file and the texture only.
|
explicit |
Construct a movie without a file or a texture.
| pszName | The registry key. |
|
override |
Close the movie.
|
inline |
Allocate a movie, billed to the class name.
| nSize | The object size the compiler supplies. |
|
inline |
Release a movie.
| pBlock | The block. |
|
overridevirtual |
Add the texture to a list, then the objects of the children.
| objects | The list to add to. |
Reimplemented from RndAnimatable.
|
virtual |
Take a reference on the texture.
The platform subclass then prepares the texture for the file. The name is inferred.
Reimplemented in PsMovie.
|
virtual |
|
overridevirtual |
Write a description of the movie and its base.
| stream | The stream to write to. |
Reimplemented from RndAnimatable.
|
overridevirtual |
Write the movie and its base.
| stream | The stream to write to. |
Reimplemented from RndAnimatable.
Replace the texture with another.
| pFrom | The object being replaced. |
| pTo | The replacement, or null. |
Reimplemented from RndAnimatable.
|
inlineoverridevirtual |
Report the class name.
Implements RndObject.
|
overridevirtual |
Copy another movie and its base, closing the movie first and opening it after.
| pSource | The movie to copy from. |
| nFlags | The set of fields to copy. |
Reimplemented from RndAnimatable.
|
overridevirtual |
Read what Save() wrote, or an earlier version of it, closing the movie first and opening it after.
An early version does not include the texture, which is then unchanged.
| stream | The stream to read from. |
Reimplemented from RndAnimatable.
|
inlinestatic |
Create a movie.
| pszName | The registry key. |
|
inline |
|
inline |
|
static |
The class name a .rnd file writes, Movie.
|
static |
|
protected |
The movie file.
|
protected |
The texture the movie plays into.