| 
    KiCad PCB EDA Suite
    
   | 
 
#include <ifsg_appearance.h>
  
Public Member Functions | |
| IFSG_APPEARANCE (bool create) | |
| IFSG_APPEARANCE (SGNODE *aParent) | |
| IFSG_APPEARANCE (IFSG_NODE &aParent) | |
| bool | Attach (SGNODE *aNode) override | 
| Associate a given SGNODE* with this wrapper.   | |
| bool | NewNode (SGNODE *aParent) override | 
| Create a new node to associate with this wrapper.   | |
| bool | NewNode (IFSG_NODE &aParent) override | 
| bool | SetEmissive (float aRVal, float aGVal, float aBVal) | 
| bool | SetEmissive (const SGCOLOR *aRGBColor) | 
| bool | SetEmissive (const SGCOLOR &aRGBColor) | 
| bool | SetDiffuse (float aRVal, float aGVal, float aBVal) | 
| bool | SetDiffuse (const SGCOLOR *aRGBColor) | 
| bool | SetDiffuse (const SGCOLOR &aRGBColor) | 
| bool | SetSpecular (float aRVal, float aGVal, float aBVal) | 
| bool | SetSpecular (const SGCOLOR *aRGBColor) | 
| bool | SetSpecular (const SGCOLOR &aRGBColor) | 
| bool | SetAmbient (float aRVal, float aGVal, float aBVal) | 
| bool | SetAmbient (const SGCOLOR *aRGBColor) | 
| bool | SetAmbient (const SGCOLOR &aRGBColor) | 
| bool | SetShininess (float aShininess) noexcept | 
| bool | SetTransparency (float aTransparency) noexcept | 
| void | Destroy (void) | 
| Delete the object held by this wrapper.   | |
| SGNODE * | GetRawPtr (void) noexcept | 
| Return the raw internal SGNODE pointer.   | |
| S3D::SGTYPES | GetNodeType (void) const | 
| Return the type of this node instance.   | |
| SGNODE * | GetParent (void) const | 
| Return a pointer to the parent SGNODE of this object or NULL if the object has no parent (ie.   | |
| bool | SetParent (SGNODE *aParent) | 
| Set the parent SGNODE of this object.   | |
| const char * | GetName (void) | 
| Return a pointer to the node name (NULL if no name assigned).   | |
| bool | SetName (const char *aName) | 
| Set the node's name.   | |
| const char * | GetNodeTypeName (S3D::SGTYPES aNodeType) const | 
| Return the text representation of the node type or NULL if the node somehow has an invalid type.   | |
| SGNODE * | FindNode (const char *aNodeName) | 
| Search the tree of linked nodes and returns a reference to the first node found with the given name.   | |
| bool | AddRefNode (SGNODE *aNode) | 
| Add a reference to an existing node which is not owned by (not a child of) this node.   | |
| bool | AddRefNode (IFSG_NODE &aNode) | 
| bool | AddChildNode (SGNODE *aNode) | 
| Add a node as a child owned by this node.   | |
| bool | AddChildNode (IFSG_NODE &aNode) | 
Protected Attributes | |
| SGNODE * | m_node | 
Definition at line 34 of file ifsg_appearance.h.
| IFSG_APPEARANCE::IFSG_APPEARANCE | ( | bool | create | ) | 
Definition at line 37 of file ifsg_appearance.cpp.
References IFSG_NODE::m_node.
| IFSG_APPEARANCE::IFSG_APPEARANCE | ( | SGNODE * | aParent | ) | 
Definition at line 50 of file ifsg_appearance.cpp.
References IFSG_NODE::m_node, and WrongParent.
| IFSG_APPEARANCE::IFSG_APPEARANCE | ( | IFSG_NODE & | aParent | ) | 
Definition at line 69 of file ifsg_appearance.cpp.
References BadParent, IFSG_NODE::GetRawPtr(), IFSG_NODE::IFSG_NODE(), IFSG_NODE::m_node, and WrongParent.
      
  | 
  inherited | 
Definition at line 156 of file ifsg_node.cpp.
References GetRawPtr(), IFSG_NODE(), and m_node.
      
  | 
  inherited | 
Add a node as a child owned by this node.
Definition at line 148 of file ifsg_node.cpp.
References m_node.
Referenced by SHAPE::CalcShape(), EXPORTER_PCB_VRML::create_vrml_plane(), EXPORTER_PCB_VRML::create_vrml_shell(), EXPORTER_PCB_VRML::ExportVrmlFootprint(), makeComponents(), and NewNode().
      
  | 
  inherited | 
Definition at line 136 of file ifsg_node.cpp.
References GetRawPtr(), IFSG_NODE(), and m_node.
      
  | 
  inherited | 
Add a reference to an existing node which is not owned by (not a child of) this node.
Definition at line 128 of file ifsg_node.cpp.
References m_node.
Referenced by SHAPE::CalcShape(), EXPORTER_PCB_VRML::create_vrml_plane(), EXPORTER_PCB_VRML::create_vrml_shell(), EXPORTER_PCB_VRML::ExportVrmlFootprint(), makeComponents(), NewNode(), and vrmlToSG().
      
  | 
  overridevirtual | 
Associate a given SGNODE* with this wrapper.
Implements IFSG_NODE.
Definition at line 98 of file ifsg_appearance.cpp.
References SGNODE::GetNodeType(), IFSG_NODE::m_node, and S3D::SGTYPE_APPEARANCE.
Referenced by X3DSHAPE::TranslateToSG().
      
  | 
  inherited | 
Delete the object held by this wrapper.
Definition at line 55 of file ifsg_node.cpp.
References m_node.
Referenced by loadIDFBoard(), operator=(), processSolidOrShell(), WRL1BASE::TranslateToSG(), WRL1GROUP::TranslateToSG(), WRL1SEPARATOR::TranslateToSG(), WRL2BASE::TranslateToSG(), WRL2SHAPE::TranslateToSG(), WRL2TRANSFORM::TranslateToSG(), X3DSHAPE::TranslateToSG(), and X3DTRANSFORM::TranslateToSG().
      
  | 
  inherited | 
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. | 
Definition at line 120 of file ifsg_node.cpp.
References m_node.
Referenced by NewNode().
      
  | 
  inherited | 
Return a pointer to the node name (NULL if no name assigned).
Definition at line 95 of file ifsg_node.cpp.
References m_node.
Referenced by NewNode().
      
  | 
  inherited | 
Return the type of this node instance.
Definition at line 71 of file ifsg_node.cpp.
References m_node, and S3D::SGTYPE_END.
Referenced by NewNode().
      
  | 
  inherited | 
Return the text representation of the node type or NULL if the node somehow has an invalid type.
Definition at line 112 of file ifsg_node.cpp.
References m_node.
Referenced by NewNode().
      
  | 
  inherited | 
Return a pointer to the parent SGNODE of this object or NULL if the object has no parent (ie.
top level transform).
Definition at line 79 of file ifsg_node.cpp.
References m_node.
Referenced by makeComponents(), and NewNode().
      
  | 
  noexceptinherited | 
Return the raw internal SGNODE pointer.
Definition at line 65 of file ifsg_node.cpp.
References m_node.
Referenced by AddChildNode(), AddRefNode(), SHAPE::CalcShape(), EXPORTER_PCB_VRML::create_vrml_plane(), EXPORTER_PCB_VRML::create_vrml_shell(), WRL1MATERIAL::GetAppearance(), DATA::GetColor(), getColor(), EXPORTER_PCB_VRML::getSGColor(), IFSG_APPEARANCE::IFSG_APPEARANCE(), IFSG_COLORS::IFSG_COLORS(), IFSG_COORDINDEX::IFSG_COORDINDEX(), IFSG_COORDS::IFSG_COORDS(), IFSG_FACESET::IFSG_FACESET(), IFSG_NORMALS::IFSG_NORMALS(), IFSG_SHAPE::IFSG_SHAPE(), loadIDFBoard(), LoadModel(), IFSG_APPEARANCE::NewNode(), IFSG_COLORS::NewNode(), IFSG_COORDINDEX::NewNode(), IFSG_COORDS::NewNode(), IFSG_FACESET::NewNode(), NewNode(), IFSG_NORMALS::NewNode(), IFSG_SHAPE::NewNode(), IFSG_TRANSFORM::NewNode(), processFace(), processLabel(), processSolidOrShell(), WRL1BASE::TranslateToSG(), WRL1GROUP::TranslateToSG(), WRL1SEPARATOR::TranslateToSG(), WRL2APPEARANCE::TranslateToSG(), WRL2BASE::TranslateToSG(), WRL2BOX::TranslateToSG(), WRL2MATERIAL::TranslateToSG(), WRL2SHAPE::TranslateToSG(), WRL2TRANSFORM::TranslateToSG(), X3DAPP::TranslateToSG(), X3DSHAPE::TranslateToSG(), X3DTRANSFORM::TranslateToSG(), and vrmlToSG().
      
  | 
  overridevirtual | 
Implements IFSG_NODE.
Definition at line 145 of file ifsg_appearance.cpp.
References IFSG_NODE::GetRawPtr(), IFSG_NODE::IFSG_NODE(), and NewNode().
      
  | 
  overridevirtual | 
Create a new node to associate with this wrapper.
Implements IFSG_NODE.
Definition at line 120 of file ifsg_appearance.cpp.
References SGNODE::GetNodeType(), SGNODE::GetNodeTypeName(), and IFSG_NODE::m_node.
Referenced by NewNode().
| bool IFSG_APPEARANCE::SetAmbient | ( | const SGCOLOR & | aRGBColor | ) | 
Definition at line 243 of file ifsg_appearance.cpp.
References IFSG_NODE::m_node.
| bool IFSG_APPEARANCE::SetAmbient | ( | const SGCOLOR * | aRGBColor | ) | 
Definition at line 235 of file ifsg_appearance.cpp.
References IFSG_NODE::m_node.
| bool IFSG_APPEARANCE::SetAmbient | ( | float | aRVal, | 
| float | aGVal, | ||
| float | aBVal ) | 
Definition at line 227 of file ifsg_appearance.cpp.
References IFSG_NODE::m_node.
Referenced by WRL1MATERIAL::GetAppearance(), DATA::GetColor(), EXPORTER_PCB_VRML::getSGColor(), WRL2MATERIAL::TranslateToSG(), and X3DAPP::TranslateToSG().
| bool IFSG_APPEARANCE::SetDiffuse | ( | const SGCOLOR & | aRGBColor | ) | 
Definition at line 195 of file ifsg_appearance.cpp.
References IFSG_NODE::m_node.
| bool IFSG_APPEARANCE::SetDiffuse | ( | const SGCOLOR * | aRGBColor | ) | 
Definition at line 187 of file ifsg_appearance.cpp.
References IFSG_NODE::m_node.
| bool IFSG_APPEARANCE::SetDiffuse | ( | float | aRVal, | 
| float | aGVal, | ||
| float | aBVal ) | 
Definition at line 179 of file ifsg_appearance.cpp.
References IFSG_NODE::m_node.
Referenced by WRL1MATERIAL::GetAppearance(), DATA::GetColor(), getColor(), EXPORTER_PCB_VRML::getSGColor(), WRL2APPEARANCE::TranslateToSG(), WRL2MATERIAL::TranslateToSG(), and X3DAPP::TranslateToSG().
| bool IFSG_APPEARANCE::SetEmissive | ( | const SGCOLOR & | aRGBColor | ) | 
Definition at line 171 of file ifsg_appearance.cpp.
References IFSG_NODE::m_node.
| bool IFSG_APPEARANCE::SetEmissive | ( | const SGCOLOR * | aRGBColor | ) | 
Definition at line 163 of file ifsg_appearance.cpp.
References IFSG_NODE::m_node.
| bool IFSG_APPEARANCE::SetEmissive | ( | float | aRVal, | 
| float | aGVal, | ||
| float | aBVal ) | 
Definition at line 155 of file ifsg_appearance.cpp.
References IFSG_NODE::m_node.
Referenced by WRL1MATERIAL::GetAppearance(), WRL2APPEARANCE::TranslateToSG(), WRL2MATERIAL::TranslateToSG(), and X3DAPP::TranslateToSG().
      
  | 
  inherited | 
Set the node's name.
If the pointer passed is NULL, the node's name is erased.
Definition at line 103 of file ifsg_node.cpp.
References m_node.
Referenced by NewNode().
      
  | 
  inherited | 
Set the parent SGNODE of this object.
| [in] | aParent | is the desired parent node. | 
Definition at line 87 of file ifsg_node.cpp.
References m_node.
Referenced by NewNode(), processFace(), and EXPORTER_PCB_VRML::~EXPORTER_PCB_VRML().
      
  | 
  noexcept | 
Definition at line 251 of file ifsg_appearance.cpp.
References IFSG_NODE::m_node.
Referenced by WRL1MATERIAL::GetAppearance(), DATA::GetColor(), getColor(), EXPORTER_PCB_VRML::getSGColor(), WRL2APPEARANCE::TranslateToSG(), WRL2MATERIAL::TranslateToSG(), and X3DAPP::TranslateToSG().
| bool IFSG_APPEARANCE::SetSpecular | ( | const SGCOLOR & | aRGBColor | ) | 
Definition at line 219 of file ifsg_appearance.cpp.
References IFSG_NODE::m_node.
| bool IFSG_APPEARANCE::SetSpecular | ( | const SGCOLOR * | aRGBColor | ) | 
Definition at line 211 of file ifsg_appearance.cpp.
References IFSG_NODE::m_node.
| bool IFSG_APPEARANCE::SetSpecular | ( | float | aRVal, | 
| float | aGVal, | ||
| float | aBVal ) | 
Definition at line 203 of file ifsg_appearance.cpp.
References IFSG_NODE::m_node.
Referenced by WRL1MATERIAL::GetAppearance(), DATA::GetColor(), getColor(), EXPORTER_PCB_VRML::getSGColor(), WRL2APPEARANCE::TranslateToSG(), WRL2MATERIAL::TranslateToSG(), and X3DAPP::TranslateToSG().
      
  | 
  noexcept | 
Definition at line 269 of file ifsg_appearance.cpp.
References IFSG_NODE::m_node.
Referenced by WRL1MATERIAL::GetAppearance(), DATA::GetColor(), EXPORTER_PCB_VRML::getSGColor(), WRL2APPEARANCE::TranslateToSG(), WRL2MATERIAL::TranslateToSG(), and X3DAPP::TranslateToSG().
      
  | 
  protectedinherited | 
Definition at line 51 of file ifsg_node.h.
Referenced by AddChildNode(), AddChildNode(), IFSG_COLORS::AddColor(), IFSG_COLORS::AddColor(), IFSG_COORDS::AddCoord(), IFSG_COORDS::AddCoord(), IFSG_INDEX::AddIndex(), IFSG_NORMALS::AddNormal(), IFSG_NORMALS::AddNormal(), AddRefNode(), AddRefNode(), IFSG_APPEARANCE::Attach(), IFSG_COLORS::Attach(), IFSG_COORDINDEX::Attach(), IFSG_COORDS::Attach(), IFSG_FACESET::Attach(), IFSG_NORMALS::Attach(), IFSG_SHAPE::Attach(), IFSG_TRANSFORM::Attach(), IFSG_FACESET::CalcNormals(), Destroy(), FindNode(), IFSG_COLORS::GetColorList(), IFSG_COORDS::GetCoordsList(), IFSG_INDEX::GetIndices(), GetName(), GetNodeType(), GetNodeTypeName(), IFSG_NORMALS::GetNormalList(), GetParent(), GetRawPtr(), IFSG_APPEARANCE::IFSG_APPEARANCE(), IFSG_APPEARANCE::IFSG_APPEARANCE(), IFSG_APPEARANCE::IFSG_APPEARANCE(), IFSG_COLORS::IFSG_COLORS(), IFSG_COLORS::IFSG_COLORS(), IFSG_COLORS::IFSG_COLORS(), IFSG_COORDINDEX::IFSG_COORDINDEX(), IFSG_COORDINDEX::IFSG_COORDINDEX(), IFSG_COORDINDEX::IFSG_COORDINDEX(), IFSG_COORDS::IFSG_COORDS(), IFSG_COORDS::IFSG_COORDS(), IFSG_COORDS::IFSG_COORDS(), IFSG_FACESET::IFSG_FACESET(), IFSG_FACESET::IFSG_FACESET(), IFSG_FACESET::IFSG_FACESET(), IFSG_NODE(), IFSG_NORMALS::IFSG_NORMALS(), IFSG_NORMALS::IFSG_NORMALS(), IFSG_NORMALS::IFSG_NORMALS(), IFSG_SHAPE::IFSG_SHAPE(), IFSG_SHAPE::IFSG_SHAPE(), IFSG_SHAPE::IFSG_SHAPE(), IFSG_TRANSFORM::IFSG_TRANSFORM(), IFSG_TRANSFORM::IFSG_TRANSFORM(), IFSG_APPEARANCE::NewNode(), IFSG_COLORS::NewNode(), IFSG_COORDINDEX::NewNode(), IFSG_COORDS::NewNode(), IFSG_FACESET::NewNode(), IFSG_NORMALS::NewNode(), IFSG_SHAPE::NewNode(), IFSG_TRANSFORM::NewNode(), IFSG_APPEARANCE::SetAmbient(), IFSG_APPEARANCE::SetAmbient(), IFSG_APPEARANCE::SetAmbient(), IFSG_TRANSFORM::SetCenter(), IFSG_COLORS::SetColorList(), IFSG_COORDS::SetCoordsList(), IFSG_APPEARANCE::SetDiffuse(), IFSG_APPEARANCE::SetDiffuse(), IFSG_APPEARANCE::SetDiffuse(), IFSG_APPEARANCE::SetEmissive(), IFSG_APPEARANCE::SetEmissive(), IFSG_APPEARANCE::SetEmissive(), IFSG_INDEX::SetIndices(), SetName(), IFSG_NORMALS::SetNormalList(), SetParent(), IFSG_TRANSFORM::SetRotation(), IFSG_TRANSFORM::SetScale(), IFSG_TRANSFORM::SetScale(), IFSG_TRANSFORM::SetScaleOrientation(), IFSG_APPEARANCE::SetShininess(), IFSG_APPEARANCE::SetSpecular(), IFSG_APPEARANCE::SetSpecular(), IFSG_APPEARANCE::SetSpecular(), IFSG_TRANSFORM::SetTranslation(), IFSG_APPEARANCE::SetTransparency(), and ~IFSG_NODE().