This class is subject to change. Programs using this class may require changes with a new version of VirtualLab.
Class that describes a 1D region.
More...
|
| override object | Clone () |
| | Clones the current object. More...
|
| |
| override bool | Equals (object obj, EqualityIntent equalityIntent) |
| | Equality operation More...
|
| |
| abstract double[] | GetCoordinatesOfActualSubregionBorders (ExtrapolationInfo extrapolation2use) |
| | Method that gets the coordinates where a real subregion starts or ends. It doesn't contain borders of subregions which are no real borders but only those, where the inside/outside state changes. More...
|
| |
| abstract InsideOutside | GetInOutRelation (double point, ExtrapolationInfo extrapolation2use=null) |
| | Method which checks whether or not a point lies inside or outside the 1D region or on its boundary. More...
|
| |
| bool | IsInside (double point) |
| | Method which checks whether or not a point is inside the 1D region. More...
|
| |
| void | MayBeNonzeroOutside (out bool maybeNonZeroLeft, out bool maybeNonZeroRight) |
| | Method which determines whether or not the region can provide "inside" state outside of its boundary interval. This is not the case for extrapolation mode 'ConstantZero', of course. More...
|
| |
| | Region1D (bool boundariesAreInside, PhysicalProperty propertyOfCoordinates=PhysicalProperty.Length) |
| | Constructor which gets the _boundariesAreInside flag. To be called from derived classes constructors. More...
|
| |
| | Region1D (Region1D region2bCopied) |
| | Copy constructor. More...
|
| |
| | Region1D (SerializationInfo info, StreamingContext context) |
| | Deserialization constructor. See the ISerializable interface for more details. More...
|
| |
|
virtual void | UpdatePropertyOfCoordinates () |
| | Method for handling update after change of the physical property of the coordinate
|
| |
| bool | Equals (object otherObject, EqualityIntent equalityIntent) |
| | Determines whether the specified Object is equal to this instance. More...
|
| |
|
void | Reload () |
| | Reload function for the document
|
| |
|
|
const string | DefaultDocumentName |
| | The default document name (= type description) for an Order Collection.
|
| |
|
static readonly string | FileDialogFilterString |
| | The filter string used in "Open File" dialogs.
|
| |
|
const string | FileExtensionString |
| | The file extension for an Order Collection.
|
| |
|
|
bool | BoundariesAreInside [get, set] |
| | Gets or sets whether or not the boundaries of the region belong to the inner region.
|
| |
|
abstract PhysicalValueRange | BoundingInterval [get] |
| | Gets the bounding interval for the 1D region.
|
| |
|
string | CommentOfCoordinates [get, set] |
| | Gets and sets the comment for the coordinates.
|
| |
|
ExtrapolationInfo | ExtrapolationHandling [get, set] |
| | The extrapolation mode for this region.
|
| |
|
bool | IsOneD [get] |
| | Gets whether this IRegion1D2D is 1D or 2D
|
| |
|
string | Name [get, set] |
| | The name which can be given to the region by the user.
|
| |
|
PhysicalProperty | PropertyOfCoordinates [get, set] |
| | Physical property of the coordinates of the region
|
| |
|
Region1DType | RegionType [get] |
| | Gets the type of the region
|
| |
|
SamplingParameters | SamplingForUsageWithComplexFields [get, set] |
| | Sampling parameters which will be used for a coordinate rescaling in case of using the region with a complex field.
|
| |
|
bool | BoundariesAreInside [get, set] |
| | Gets or sets whether or not the boundaries of the region belong to the inner region.
|
| |
|
bool | IsOneD [get] |
| | Gets whether this IRegion1D2D is 1D or 2D
|
| |
|
string | Name [get, set] |
| | The name which can be given to the region by the user.
|
| |
|
SamplingParameters | SamplingForUsageWithComplexFields [get, set] |
| | Sampling parameters which will be used for a coordinate rescaling in case of using the region with a complex field.
|
| |
|
VirtualLabSession | Session [get, set] |
| | every documents need to be handled in a session ==> default is the VirtualLab Mainsession
|
| |
|
NodeVLExplorer | TreeStructure [get] |
| | every document should have a node (maybe with subnodes) in the VirtualLab Explorer
|
| |
|
DocumentType | TypeOfDocument [get] |
| | Gets an enum entry specifying the type of the document.
|
| |
This class is subject to change. Programs using this class may require changes with a new version of VirtualLab.
Class that describes a 1D region.
◆ Region1D() [1/3]
Constructor which gets the _boundariesAreInside flag. To be called from derived classes constructors.
- Parameters
-
| boundariesAreInside | |
| propertyOfCoordinates | Physical property of the coordinate. |
◆ Region1D() [2/3]
Copy constructor.
- Parameters
-
| region2bCopied | Region to be copied. |
◆ Region1D() [3/3]
| Region1D |
( |
SerializationInfo |
info, |
|
|
StreamingContext |
context |
|
) |
| |
Deserialization constructor. See the ISerializable interface for more details.
- Parameters
-
| info | SerializationInfo |
| context | StreamingContext |
◆ Clone()
| override object Clone |
( |
| ) |
|
Clones the current object.
- Returns
- Deep copy of this object.
◆ Equals()
| override bool Equals |
( |
object |
obj, |
|
|
EqualityIntent |
equalityIntent |
|
) |
| |
Equality operation
- Parameters
-
| obj | |
| equalityIntent | Defines what kind of equality you want to check when comparing two objects, for example all values or physical equality. |
- Returns
Implements IRegion1D2D.
◆ GetCoordinatesOfActualSubregionBorders()
| abstract double[] GetCoordinatesOfActualSubregionBorders |
( |
ExtrapolationInfo |
extrapolation2use | ) |
|
|
pure virtual |
Method that gets the coordinates where a real subregion starts or ends. It doesn't contain borders of subregions which are no real borders but only those, where the inside/outside state changes.
- Returns
- The coordinates of the actual subregion borders.
Implemented in ComposedRegion1D, IntervalRegion, and SampledRegion1D.
◆ GetInOutRelation()
| abstract InsideOutside GetInOutRelation |
( |
double |
point, |
|
|
ExtrapolationInfo |
extrapolation2use = null |
|
) |
| |
|
pure virtual |
Method which checks whether or not a point lies inside or outside the 1D region or on its boundary.
- Parameters
-
| point | The point to be checked whether it lies inside. |
| extrapolation2use | Extrapolation info actually to be used. |
- Returns
- Information where the point lies in relation to the region.
Implemented in ComposedRegion1D, IntervalRegion, and SampledRegion1D.
◆ InvertRegion()
Creates a new region with inverted in / out regions compared to this.
- Parameters
-
| region2Invert | Region to be inverted. |
- Returns
- A new region with inverted in / out regions compared to this.
◆ IsInside()
| bool IsInside |
( |
double |
point | ) |
|
Method which checks whether or not a point is inside the 1D region.
- Parameters
-
| point | The point to be checked whether it lies inside. |
- Returns
true if point lies inside the 1D region.
◆ Load()
Loads the specified file name. Works independently from whether the document has been saved without view settings (as prior to VL 6.0) or with view settings.
- Parameters
-
| fileName | Name of the file. |
- Returns
- The specified document.
◆ MayBeNonzeroOutside()
| void MayBeNonzeroOutside |
( |
out bool |
maybeNonZeroLeft, |
|
|
out bool |
maybeNonZeroRight |
|
) |
| |
Method which determines whether or not the region can provide "inside" state outside of its boundary interval. This is not the case for extrapolation mode 'ConstantZero', of course.
- Parameters
-
| maybeNonZeroLeft | True, if there may be nonzero values left of the bounding interval. |
| maybeNonZeroRight | True, if there may be nonzero values right of the bounding interval. |
◆ operator!=()
Unequals operator.
- Parameters
-
- Returns
◆ operator==()
Equals operator
- Parameters
-
- Returns
◆ Translate()
Translates (shifts) a given region by a given value.
- Parameters
-
| regionToShift | Region to be shifted. |
| shift | Value to shift. |
- Returns
- Shifted region.