Skip to main content

geop_ops_model/parameters/
mod.rs

1//! What a part says of itself besides its shape: the parameters its design
2//! is given by ([`definition`]) — numbers, and the tables a part family
3//! looks its size up in — and its properties — title, designation,
4//! colour, material — as steps of its program producing targets
5//! ([`steps`]), set by a program placing it through the run's inputs
6//! ([`Setting`](geop_core_program::values::Setting)s), and read and set in
7//! a program ([`program`]); where the parts of its instances are
8//! placed by it ([`instance`](mod@instance)); the configurations of a
9//! design ([`configurations`]); and the files a field picks from
10//! ([`files`]).
11
12pub mod configurations;
13pub mod definition;
14pub mod files;
15mod icons;
16pub mod instance;
17pub mod program;
18pub mod steps;
19
20pub use configurations::{
21    ConfigurationsCommand, ConfigurationsPanel, ConfigurationsState, TableChoice,
22};
23pub use definition::{
24    COLOR, CONFIGURATION, Material, NumberParameter, Parameter, ParameterKind, Parameters, Row,
25    validate_color,
26};
27pub use files::file_choices;
28pub use instance::{
29    Factor, Instance, Placement, PoseOf, compose, define_instance, instance, instances, located,
30    placement,
31};
32pub use program::{parameter_numbers, parameters_of, set_parameters};
33pub use steps::{
34    DefineParameters, DefineParametersArgs, FaceColor, LookupTable, LookupTableArgs, PartColor,
35    PartProperties, PartPropertiesArgs, Properties, read_properties, stem,
36};
37
38#[cfg(test)]
39mod configuration_tests;
40#[cfg(test)]
41mod editor_tests;
42#[cfg(test)]
43mod tests;