|
wavelength 1.0.0
|
Mesh drawn once at each of a list of transforms. More...
#include <rndmultimesh.h>


Public Member Functions | |
| RndMultiMesh (const char *pszName) | |
| Construct a multimesh without a mesh or instances. | |
| ~RndMultiMesh () override | |
| Drop the reference on the mesh. | |
| void | ListDrawObjects (std::list< RndObject * > &objects) override |
| Add the draw objects of the mesh to a list. | |
| void | ListDrawables (std::list< RndDrawable * > &drawables) override |
| Add the multimesh, when the mesh has something to draw at an instance, then the children, to a list. | |
| int | DrawShowing () override |
| Draw the mesh at each instance. | |
| void | DumpText (PrnStream &stream) override |
| Write a description of the multimesh and its base. | |
| void | Save (BinStream &stream) override |
| Write the multimesh and its base. | |
| void | Replace (RndObject *pFrom, RndObject *pTo) override |
| Replace a child, or the mesh, with another object. | |
| const char * | ClassName () const override |
| Report the class name. | |
| void | Copy (const RndObject *pSource, int nFlags) override |
| Copy another multimesh and its base. | |
| void | Load (BinStream &stream) override |
| Read what Save() wrote. | |
| void | SetMesh (RndMesh *pMesh) |
| Set the mesh to draw. | |
| RndMesh * | GetMesh () const |
| const std::list< Transform > & | GetTransforms () const |
| std::list< Transform > & | GetTransforms () |
| 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 | 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 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 multimesh. | |
| 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 Attributes | |
| static const char * | sClassName |
| The class name a .rnd file writes, MultiMesh. | |
| static int | sRev |
| The format version Save() writes and Load() accepts. | |
| static int | sLoadRev |
| The version Load() read last. | |
| Static Public Attributes inherited from RndDrawable | |
| 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 Member Functions | |
| void | AcquireRefs () |
| Take a reference on the mesh. | |
| void | ReleaseRefs () |
| Drop the reference on the mesh. | |
| 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 Attributes | |
| RndMesh * | mMesh |
| std::list< Transform > | mTransforms |
| Protected Attributes inherited from RndDrawable | |
| int | mShowing |
| Protected Attributes inherited from RndObject | |
| std::list< RndObject * > | mRefs |
| String | mName |
Mesh drawn once at each of a list of transforms.
The RTTI includes the class name and records RndDrawable as the one base. Each draw moves the mesh to an instance transform. The mesh is moved back afterwards.
|
explicit |
Construct a multimesh without a mesh or instances.
| pszName | The registry key. |
|
override |
Drop the reference on the mesh.
|
overridevirtual |
Add the draw objects of the mesh to a list.
| objects | The list to add to. |
Reimplemented from RndDrawable.
|
overridevirtual |
Add the multimesh, when the mesh has something to draw at an instance, then the children, to a list.
| drawables | The list to add to. |
Reimplemented from RndDrawable.
|
overridevirtual |
Draw the mesh at each instance.
Reimplemented from RndDrawable.
|
overridevirtual |
Write a description of the multimesh and its base.
| stream | The stream to write to. |
Reimplemented from RndDrawable.
|
overridevirtual |
Write the multimesh and its base.
| stream | The stream to write to. |
Reimplemented from RndDrawable.
Replace a child, or the mesh, with another object.
| pFrom | The object being replaced. |
| pTo | The replacement, or null. |
Reimplemented from RndDrawable.
|
inlineoverridevirtual |
Report the class name.
Implements RndObject.
|
overridevirtual |
Copy another multimesh and its base.
| pSource | The multimesh to copy from. |
| nFlags | The set of fields to copy. |
Reimplemented from RndDrawable.
|
overridevirtual |
Read what Save() wrote.
| stream | The stream to read from. |
Reimplemented from RndDrawable.
| void RndMultiMesh::SetMesh | ( | RndMesh * | pMesh | ) |
Set the mesh to draw.
| pMesh | The mesh, or null. |
|
inlinestatic |
Create a multimesh.
| pszName | The registry key. |
|
inline |
|
inline |
|
inline |
|
protected |
Take a reference on the mesh.
The name is inferred.
|
protected |
Drop the reference on the mesh.
The name is inferred.
|
static |
The class name a .rnd file writes, MultiMesh.
|
static |
|
static |
The version Load() read last.
|
protected |
The mesh to draw.
|
protected |
The transform of each instance, as the mesh's local.