Skip to content

Commit ab69421

Browse files
Kmeid Saadpmai
authored andcommitted
Factor WavelengthData out to osi_common.proto
Moved WavelengthData to osi_comon.proto since it will be used by other osi messages like emmiting objects. Signed-off-by: Kmeid Saad <kmeid.saad@ansys.com>
1 parent abd2e5b commit ab69421

File tree

2 files changed

+27
-27
lines changed

2 files changed

+27
-27
lines changed

osi_common.proto

Lines changed: 26 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -491,3 +491,29 @@ message StatePoint
491491
//
492492
optional Orientation3d orientation = 3;
493493
}
494+
//
495+
// \brief Detailed WavelengthRange message.
496+
//
497+
// Defines the start (minimum) and the end (maximum) values of the wavelength.
498+
// Additionally, the number of samples within this range is defined in this message.
499+
//
500+
message WavelengthData
501+
{
502+
// The start, or the minimum wavelength value.
503+
//
504+
// Unit: m
505+
//
506+
optional double start = 1;
507+
508+
// The start, or the minimum wavelength value.
509+
//
510+
// Unit: m
511+
//
512+
optional double end = 2;
513+
514+
// Number of samples to be considered within the defined wavelength range.
515+
//
516+
// \note This defines the number of wavelengths to be computed during simulation, not to be confused with samples_per_pixel.
517+
//
518+
optional double samples_number = 3;
519+
}

osi_sensorviewconfiguration.proto

Lines changed: 1 addition & 27 deletions
Original file line numberDiff line numberDiff line change
@@ -848,33 +848,7 @@ message CameraSensorViewConfiguration
848848
// and its desired number of samples.
849849
//
850850
repeated WavelengthData wavelength_data = 11;
851-
852-
// \brief Detailed WavelengthRange message.
853-
//
854-
// Defines the start (minimum) and the end (maximum) values of the wavelength.
855-
// Additionally, the number of samples within this range is defined in this message.
856-
//
857-
message WavelengthData
858-
{
859-
// The start, or the minimum, wavelength to be considered by the spectral ray tracer.
860-
//
861-
// Unit: m
862-
//
863-
optional double start = 1;
864-
865-
// The end, or the maximum, wavelength to be considered by the spectral ray tracer.
866-
//
867-
// Unit: m
868-
//
869-
optional double end = 2;
870-
871-
// Number of samples to be considered within the defined wavelength range.
872-
//
873-
// \note This defines the number of wavelengths to be computed during simulation, not to be confused with samples_per_pixel.
874-
//
875-
optional double samples_number = 3;
876-
}
877-
851+
878852
// TBD: Optical (and other) effects to apply to image, etc.
879853
//
880854
}

0 commit comments

Comments
 (0)