| 
    KiCad PCB EDA Suite
    
   | 
 
#include <vrml2_color.h>
  
Public Member Functions | |
| WRL2COLOR () | |
| WRL2COLOR (WRL2NODE *aParent) | |
| virtual | ~WRL2COLOR () | 
| bool | Read (WRLPROC &proc, WRL2BASE *aTopNode) override | 
| bool | AddRefNode (WRL2NODE *aNode) override | 
| bool | AddChildNode (WRL2NODE *aNode) override | 
| SGNODE * | TranslateToSG (SGNODE *aParent) override | 
| Produce a representation of the data using the intermediate scenegraph structures of the kicad_3dsg library.   | |
| bool | HasColors (void) | 
| void | GetColor (int aIndex, float &red, float &green, float &blue) | 
| Retrieve the given color (or default 0.8, 0.8, 0.8 if index is invalid).   | |
| void | GetColors (WRLVEC3F *&aColorList, size_t &aListSize) | 
| Retrieve the current list of colors.   | |
| bool | isDangling (void) override | 
| Determine whether an object should be moved to a different parent during the VRML to SG* translation.   | |
| WRL2NODES | GetNodeType (void) const | 
| WRL2NODE * | GetParent (void) const | 
| virtual bool | SetParent (WRL2NODE *aParent, bool doUnlink=true) | 
| Set the parent WRL2NODE of this object.   | |
| virtual std::string | GetName (void) | 
| virtual bool | SetName (const std::string &aName) | 
| const char * | GetNodeTypeName (WRL2NODES aNodeType) const | 
| virtual WRL2NODE * | FindNode (const std::string &aNodeName, const WRL2NODE *aCaller) | 
| Search the tree of linked nodes and returns a reference to the first node found with the given name.   | |
| std::string | GetError (void) | 
| WRL2NODES | getNodeTypeID (const std::string &aNodeName) | 
| virtual void | unlinkChildNode (const WRL2NODE *aNode) | 
| Remove references to an owned child.   | |
| virtual void | unlinkRefNode (const WRL2NODE *aNode) | 
| Remove pointers to a referenced node.   | |
| void | addNodeRef (WRL2NODE *aNode) | 
| Add a pointer to a node which references but does not own this node.   | |
| void | delNodeRef (WRL2NODE *aNode) | 
| Remove a pointer to a node which references but does not own this node.   | |
Protected Attributes | |
| WRL2NODE * | m_Parent | 
| WRL2NODES | m_Type | 
| std::string | m_Name | 
| std::list< WRL2NODE * > | m_BackPointers | 
| std::list< WRL2NODE * > | m_Children | 
| std::list< WRL2NODE * > | m_Refs | 
| std::string | m_error | 
| SGNODE * | m_sgNode | 
Private Attributes | |
| std::vector< WRLVEC3F > | colors | 
Definition at line 40 of file vrml2_color.h.
| WRL2COLOR::WRL2COLOR | ( | ) | 
Definition at line 34 of file vrml2_color.cpp.
References WRL2NODE::m_Type, WRL2_COLOR, and WRL2NODE::WRL2NODE().
| WRL2COLOR::WRL2COLOR | ( | WRL2NODE * | aParent | ) | 
Definition at line 40 of file vrml2_color.cpp.
References WRL2NODE::m_Parent, WRL2NODE::m_Type, WRL2_COLOR, and WRL2NODE::WRL2NODE().
      
  | 
  virtual | 
Definition at line 50 of file vrml2_color.cpp.
References traceVrmlPlugin.
      
  | 
  overridevirtual | 
Reimplemented from WRL2NODE.
Definition at line 73 of file vrml2_color.cpp.
References WRL2NODE::WRL2NODE().
      
  | 
  inherited | 
Add a pointer to a node which references but does not own this node.
Such back-pointers are required to ensure that invalidated references are removed when a node is deleted.
| aNode | is the node holding a reference to this object. | 
Definition at line 171 of file vrml2_node.cpp.
References m_BackPointers, m_Parent, and WRL2NODE().
Referenced by AddRefNode().
      
  | 
  overridevirtual | 
Reimplemented from WRL2NODE.
Definition at line 66 of file vrml2_color.cpp.
References WRL2NODE::WRL2NODE().
      
  | 
  inherited | 
Remove a pointer to a node which references but does not own this node.
| aNode | is the node holding a reference to this object | 
Definition at line 187 of file vrml2_node.cpp.
References m_BackPointers, traceVrmlPlugin, and WRL2NODE().
      
  | 
  virtualinherited | 
