57 void AddCoord(
double aXValue,
double aYValue,
double aZValue );
67 bool WriteVRML( std::ostream& aFile,
bool aReuseFlag )
override;
Define a vertex coordinate set for a scenegraph object.
bool WriteCache(std::ostream &aFile, SGNODE *parentNode) override
Write this node's data to a binary cache file.
void unlinkChildNode(const SGNODE *aNode) noexcept override
Remove references to an owned child.
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.
std::vector< SGPOINT > coords
bool AddRefNode(SGNODE *aNode) noexcept override
void AddCoord(double aXValue, double aYValue, double aZValue)
bool ReadCache(std::istream &aFile, SGNODE *parentNode) override
Reads binary format data from a cache 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.
virtual bool SetParent(SGNODE *aParent, bool notify=true) override
Set the parent SGNODE of this object.
bool AddChildNode(SGNODE *aNode) noexcept override
bool GetCoordsList(size_t &aListSize, SGPOINT *&aCoordsList)
void ReNameNodes(void) override
Rename a node and all its child nodes in preparation for write operations.
void SetCoordsList(size_t aListSize, const SGPOINT *aCoordsList)
bool CalcNormals(SGFACESET *callingNode, SGNODE **aPtr=nullptr)
Calculate normals for this coordinate list and sets the normals list in the parent SGFACESET.
Define an indexed face set for a scenegraph.
The base class of all Scene Graph nodes.