| 
    KiCad PCB EDA Suite
    
   | 
 
Define a number of macros to aid in repetitious code which is probably best expressed as a preprocessor macro rather than as a template. More...
#include <iostream>#include <string>#include <algorithm>#include <vector>#include "plugins/3dapi/sg_base.h"#include "plugins/3dapi/sg_types.h"#include <glm/glm.hpp>Go to the source code of this file.
Namespaces | |
| namespace | S3D | 
Macros | |
| #define | DROP_REFS(aType, aList) | 
| #define | DEL_OBJS(aType, aList) | 
| #define | UNLINK_NODE(aNodeID, aType, aNode, aOwnedList, aRefList, isChild) | 
| #define | ADD_NODE(aNodeID, aType, aNode, aOwnedList, aRefList, isChild) | 
| #define | FIND_NODE(aType, aName, aNodeList, aCallingNode) | 
Functions | |
| bool | S3D::degenerate (glm::dvec3 *pts) noexcept | 
| bool | S3D::CalcTriangleNormals (std::vector< SGPOINT > coords, std::vector< int > &index, std::vector< SGVECTOR > &norms) | 
| void | S3D::FormatFloat (std::string &result, double value) | 
| void | S3D::FormatOrientation (std::string &result, const SGVECTOR &axis, double rotation) | 
| void | S3D::FormatPoint (std::string &result, const SGPOINT &point) | 
| void | S3D::FormatVector (std::string &result, const SGVECTOR &aVector) | 
| void | S3D::FormatColor (std::string &result, const SGCOLOR &aColor) | 
| bool | S3D::WritePoint (std::ostream &aFile, const SGPOINT &aPoint) | 
| bool | S3D::WriteVector (std::ostream &aFile, const SGVECTOR &aVector) | 
| bool | S3D::WriteColor (std::ostream &aFile, const SGCOLOR &aColor) | 
| S3D::SGTYPES | S3D::ReadTag (std::istream &aFile, std::string &aName) | 
| Read the text tag of a binary cache file which is the NodeTag and unique ID number combined.   | |
| bool | S3D::ReadPoint (std::istream &aFile, SGPOINT &aPoint) | 
| bool | S3D::ReadVector (std::istream &aFile, SGVECTOR &aVector) | 
| bool | S3D::ReadColor (std::istream &aFile, SGCOLOR &aColor) | 
Define a number of macros to aid in repetitious code which is probably best expressed as a preprocessor macro rather than as a template.
This header also declares a number of functions which are only of use within the sg_* classes.
Definition in file sg_helpers.h.
| #define ADD_NODE | ( | aNodeID, | |
| aType, | |||
| aNode, | |||
| aOwnedList, | |||
| aRefList, | |||
| isChild ) | 
Definition at line 132 of file sg_helpers.h.
Referenced by SCENEGRAPH::addNode().
| #define DEL_OBJS | ( | aType, | |
| aList ) | 
Definition at line 69 of file sg_helpers.h.
Referenced by SCENEGRAPH::~SCENEGRAPH().
| #define DROP_REFS | ( | aType, | |
| aList ) | 
Definition at line 52 of file sg_helpers.h.
Referenced by SCENEGRAPH::~SCENEGRAPH().
| #define FIND_NODE | ( | aType, | |
| aName, | |||
| aNodeList, | |||
| aCallingNode ) | 
Definition at line 173 of file sg_helpers.h.
Referenced by SCENEGRAPH::FindNode().
| #define UNLINK_NODE | ( | aNodeID, | |
| aType, | |||
| aNode, | |||
| aOwnedList, | |||
| aRefList, | |||
| isChild ) | 
Definition at line 86 of file sg_helpers.h.
Referenced by SCENEGRAPH::unlinkNode().