Search the tree of linked nodes and returns a reference to the first node found with the given name.
The reference is then typically added to another node via AddRefNode().
| aNodeName | is the name of the node to search for. | 
| aCaller | is a pointer to the node invoking this function. | 
Definition at line 305 of file vrml2_node.cpp.
References FindNode(), m_Children, m_Name, m_Parent, and WRL2NODE().
Referenced by FindNode(), and WRL2BASE::implementUse().
| void WRL2COLOR::GetColor | ( | int | aIndex, | 
| float & | red, | ||
| float & | green, | ||
| float & | blue ) | 
Retrieve the given color (or default 0.8, 0.8, 0.8 if index is invalid).
Definition at line 177 of file vrml2_color.cpp.
Referenced by WRL2FACESET::TranslateToSG().
| void WRL2COLOR::GetColors | ( | WRLVEC3F *& | aColorList, | 
| size_t & | aListSize ) | 
Retrieve the current list of colors.
Definition at line 193 of file vrml2_color.cpp.
References colors.
      
  | 
  inherited | 
Definition at line 299 of file vrml2_node.cpp.
References m_error.
      
  | 
  virtualinherited | 
      
  | 
  inherited | 
Definition at line 204 of file vrml2_node.cpp.
References m_Type.
Referenced by WRL2APPEARANCE::AddChildNode(), WRL2FACESET::AddChildNode(), WRL2LINESET::AddChildNode(), AddChildNode(), WRL2POINTSET::AddChildNode(), WRL2SHAPE::AddChildNode(), WRL2APPEARANCE::AddRefNode(), WRL2FACESET::AddRefNode(), WRL2LINESET::AddRefNode(), AddRefNode(), WRL2POINTSET::AddRefNode(), WRL2SHAPE::AddRefNode(), WRL2SWITCH::AddRefNode(), WRL2TRANSFORM::AddRefNode(), WRL2BASE::implementUse(), and WRL2INLINE::Read().
      
  | 
  inherited | 
Definition at line 288 of file vrml2_node.cpp.
References nodenames, and WRL2_INVALID.
Referenced by WRL2BASE::ReadNode().
      
  | 
  inherited | 
Definition at line 273 of file vrml2_node.cpp.
References nodenames, WRL2_BASE, WRL2_BEGIN, and WRL2_END.
Referenced by WRL2APPEARANCE::AddChildNode(), WRL2FACESET::AddChildNode(), WRL2LINESET::AddChildNode(), WRL2POINTSET::AddChildNode(), WRL2SHAPE::AddChildNode(), WRL2APPEARANCE::AddRefNode(), WRL2FACESET::AddRefNode(), WRL2LINESET::AddRefNode(), WRL2POINTSET::AddRefNode(), and WRL2SHAPE::AddRefNode().
      
  | 
  inherited | 
Definition at line 210 of file vrml2_node.cpp.
References m_Parent, and WRL2NODE().
Referenced by AddChildNode(), WRL2SWITCH::AddRefNode(), WRL2TRANSFORM::AddRefNode(), WRL2APPEARANCE::unlinkChildNode(), WRL2FACESET::unlinkChildNode(), WRL2LINESET::unlinkChildNode(), WRL2POINTSET::unlinkChildNode(), WRL2APPEARANCE::unlinkRefNode(), WRL2FACESET::unlinkRefNode(), WRL2LINESET::unlinkRefNode(), and WRL2POINTSET::unlinkRefNode().
| bool WRL2COLOR::HasColors | ( | void | ) | 
Definition at line 168 of file vrml2_color.cpp.
References colors.
      
  | 
  overridevirtual | 
Determine whether an object should be moved to a different parent during the VRML to SG* translation.
Implements WRL2NODE.
Definition at line 56 of file vrml2_color.cpp.
References WRL2NODE::m_Parent, and WRL2_INDEXEDFACESET.
Implements WRL2NODE.
Definition at line 80 of file vrml2_color.cpp.
References colors, WRLPROC::eof(), WRLPROC::GetError(), WRLPROC::GetFileName(), WRLPROC::GetFilePosition(), WRLPROC::Peek(), WRLPROC::Pop(), WRLPROC::ReadMFVec3f(), WRLPROC::ReadName(), and traceVrmlPlugin.
Referenced by WRL2BASE::readColor().
      
  | 
  virtualinherited | 
