API Documentation
Loading...
Searching...
No Matches
DesignParameter.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: Design
28File: DesignParameter
29Included in API: True
30Author(s): Tyler Parke
31 *-----------------------------------------------------------------------------------------**/
32#pragma once
33#include "DLLInfo.h"
34#include <NDEVR/Model.h>
35#include <NDEVR/Geometry.h>
36#include <NDEVR/String.h>
37#include <NDEVR/Unit.h>
38namespace NDEVR
39{
40 struct Unit;
42 {
43 public:
45 {
47 , e_design_property
48 , e_geometry_property
49 , e_model_property
50 , e_vertex_property
57 , e_grade
58 , e_h_length
59 , e_v_length
60 , e_geo_orientation
61 , e_model_index
62 , e_vertex_index
63 , e_deployment_bottom
64 , e_parent_path
65 , e_metadata
66 , e_transformed_vertex_metadata
67 };
68 public:
79 explicit DesignParameter(Model::ModelProperty property, uint04 sub_section = Constant<uint04>::NaN);
80 explicit DesignParameter(VertexProperty property, uint04 sub_section = Constant<uint04>::NaN);
81 explicit DesignParameter(SpecialParameter property, uint04 sub_section = Constant<uint04>::NaN);
82 DesignParameter(SpecialParameter property, const String& data_label);
83 DesignParameter(SpecialParameter property, const String& data_label, uint04 sub_section);
84 explicit DesignParameter(const String& name);
85 DesignParameter(const String& column_name, uint04 vertex_index_a, uint04 vertex_index_b);
86 ConstPointer<Unit> defaultUnit() const;
87 TypeInfo defaultType() const;
88 String stringID() const;
89 TranslatedString displayName() const;
90 void setCustomDisplayName(const TranslatedString& custom_display_name);
91 bool operator!=(const DesignParameter& params) const;
92 bool operator==(const DesignParameter& params) const;
93 bool operator<(const DesignParameter& params) const;
94 bool operator>(const DesignParameter& params) const;
95 bool isIgnored() const;
96 protected:
97 void autoSetSpecialParameter();
98 };
99 template<>
101 {
102
103 };
104}
105
106
107
108
#define NDEVR_DESIGN_API
Definition DLLInfo.h:77
bool operator!=(const VkVertexInputAttributeDescription &a, const VkVertexInputAttributeDescription &b)
Definition VulkanRenderObject.cpp:10
bool operator==(const VkVertexInputAttributeDescription &a, const VkVertexInputAttributeDescription &b)
Definition VulkanRenderObject.cpp:18
Definition GraphicsPipeline.h:42
DesignProperty
Definition DesignObject.h:94
Definition DesignParameter.h:42
SpecialParameter special_parameter
Definition DesignParameter.h:74
String column_name
Definition DesignParameter.h:69
ConstPointer< Unit > unit
Definition DesignParameter.h:75
SpecialParameter
Definition DesignParameter.h:45
String default_value
Definition DesignParameter.h:70
TranslatedString custom_display_name
Definition DesignParameter.h:71
GeometryProperty
Definition Geometry.h:99
ModelProperty
Definition Model.h:99
Definition String.h:40
Definition StringStream.h:62
Definition TranslatedString.h:9
Definition TypeInfo.h:39
Definition ACIColor.h:37
VertexProperty
Definition DesignObjectBase.h:52
constexpr bool operator<(const Vector< vec_1_size, t_type > &v1, const Vector< vec_2_size, t_type > &v2)
Definition VectorFunctions.hpp:770
constexpr bool operator>(const Vector< vec_1_size, t_type > &v1, const Vector< vec_2_size, t_type > &v2)
Definition VectorFunctions.hpp:758
uint32_t uint04
-Defines an alias representing a 4 byte, unsigned integer -Can represent exact integer values 0 throu...
Definition BaseValues.hpp:120
Definition BaseValues.hpp:272