![]()  | 
  
    CARTA Backend
    
   The backend component of CARTA 
   | 
 
Represents a range along an axis. More...
#include <Image.h>
Public Member Functions | |
| AxisRange () | |
| Default constructor initialising the range from 0 to ALL_Z.   | |
| AxisRange (int from_and_to_) | |
| Constructs a range with the same start and end value.   | |
| AxisRange (int from_, int to_) | |
| Constructs a range with a specified start and end.   | |
| bool | operator== (const AxisRange &rhs) const | 
| Checks if two AxisRange objects are equal.   | |
| bool | operator!= (const AxisRange &rhs) const | 
| Checks if two AxisRange objects are not equal.   | |
| bool | is_in_range (int val) const | 
| Determines if a value falls within the range.   | |
Public Attributes | |
| int | from | 
| The start of the range.   | |
| int | to | 
| The end of the range.   | |
Represents a range along an axis.
This struct stores a range with from and to values, providing constructors for different initialization scenarios and utility functions for comparison and range checking. 
      
  | 
  inline | 
Default constructor initialising the range from 0 to ALL_Z.
      
  | 
  inline | 
Constructs a range with the same start and end value.
| from_and_to_ | The value for both from and to.  | 
      
  | 
  inline | 
Constructs a range with a specified start and end.
| from_ | The start of the range. | 
| to_ | The end of the range. | 
      
  | 
  inline | 
Determines if a value falls within the range.
| val | The value to check. | 
val is within the range [from, to], false otherwise. 
      
  | 
  inline | 
      
  | 
  inline | 
| int AxisRange::from | 
The start of the range.
| int AxisRange::to | 
The end of the range.