Reimplemented in WRL2BASE.
Definition at line 222 of file vrml2_node.cpp.
References BAD_CHARS1, BAD_CHARS2, badNames, m_Name, and traceVrmlPlugin.
Referenced by WRL2BASE::implementDef().
      
  | 
  virtualinherited | 
Set the parent WRL2NODE of this object.
| aParent | [in] is the desired parent node. | 
| doUnlink | indicates that the child must be unlinked from the parent | 
Reimplemented in WRL2BASE.
Definition at line 339 of file vrml2_node.cpp.
References m_Parent, and WRL2NODE().
Referenced by AddChildNode(), WRL2SWITCH::AddRefNode(), and WRL2TRANSFORM::AddRefNode().
Produce a representation of the data using the intermediate scenegraph structures of the kicad_3dsg library.
| aParent | is a pointer to the parent SG node. | 
Implements WRL2NODE.
Definition at line 161 of file vrml2_color.cpp.
      
  | 
  virtualinherited | 
Remove references to an owned child.
It is invoked by the child upon destruction to ensure that the parent has no invalid references.
| aNode | is the child which is being deleted. | 
Reimplemented in WRL2APPEARANCE, WRL2FACESET, WRL2LINESET, WRL2POINTSET, and WRL2SHAPE.
Definition at line 407 of file vrml2_node.cpp.
References m_Children, and WRL2NODE().
Referenced by WRL2APPEARANCE::unlinkChildNode(), WRL2FACESET::unlinkChildNode(), WRL2LINESET::unlinkChildNode(), WRL2POINTSET::unlinkChildNode(), and WRL2SHAPE::unlinkChildNode().
      
  | 
  virtualinherited | 
Remove pointers to a referenced node.
It is invoked by the referenced node upon destruction to ensure that the referring node has no invalid references.
| aNode | is the node which is being deleted. | 
Reimplemented in WRL2APPEARANCE, WRL2FACESET, WRL2LINESET, WRL2POINTSET, and WRL2SHAPE.
Definition at line 425 of file vrml2_node.cpp.
References m_Refs, and WRL2NODE().
Referenced by WRL2APPEARANCE::unlinkRefNode(), WRL2FACESET::unlinkRefNode(), WRL2LINESET::unlinkRefNode(), WRL2POINTSET::unlinkRefNode(), and WRL2SHAPE::unlinkRefNode().
      
  | 
  private | 
Definition at line 70 of file vrml2_color.h.
Referenced by GetColor(), GetColors(), HasColors(), and Read().
      
  | 
  protectedinherited | 
Definition at line 173 of file vrml2_node.h.
Referenced by addNodeRef(), delNodeRef(), WRL2APPEARANCE::TranslateToSG(), WRL2FACESET::TranslateToSG(), WRL2MATERIAL::TranslateToSG(), WRL2SHAPE::TranslateToSG(), WRL2SWITCH::TranslateToSG(), WRL2TRANSFORM::TranslateToSG(), WRL2APPEARANCE::~WRL2APPEARANCE(), WRL2FACESET::~WRL2FACESET(), WRL2LINESET::~WRL2LINESET(), ~WRL2NODE(), WRL2POINTSET::~WRL2POINTSET(), WRL2SHAPE::~WRL2SHAPE(), WRL2SWITCH::~WRL2SWITCH(), and WRL2TRANSFORM::~WRL2TRANSFORM().
      
  | 
  protectedinherited | 
Definition at line 174 of file vrml2_node.h.
Referenced by AddChildNode(), FindNode(), WRL2APPEARANCE::TranslateToSG(), WRL2BASE::TranslateToSG(), WRL2FACESET::TranslateToSG(), WRL2MATERIAL::TranslateToSG(), WRL2SHAPE::TranslateToSG(), WRL2SWITCH::TranslateToSG(), WRL2TRANSFORM::TranslateToSG(), unlinkChildNode(), WRL2APPEARANCE::~WRL2APPEARANCE(), WRL2FACESET::~WRL2FACESET(), WRL2LINESET::~WRL2LINESET(), ~WRL2NODE(), WRL2POINTSET::~WRL2POINTSET(), WRL2SHAPE::~WRL2SHAPE(), WRL2SWITCH::~WRL2SWITCH(), and WRL2TRANSFORM::~WRL2TRANSFORM().
      
  | 
  protectedinherited | 
