SourceXtractorPlusPlus
0.12
Please provide a description of the project.
|
#include <RotatedModelComponent.h>
Public Member Functions | |
RotatedModelComponent (std::unique_ptr< ModelComponent > component, std::shared_ptr< BasicParameter > rotation_angle) | |
RotatedModelComponent (RotatedModelComponent &&other) | |
virtual | ~RotatedModelComponent () |
double | getValue (double x, double y) override |
void | updateRasterizationInfo (double scale, double r_max) override |
std::vector< ModelSample > | getSharpSampling () override |
bool | insideSharpRegion (double x, double y) override |
![]() | |
virtual | ~ModelComponent ()=default |
Private Attributes | |
std::unique_ptr< ModelComponent > | m_component |
std::shared_ptr< BasicParameter > | m_rotation_angle |
double | m_cos |
double | m_sin |
std::size_t | m_observer_id |
Additional Inherited Members | |
![]() | |
using | ModelSample = std::tuple< double, double, double > |
Decorates a model component, rotating the coordinates by the given angle. As there is no scaling, the integrated value remains.
Definition at line 36 of file RotatedModelComponent.h.
ModelFitting::RotatedModelComponent::RotatedModelComponent | ( | std::unique_ptr< ModelComponent > | component, |
std::shared_ptr< BasicParameter > | rotation_angle | ||
) |
Constructor
component | The component to be decorated. The ownership is acquired by the new object. |
rotation_angle | The rotation angle in radians. |
Definition at line 29 of file RotatedModelComponent.cpp.
References std::move().
ModelFitting::RotatedModelComponent::RotatedModelComponent | ( | RotatedModelComponent && | other | ) |
Definition at line 41 of file RotatedModelComponent.cpp.
References std::move().
|
virtual |
Definition at line 48 of file RotatedModelComponent.cpp.
References m_observer_id, and m_rotation_angle.
|
overridevirtual |
Returns the samples computed only for the sharp area, if any.
The returned value is the integrated value of the function for the area corresponding to the sample, not the value of the function. A pixel may be computed adding up the samples that fall within.
Implements ModelFitting::ModelComponent.
Definition at line 62 of file RotatedModelComponent.cpp.
|
overridevirtual |
Returns the value of the point value of the model at the given coordinates.
Implements ModelFitting::ModelComponent.
Definition at line 52 of file RotatedModelComponent.cpp.
References m_component, m_cos, m_sin, x, and y.
|
overridevirtual |
Returns true if the coordinates fall inside the sharp region
Implements ModelFitting::ModelComponent.
Definition at line 73 of file RotatedModelComponent.cpp.
References m_component, m_cos, m_sin, x, and y.
|
overridevirtual |
scale | |
r_max |
Implements ModelFitting::ModelComponent.
Definition at line 58 of file RotatedModelComponent.cpp.
References m_component.
|
private |
Definition at line 66 of file RotatedModelComponent.h.
Referenced by getValue(), insideSharpRegion(), and updateRasterizationInfo().
|
private |
Definition at line 69 of file RotatedModelComponent.h.
Referenced by getValue(), and insideSharpRegion().
|
private |
Definition at line 71 of file RotatedModelComponent.h.
Referenced by ~RotatedModelComponent().
|
private |
Definition at line 67 of file RotatedModelComponent.h.
Referenced by ~RotatedModelComponent().
|
private |
Definition at line 70 of file RotatedModelComponent.h.
Referenced by getValue(), and insideSharpRegion().