34#define GLM_FORCE_RADIANS
36#include <glm/gtc/matrix_transform.hpp>
55 std::map< std::string, WRL1NODE* >
reg;
77 matbind = WRL1_BINDING::BIND_OVERALL;
79 normbind = WRL1_BINDING::BIND_DEFAULT;
81 txmatrix = glm::scale( glm::mat4( 1.0 ), glm::vec3( 1.0 ) );
82 order = WRL1_ORDER::ORD_UNKNOWN;
188 virtual std::string
GetName(
void );
189 virtual bool SetName(
const std::string& aName );
bool AddName(const std::string &aName, WRL1NODE *aNode)
WRL1NODE * FindName(const std::string &aName)
bool DelName(const std::string &aName, WRL1NODE *aNode)
std::map< std::string, WRL1NODE * > reg
The base class of all Scene Graph nodes.
Represent the top node of a VRML1 model.
The base class of all VRML1 nodes.
WRL1NODE * GetParent(void) const
Return a pointer to the parent SGNODE of this object or NULL if the object has no parent (ie.
std::string GetError(void)
void delNodeRef(WRL1NODE *aNode)
Remove a pointer to a node which references, but does not own, this node.
WRL1NODES getNodeTypeID(const std::string &aNodeName)
Return the ID based on the given aNodeName or WRL1_INVALID (WRL1_END) if no such node name exists.
std::list< WRL1NODE * > m_Items
NAMEREGISTER * m_dictionary
virtual WRL1NODE * FindNode(const std::string &aNodeName)
Search the tree of linked nodes and returns a reference to the current node with the given name.
void addNodeRef(WRL1NODE *aNode)
Add a pointer to a node which references, but does not own, this node.
virtual bool AddRefNode(WRL1NODE *aNode)
virtual bool AddChildNode(WRL1NODE *aNode)
virtual std::string GetName(void)
virtual bool SetParent(WRL1NODE *aParent, bool doUnlink=true)
Set the parent WRL1NODE of this object.
std::list< WRL1NODE * > m_BackPointers
virtual void unlinkChildNode(const WRL1NODE *aNode)
Remove references to an owned child; it is invoked by the child upon destruction to ensure that the p...
virtual SGNODE * TranslateToSG(SGNODE *aParent, WRL1STATUS *sp)=0
Produce a representation of the data using the intermediate scenegraph structures of the kicad_3dsg l...
std::list< WRL1NODE * > m_Children
size_t GetNItems(void) const
virtual bool Read(WRLPROC &proc, WRL1BASE *aTopNode)=0
virtual bool SetName(const std::string &aName)
void addItem(WRL1NODE *aNode)
const char * GetNodeTypeName(WRL1NODES aNodeType) const
std::list< WRL1NODE * > m_Refs
virtual void unlinkRefNode(const WRL1NODE *aNode)
Remove pointers to a referenced node; it is invoked by the referenced node upon destruction to ensure...
WRL1NODES GetNodeType(void) const
Return the type of this node instance.
void delItem(const WRL1NODE *aNode)
defines the basic input class for VRML