KiCad PCB EDA Suite
Loading...
Searching...
No Matches
nl_3d_viewer_plugin_impl.cpp File Reference
#include "nl_3d_viewer_plugin_impl.h"
#include <3d-viewer/3d_rendering/track_ball.h>
#include <3d-viewer/3d_canvas/eda_3d_canvas.h>
#include <tool/action_manager.h>
#include <tool/tool_manager.h>
#include <map>
#include <string>
#include <vector>
#include <wx/mstream.h>

Go to the source code of this file.

Typedefs

typedef std::map< std::string, TDx::CCommandTreeNode * > CATEGORY_STORE
 

Functions

template<glm::length_t L, glm::length_t C, class T , glm::qualifier Q>
bool equals (glm::mat< L, C, T, Q > const &aFirst, glm::mat< L, C, T, Q > const &aSecond, T aEpsilon=static_cast< T >(FLT_EPSILON *10))
 Template to compare two glm::mat<T> values for equality within a required epsilon.
 
CATEGORY_STORE::iterator add_category (std::string aCategoryPath, CATEGORY_STORE &aCategoryStore)
 Add a category to the store.
 

Typedef Documentation

◆ CATEGORY_STORE

typedef std::map<std::string, TDx::CCommandTreeNode*> CATEGORY_STORE

Definition at line 105 of file nl_3d_viewer_plugin_impl.cpp.

Function Documentation

◆ add_category()

CATEGORY_STORE::iterator add_category ( std::string  aCategoryPath,
CATEGORY_STORE aCategoryStore 
)

Add a category to the store.

The function adds category paths of the format "A.B" where B is a sub-category of A.

Parameters
aCategoryPathis the std::string representation of the category.
aCategoryStoreis the CATEGORY_STORE instance to add to.
Returns
a CATEGORY_STORE::iterator where the category was added.

Definition at line 116 of file nl_3d_viewer_plugin_impl.cpp.

References add_category(), and name.

Referenced by add_category(), NL_3D_VIEWER_PLUGIN_IMPL::exportCommandsAndImages(), NL_SCHEMATIC_PLUGIN_IMPL::exportCommandsAndImages(), and NL_PCBNEW_PLUGIN_IMPL::exportCommandsAndImages().

◆ equals()

template<glm::length_t L, glm::length_t C, class T , glm::qualifier Q>
bool equals ( glm::mat< L, C, T, Q > const &  aFirst,
glm::mat< L, C, T, Q > const &  aSecond,
aEpsilon = static_cast<T>( FLT_EPSILON * 10 ) 
)

Template to compare two glm::mat<T> values for equality within a required epsilon.

Parameters
aFirstvalue to compare.
aSecondvalue to compare.
aEpsilonallowed error.
Returns
true if the values considered equal within the specified epsilon, otherwise false.

Definition at line 57 of file nl_3d_viewer_plugin_impl.cpp.

References equals().

Referenced by equals(), NL_3D_VIEWER_PLUGIN_IMPL::SetCameraMatrix(), NL_SCHEMATIC_PLUGIN_IMPL::SetCameraMatrix(), NL_PCBNEW_PLUGIN_IMPL::SetCameraMatrix(), NL_SCHEMATIC_PLUGIN_IMPL::SetViewExtents(), and NL_PCBNEW_PLUGIN_IMPL::SetViewExtents().