64 bool GetIndices(
size_t& nIndices,
int*& aIndexList );
72 void SetIndices(
size_t nIndices,
int* aIndexList );
83 bool WriteVRML( std::ostream& aFile,
bool aReuseFlag )
override;
Define a generic index interface for a scenegraph object.
bool AddChildNode(SGNODE *aNode) noexcept override
void unlinkChildNode(const SGNODE *aCaller) noexcept override
Remove references to an owned child.
void unlinkRefNode(const SGNODE *aCaller) noexcept override
Remove pointers to a referenced node.
bool writeCoordIndex(std::ostream &aFile)
bool GetIndices(size_t &nIndices, int *&aIndexList)
Retrieve the number of indices and a pointer to the list.
bool WriteVRML(std::ostream &aFile, bool aReuseFlag) override
Writes this node's data to a VRML file.
bool ReadCache(std::istream &aFile, SGNODE *parentNode) override
Reads binary format data from a cache file.
void AddIndex(int aIndex)
Add a single index to the list.
SGNODE * FindNode(const char *aNodeName, const SGNODE *aCaller) noexcept override
Search the tree of linked nodes and return a reference to the first node found with the given name.
bool writeColorIndex(std::ostream &aFile)
void ReNameNodes(void) override
Rename a node and all its child nodes in preparation for write operations.
void SetIndices(size_t nIndices, int *aIndexList)
Set the number of indices and creates a copy of the given index data.
virtual bool SetParent(SGNODE *aParent, bool notify=true) override
Set the parent SGNODE of this object.
bool WriteCache(std::ostream &aFile, SGNODE *parentNode) override
Write this node's data to a binary cache file.
bool writeIndexList(std::ostream &aFile)
bool AddRefNode(SGNODE *aNode) noexcept override
The base class of all Scene Graph nodes.