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{
39 /**--------------------------------------------------------------------------------------------------
40 \brief Setup parameters for RockWorks.
41 Used to setup types of solid making algorithms used by RockWorks
42 **/
65 /**--------------------------------------------------------------------------------------------------
66 \brief Stores cell information for Rockworks Block Models
67 Used to setup types of solid making algorithms used by RockWorks
68 **/
79 /**--------------------------------------------------------------------------------------------------
80 \brief Simple in and out files used for Slicer
81 Used with slicer IO operations.
82 **/
84 {
87 bool ascii = true;
88 };
89 /**--------------------------------------------------------------------------------------------------
90 \brief writes and reads a Rockworks file
91 Adds support for reading and writing BlockModel enteties to RockWorks.
92 **/
94 {
95 public:
98 static void WriteGenerateSolidScript(const RockWorksSetup& setup);
99 static void OutputForSlicerDicer(const SlicerOutputOptions& setup, const RockworksSolidModInfo& info);
100 static void UpdateModel(Model& model, const RockworksSolidModInfo& info);
101 FactoryFeatures factoryFeatures(const FactoryParameters& file, bool is_import) const override;
102 private:
103 void getSupportedFormats(Buffer<FileFormat>& formats, bool is_read) override;
104 Buffer<UUID> filterModelsToExport(Buffer<UUID> models_to_check, const DesignObjectLookup* lookup, const FileFormat& export_format) const override;
105 bool readFile(FactoryParameters& file) override;
106 bool writeFile(FactoryParameters& file) override;
107 static String CreateDescription(const RockworksSolidModInfo& info);
108
109 };
110};
#define NDEVR_FACTORY_API
Definition DLLInfo.h:57
A specification of upper and lower bounds in N-dimensions.
Definition Bounds.hpp:52
The equivelent of std::vector but with a bit more control. The basic array unit of the library.
Definition Buffer.hpp:56
Provides a constant, unmodifiable pointer that has shared ownership of a dynamically allocated object...
Definition GraphicsPipeline.h:42
A core class where all Design Objects including models, materials, and geometries are stored....
Definition DesignObjectLookup.h:65
Allows IOFactories to report what features they support to make the import/export dialogs easier to s...
Definition FactoryFeatures.h:44
Data that describes a particular file format and how to use the format with the program....
Definition FileFormat.h:43
Logic for reading or writing to a file as well as navigating filesystems.
Definition File.h:48
A service that provides Import/Export functionality for a model heirarchy. These can be registered wi...
Definition IOFactory.h:117
A core class that represents a node on model heirarchy. This node may contain a Geometry or one or mo...
Definition Model.h:58
writes and reads a Rockworks file Adds support for reading and writing BlockModel enteties to RockWor...
Definition RockWorksFactory.h:94
FactoryFeatures factoryFeatures(const FactoryParameters &file, bool is_import) const override
static void UpdateModel(Model &model, const RockworksSolidModInfo &info)
static void OutputForSlicerDicer(const SlicerOutputOptions &setup, const RockworksSolidModInfo &info)
static void WriteGenerateSolidScript(const RockWorksSetup &setup)
static RockworksSolidModInfo ReadSolidModFile(File file)
The core String class for the NDEVR API.
Definition String.h:69
A fixed-size array with better performance compared to dynamic containers.
Definition Vector.hpp:60
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:96
double fltp08
Defines an alias representing an 8 byte floating-point number.
Definition BaseValues.hpp:149
Defines for a given type (such as sint04, fltp08, UUID, etc) a maximum, minimum, and reserved 'invali...
Definition BaseValues.hpp:233
A container of input information that is to be filled with output information by an IOFactory.
Definition IOFactory.h:61
Setup parameters for RockWorks. Used to setup types of solid making algorithms used by RockWorks.
Definition RockWorksFactory.h:44
SolidAlgorithm soliding_algorithm
Definition RockWorksFactory.h:54
uint04 horizontal_density
Definition RockWorksFactory.h:60
uint04 vertical_density
Definition RockWorksFactory.h:61
bool show_statistics
Definition RockWorksFactory.h:62
File rockwell_project_folder
Definition RockWorksFactory.h:56
File rcl_file
Definition RockWorksFactory.h:55
File mod_file
Definition RockWorksFactory.h:57
SolidAlgorithm
Definition RockWorksFactory.h:46
@ e_anisotrophic
Definition RockWorksFactory.h:50
@ e_isotrophic
Definition RockWorksFactory.h:49
@ e_distance_to_point
Definition RockWorksFactory.h:48
@ e_closest_point
Definition RockWorksFactory.h:47
bool close_when_finished
Definition RockWorksFactory.h:63
RockWorksSetup()
Definition RockWorksFactory.h:52
File import_file
Definition RockWorksFactory.h:58
File slicer_out
Definition RockWorksFactory.h:59
Stores cell information for Rockworks Block Models Used to setup types of solid making algorithms use...
Definition RockWorksFactory.h:70
Bounds< 3, fltp08 > bounds
Definition RockWorksFactory.h:72
File file
Definition RockWorksFactory.h:71
fltp08 multiplier
Definition RockWorksFactory.h:76
ConstPointer< Unit > unit
Definition RockWorksFactory.h:77
Buffer< fltp08 > values
Definition RockWorksFactory.h:75
Vector< 3, uint04 > cell_count
Definition RockWorksFactory.h:74
Vector< 3, fltp08 > cell_size
Definition RockWorksFactory.h:73
Simple in and out files used for Slicer Used with slicer IO operations.
Definition RockWorksFactory.h:84
bool ascii
Definition RockWorksFactory.h:87
File gm_file
Definition RockWorksFactory.h:85
File out_file
Definition RockWorksFactory.h:86