API Documentation
Loading...
Searching...
No Matches
CADHelperFunctions.h
Go to the documentation of this file.
1#pragma once
2#include "DLLInfo.h"
3#include <NDEVR/CADColorInfo.h>
4#include <NDEVR/Model.h>
5namespace NDEVR
6{
7 class FactoryOptions;
8 /**--------------------------------------------------------------------------------------------------
9 \brief Useful functions for interfacing with the standard CAD environment.
10 **/
12 {
13 public:
14 /**--------------------------------------------------------------------------------------------------
15 \brief Converts color information from a Model into a CADColorInfo container
16 **/
17 static CADColorInfo GenerateDXFColorInfo(const Model& model, bool is_flat, bool is_vertex);
18 /**--------------------------------------------------------------------------------------------------
19 \brief Calculates the layer name of a Model
20 **/
21 static String CADLayerName(const Model& model);
22 static void FillOutLayerData(const Model& layer, LayerData& data);
23 static void FillOutData(const Model& model, EntityData& data);
25 static bool DXFShouldExport(FactoryOptions options, const Model& model);
26 };
27}
Useful functions for interfacing with the standard CAD environment.
Definition CADHelperFunctions.h:12
static String CADLayerName(const Model &model)
Calculates the layer name of a Model.
static void FillOutLayerData(const Model &layer, LayerData &data)
static void FillOutData(const Model &model, EntityData &data)
static bool DXFShouldExport(FactoryOptions options, const Model &model)
static void DXFConvertToPlacementData(PlacementData &data, Matrix< fltp08 > transform)
static CADColorInfo GenerateDXFColorInfo(const Model &model, bool is_flat, bool is_vertex)
Converts color information from a Model into a CADColorInfo container.
User-defined options that define preferences for importing and exporting using IOFactory objects.
Definition FactoryOptions.h:49
Definition Matrix.hpp:176
A core class that represents a node on model heirarchy. This node may contain a Geometry or one or mo...
Definition Model.h:58
The core String class for the NDEVR API.
Definition String.h:69
Definition ACIColor.h:37
Stores color information for interfacing with CAD.
Definition CADEntities.h:77
An entity in CAD which has a layer and other handle information.
Definition CADEntities.h:158
Layer information shared with CAD.
Definition CADEntities.h:175
Data about where to place an object, used for interfacing with CAD.
Definition CADEntities.h:518