|
wPlot2D version: 0.1.0
A lightweight C++ library for clear and customizable 2D scientific plots.
|
ECS component that manages excluded intervals for function plotting. More...
#include <wDiscontinuityComponent.hpp>

Public Member Functions | |
| DiscontinuityComponent ()=default | |
| virtual | ~DiscontinuityComponent ()=default |
| const std::vector< std::pair< double, double > > & | getExcludedIntervals () const |
| Gives read-only access to the list of excluded intervals. | |
| void | addExcludedInterval (double min, double max) |
| Adds an excluded interval to the list. | |
| void | clearExcludedIntervals () |
| Removes all excluded intervals. | |
| bool | isInExcludedInterval (double x) const |
| Checks if a value falls into one of the excluded intervals. | |
| void | debugPrint () const |
| Public Member Functions inherited from wEngine::Component | |
| virtual | ~Component ()=default |
| virtual void | enable () |
| virtual void | disable () |
| bool | isEnabled () const |
| Checks whether the component is currently active. | |
| void | setParent (Entity *parent) |
| Sets the parent entity of this component. | |
| Entity * | getParent () const |
| Returns the parent entity of this component. | |
Additional Inherited Members | |
| Protected Member Functions inherited from wEngine::Component | |
| Component () | |
| Protected constructor to restrict instantiation to derived classes. | |
ECS component that manages excluded intervals for function plotting.
This component allows the user to explicitly define intervals of the domain where a function should not be drawn (e.g., around asymptotes or undefined values). During rendering, points falling inside these intervals are skipped to avoid unwanted connections across discontinuities.
|
default |
|
virtualdefault |
|
nodiscard |
Gives read-only access to the list of excluded intervals.
| void wEngine::DiscontinuityComponent::addExcludedInterval | ( | double | min, |
| double | max ) |
Adds an excluded interval to the list.
| min | Lower bound of the interval. |
| max | Upper bound of the interval. |
| std::invalid_argument | if min >= max. |
| void wEngine::DiscontinuityComponent::clearExcludedIntervals | ( | ) |
Removes all excluded intervals.
|
nodiscard |
Checks if a value falls into one of the excluded intervals.
| x | Value to test. |
| void wEngine::DiscontinuityComponent::debugPrint | ( | ) | const |