NDEVR
API Documentation
CADHelperFunctions.h
1#pragma once
2#include "DLLInfo.h"
3#include <NDEVR/CADColorInfo.h>
4#include <NDEVR/Model.h>
5namespace NDEVR
6{
7 class FactoryOptions;
12 {
13 public:
17 static CADColorInfo GenerateDXFColorInfo(const Model& model, bool is_flat, bool is_vertex);
21 static String CADLayerName(const Model& model);
25 static void FillOutLayerData(const Model& layer, LayerData& data);
29 static void FillOutData(const Model& model, EntityData& data);
38 static bool DXFShouldExport(FactoryOptions options, const Model& model);
39 };
40}
Useful functions for interfacing with the standard CAD environment.
static CADColorInfo GenerateDXFColorInfo(const Model &model, bool is_flat, bool is_vertex)
Converts color information from a Model into a CADColorInfo container.
static bool DXFShouldExport(FactoryOptions options, const Model &model)
Determines whether a model should be exported based on factory options.
static String CADLayerName(const Model &model)
Calculates the layer name of a Model.
static void DXFConvertToPlacementData(PlacementData &data, Matrix< fltp08 > transform)
Converts a transformation matrix into CAD placement data.
static void FillOutData(const Model &model, EntityData &data)
Fills out general CAD entity data from a Model.
static void FillOutLayerData(const Model &layer, LayerData &data)
Fills out CAD layer data from a Model.
User-defined options that define preferences for importing and exporting using IOFactory objects.
Templated logic for doing matrix multiplication.
Definition Matrix.hpp:182
A core class that represents a node on model hierarchy.
Definition Model.h:292
The core String class for the NDEVR API.
Definition String.h:95
The primary namespace for the NDEVR SDK.
@ transform
A 4x4 transform matrix that maps local coordinates into global space.
Stores color information for interfacing with CAD.
Definition CADEntities.h:77
An entity in CAD which has a layer and other handle information.
Layer information shared with CAD.
Data about where to place an object, used for interfacing with CAD.