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;
41 /**--------------------------------------------------------------------------------------------------
42 \brief A definition of data that is logically stored in the Model heirarchy.
43 Data could be a property of a Model, Geometry, Vertex, Shape, or Material.
44 **/
46 {
47 public:
49 {
51 , e_design_property
52 , e_geometry_property
53 , e_model_property
54 , e_vertex_property
55 , e_offset
56 , e_rotation
57 , e_scale
60 , e_length
61 , e_grade
62 , e_h_length
63 , e_v_length
64 , e_geo_orientation
65 , e_model_index
66 , e_vertex_index
67 , e_deployment_bottom
68 , e_parent_path
69 , e_metadata
70 , e_transformed_vertex_metadata
71 };
72 public:
86 DesignParameter(SpecialParameter property, const String& data_label);
87 DesignParameter(SpecialParameter property, const String& data_label, uint04 sub_section);
88 explicit DesignParameter(const String& name);
89 DesignParameter(const String& column_name, uint04 vertex_index_a, uint04 vertex_index_b);
94 void setCustomDisplayName(const TranslatedString& custom_display_name);
95 bool operator!=(const DesignParameter& params) const;
96 bool operator==(const DesignParameter& params) const;
97 bool operator<(const DesignParameter& params) const;
98 bool operator>(const DesignParameter& params) const;
99 bool isIgnored() const;
100 protected:
102 };
103 template<>
105 {
106
107 };
108}
109
110
111
112
#define NDEVR_DESIGN_API
Definition DLLInfo.h:55
Provides a constant, unmodifiable pointer that has shared ownership of a dynamically allocated object...
Definition GraphicsPipeline.h:42
DesignProperty
Values stored in the property database.
Definition DesignObject.h:93
A definition of data that is logically stored in the Model heirarchy. Data could be a property of a M...
Definition DesignParameter.h:46
bool isIgnored() const
DesignParameter(DesignObject::DesignProperty property, uint04 sub_section=Constant< uint04 >::Invalid)
SpecialParameter special_parameter
Definition DesignParameter.h:78
ConstPointer< Unit > defaultUnit() const
bool operator<(const DesignParameter &params) const
bool operator>(const DesignParameter &params) const
String column_name
Definition DesignParameter.h:73
DesignParameter(SpecialParameter property, const String &data_label, uint04 sub_section)
void setCustomDisplayName(const TranslatedString &custom_display_name)
DesignParameter(const String &column_name, uint04 vertex_index_a, uint04 vertex_index_b)
bool operator!=(const DesignParameter &params) const
ConstPointer< Unit > unit
Definition DesignParameter.h:79
DesignParameter(VertexProperty property, uint04 sub_section=Constant< uint04 >::Invalid)
SpecialParameter
Definition DesignParameter.h:49
TypeInfo defaultType() const
String stringID() const
bool operator==(const DesignParameter &params) const
DesignParameter(SpecialParameter property, uint04 sub_section=Constant< uint04 >::Invalid)
String default_value
Definition DesignParameter.h:74
TranslatedString custom_display_name
Definition DesignParameter.h:75
DesignParameter(Geometry::GeometryProperty property, uint04 sub_section=Constant< uint04 >::Invalid)
DesignParameter(Model::ModelProperty property, uint04 sub_section=Constant< uint04 >::Invalid)
DesignParameter(const String &name)
TranslatedString displayName() const
DesignParameter(SpecialParameter property, const String &data_label)
GeometryProperty
Definition Geometry.h:99
ModelProperty
Definition Model.h:103
The core String class for the NDEVR API.
Definition String.h:69
Logic for reading or writing to a string or a user friendly, TranslatedString.
Definition StringStream.h:230
Any text displayed to the user should be defined as a TranslatedString which allows the program to lo...
Definition TranslatedString.h:13
Stores information about a type, relevant for certain templated functions. To get information about a...
Definition TypeInfo.h:43
Definition ACIColor.h:37
VertexProperty
Definition DesignObjectBase.h:52
uint32_t uint04
-Defines an alias representing a 4 byte, unsigned integer -Can represent exact integer values 0 throu...
Definition BaseValues.hpp:96
Defines for a given type (such as sint04, fltp08, UUID, etc) a maximum, minimum, and reserved 'invali...
Definition BaseValues.hpp:233