29#ifndef SG_APPEARANCE_H 
   30#define SG_APPEARANCE_H 
   48    bool SetEmissive( 
float aRVal, 
float aGVal, 
float aBVal );
 
   52    bool SetDiffuse( 
float aRVal, 
float aGVal, 
float aBVal );
 
   56    bool SetSpecular( 
float aRVal, 
float aGVal, 
float aBVal );
 
   60    bool SetAmbient( 
float aRVal, 
float aGVal, 
float aBVal );
 
   69    bool WriteVRML( std::ostream& aFile, 
bool aReuseFlag ) 
override;
 
 
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 AddRefNode(SGNODE *aNode) noexcept override
 
bool SetSpecular(float aRVal, float aGVal, float aBVal)
 
void unlinkRefNode(const SGNODE *aNode) noexcept override
Remove pointers to a referenced node.
 
bool AddChildNode(SGNODE *aNode) noexcept override
 
void unlinkChildNode(const SGNODE *aNode) noexcept override
Remove references to an owned child.
 
SGAPPEARANCE(SGNODE *aParent)
 
bool SetEmissive(float aRVal, float aGVal, float aBVal)
 
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.
 
bool SetDiffuse(float aRVal, float aGVal, float aBVal)
 
bool SetAmbient(float aRVal, float aGVal, float aBVal)
 
bool WriteCache(std::ostream &aFile, SGNODE *parentNode) override
Write this node's data to a binary cache file.
 
void ReNameNodes(void) override
Rename a node and all its child nodes in preparation for write operations.
 
virtual bool SetParent(SGNODE *aParent, bool notify=true) override
Set the parent SGNODE of this object.