55 void AddColor(
double aRedValue,
double aGreenValue,
double aBlueValue );
59 bool WriteVRML( std::ostream& aFile,
bool aReuseFlag )
override;
Define an RGB color set for a scenegraph object.
void unlinkChildNode(const SGNODE *aNode) noexcept override
Remove references to an owned child.
bool WriteCache(std::ostream &aFile, SGNODE *parentNode) override
Write this node's data to a binary cache file.
bool ReadCache(std::istream &aFile, SGNODE *parentNode) override
Reads binary format data from a cache file.
bool AddChildNode(SGNODE *aNode) noexcept override
bool AddRefNode(SGNODE *aNode) noexcept override
virtual bool SetParent(SGNODE *aParent, bool notify=true) override
Set the parent SGNODE of this object.
void unlinkRefNode(const SGNODE *aNode) noexcept override
Remove pointers to a referenced node.
bool WriteVRML(std::ostream &aFile, bool aReuseFlag) override
Writes this node's data to a VRML file.
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.
void AddColor(double aRedValue, double aGreenValue, double aBlueValue)
void SetColorList(size_t aListSize, const SGCOLOR *aColorList)
std::vector< SGCOLOR > colors
bool GetColorList(size_t &aListSize, SGCOLOR *&aColorList)
void ReNameNodes(void) override
Rename a node and all its child nodes in preparation for write operations.
The base class of all Scene Graph nodes.