API Documentation
Loading...
Searching...
No Matches
RockWorksFactory.h
Go to the documentation of this file.
1/**--------------------------------------------------------------------------------------------
2Copyright (c) 2019, NDEVR LLC
3tyler.parke@ndevr.org
4 __ __ ____ _____ __ __ _______
5 | \ | | | __ \ | ___|\ \ / / | __ \
6 | \ | | | | \ \ | |___ \ \ / / | |__) |
7 | . \| | | |__/ / | |___ \ V / | _ /
8 | |\ |_|_____/__|_____|___\_/____| | \ \
9 |__| \__________________________________| \__\
10
11Subject to the terms of the Enterprise+ Agreement, NDEVR hereby grants
12Licensee a limited, non-exclusive, non-transferable, royalty-free license
13(without the right to sublicense) to use the API solely for the purpose of
14Licensee's internal development efforts to develop applications for which
15the API was provided.
16
17The above copyright notice and this permission notice shall be included in all
18copies or substantial portions of the Software.
19
20THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED,
21INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR
22PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE
23FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR
24OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER
25DEALINGS IN THE SOFTWARE.
26
27Library: IOFactory
28File: E57Factory
29Included in API: True
30Author(s): Tyler Parke
31 *-----------------------------------------------------------------------------------------**/
32#pragma once
33#include <NDEVR/IOFactory.h>
34#include <NDEVR/FileFormat.h>
35#include <NDEVR/BaseValues.h>
36#include <NDEVR/Buffer.h>
37namespace NDEVR
38{
72 {
75 bool ascii = true;
76 };
78 {
79 public:
81 static RockworksSolidModInfo ReadSolidModFile(File file);
82 static void WriteGenerateSolidScript(const RockWorksSetup& setup);
83 static void OutputForSlicerDicer(const SlicerOutputOptions& setup, const RockworksSolidModInfo& info);
84 static void UpdateModel(Model& model, const RockworksSolidModInfo& info);
85 FactoryFeatures factoryFeatures(const FactoryParameters& file, bool is_import) const override;
86 private:
87 void getSupportedFormats(Buffer<FileFormat>& formats, bool is_read) override;
88 Buffer<UUID> filterModelsToExport(Buffer<UUID> models_to_check, const DesignObjectLookup* lookup, const FileFormat& export_format) const override;
89 bool readFile(FactoryParameters& file) override;
90 bool writeFile(FactoryParameters& file) override;
91 static String CreateDescription(const RockworksSolidModInfo& info);
92
93 };
94};
#define NDEVR_FACTORY_API
Definition DLLInfo.h:79
A specification of upper and lower bounds in N-dimensions.
Definition Bounds.hpp:57
The equivelent of std::vector but with a bit more control. The basic array unit of the library.
Definition Buffer.hpp:64
Definition GraphicsPipeline.h:42
Definition DesignObjectLookup.h:61
Definition FactoryFeatures.h:40
Definition FileFormat.h:38
Definition File.h:47
Definition IOFactory.h:99
Definition Model.h:54
Definition RockWorksFactory.h:78
Definition String.h:40
An element of a vector space. An element of the real coordinate space Rn Basis vector,...
Definition Vector.hpp:62
Definition ACIColor.h:37
uint32_t uint04
-Defines an alias representing a 4 byte, unsigned integer -Can represent exact integer values 0 throu...
Definition BaseValues.hpp:120
double fltp08
Defines an alias representing an 8 byte floating-point number.
Definition BaseValues.hpp:181
Definition BaseValues.hpp:272
Definition IOFactory.h:56
Definition RockWorksFactory.h:40
SolidAlgorithm soliding_algorithm
Definition RockWorksFactory.h:50
uint04 horizontal_density
Definition RockWorksFactory.h:56
uint04 vertical_density
Definition RockWorksFactory.h:57
bool show_statistics
Definition RockWorksFactory.h:58
File rockwell_project_folder
Definition RockWorksFactory.h:52
File rcl_file
Definition RockWorksFactory.h:51
File mod_file
Definition RockWorksFactory.h:53
SolidAlgorithm
Definition RockWorksFactory.h:42
@ e_anisotrophic
Definition RockWorksFactory.h:46
@ e_isotrophic
Definition RockWorksFactory.h:45
@ e_distance_to_point
Definition RockWorksFactory.h:44
@ e_closest_point
Definition RockWorksFactory.h:43
bool close_when_finished
Definition RockWorksFactory.h:59
RockWorksSetup()
Definition RockWorksFactory.h:48
File import_file
Definition RockWorksFactory.h:54
File slicer_out
Definition RockWorksFactory.h:55
Definition RockWorksFactory.h:62
Bounds< 3, fltp08 > bounds
Definition RockWorksFactory.h:64
File file
Definition RockWorksFactory.h:63
fltp08 multiplier
Definition RockWorksFactory.h:68
ConstPointer< Unit > unit
Definition RockWorksFactory.h:69
Buffer< fltp08 > values
Definition RockWorksFactory.h:67
Vector< 3, uint04 > cell_count
Definition RockWorksFactory.h:66
Vector< 3, fltp08 > cell_size
Definition RockWorksFactory.h:65
Definition RockWorksFactory.h:72
bool ascii
Definition RockWorksFactory.h:75
File gm_file
Definition RockWorksFactory.h:73
File out_file
Definition RockWorksFactory.h:74