Definition at line 176 of file vrml2_node.h.
Referenced by GetError().
      
  | 
  protectedinherited | 
Definition at line 171 of file vrml2_node.h.
Referenced by FindNode(), GetName(), and SetName().
      
  | 
  protectedinherited | 
Definition at line 169 of file vrml2_node.h.
Referenced by addNodeRef(), FindNode(), GetParent(), WRL2APPEARANCE::isDangling(), WRL2BOX::isDangling(), WRL2COLOR::isDangling(), WRL2COORDS::isDangling(), WRL2FACESET::isDangling(), WRL2LINESET::isDangling(), WRL2MATERIAL::isDangling(), WRL2NORMS::isDangling(), WRL2POINTSET::isDangling(), WRL2SHAPE::isDangling(), SetParent(), WRL2APPEARANCE::WRL2APPEARANCE(), WRL2BOX::WRL2BOX(), WRL2COLOR::WRL2COLOR(), WRL2COORDS::WRL2COORDS(), WRL2FACESET::WRL2FACESET(), WRL2INLINE::WRL2INLINE(), WRL2INLINE::WRL2INLINE(), WRL2LINESET::WRL2LINESET(), WRL2MATERIAL::WRL2MATERIAL(), WRL2NODE(), WRL2NORMS::WRL2NORMS(), WRL2POINTSET::WRL2POINTSET(), WRL2SHAPE::WRL2SHAPE(), WRL2SWITCH::WRL2SWITCH(), WRL2TRANSFORM::WRL2TRANSFORM(), and ~WRL2NODE().
      
  | 
  protectedinherited | 
Definition at line 175 of file vrml2_node.h.
Referenced by AddRefNode(), WRL2APPEARANCE::TranslateToSG(), WRL2FACESET::TranslateToSG(), WRL2MATERIAL::TranslateToSG(), WRL2SHAPE::TranslateToSG(), WRL2SWITCH::TranslateToSG(), WRL2TRANSFORM::TranslateToSG(), unlinkRefNode(), WRL2APPEARANCE::~WRL2APPEARANCE(), WRL2FACESET::~WRL2FACESET(), WRL2LINESET::~WRL2LINESET(), ~WRL2NODE(), WRL2POINTSET::~WRL2POINTSET(), WRL2SHAPE::~WRL2SHAPE(), WRL2SWITCH::~WRL2SWITCH(), and WRL2TRANSFORM::~WRL2TRANSFORM().
      
  | 
  protectedinherited | 
Definition at line 178 of file vrml2_node.h.
Referenced by WRL2APPEARANCE::TranslateToSG(), WRL2BASE::TranslateToSG(), WRL2BOX::TranslateToSG(), WRL2FACESET::TranslateToSG(), WRL2MATERIAL::TranslateToSG(), WRL2SHAPE::TranslateToSG(), WRL2TRANSFORM::TranslateToSG(), and WRL2NODE().
      
  | 
  protectedinherited | 
Definition at line 170 of file vrml2_node.h.
Referenced by GetNodeType(), WRL2APPEARANCE::WRL2APPEARANCE(), WRL2APPEARANCE::WRL2APPEARANCE(), WRL2BASE::WRL2BASE(), WRL2BOX::WRL2BOX(), WRL2BOX::WRL2BOX(), WRL2COLOR::WRL2COLOR(), WRL2COLOR::WRL2COLOR(), WRL2COORDS::WRL2COORDS(), WRL2COORDS::WRL2COORDS(), WRL2FACESET::WRL2FACESET(), WRL2FACESET::WRL2FACESET(), WRL2INLINE::WRL2INLINE(), WRL2INLINE::WRL2INLINE(), WRL2LINESET::WRL2LINESET(), WRL2LINESET::WRL2LINESET(), WRL2MATERIAL::WRL2MATERIAL(), WRL2MATERIAL::WRL2MATERIAL(), WRL2NODE(), WRL2NORMS::WRL2NORMS(), WRL2NORMS::WRL2NORMS(), WRL2POINTSET::WRL2POINTSET(), WRL2POINTSET::WRL2POINTSET(), WRL2SHAPE::WRL2SHAPE(), WRL2SHAPE::WRL2SHAPE(), WRL2SWITCH::WRL2SWITCH(), WRL2SWITCH::WRL2SWITCH(), WRL2TRANSFORM::WRL2TRANSFORM(), and WRL2TRANSFORM::WRL2TRANSFORM().