SourceXtractorPlusPlus  0.10
Please provide a description of the project.
RotatedModelComponent.h
Go to the documentation of this file.
1 
23 #ifndef MODELFITTING_ROTATEDMODELCOMPONENT_H
24 #define MODELFITTING_ROTATEDMODELCOMPONENT_H
25 
26 #include <memory> // for std::unique_ptr
29 
30 namespace ModelFitting {
31 
37 
38 public:
39 
50  std::shared_ptr<BasicParameter> rotation_angle);
51 
53 
54  virtual ~RotatedModelComponent();
55 
56  double getValue(double x, double y) override;
57 
58  void updateRasterizationInfo(double scale, double r_max) override;
59 
61 
62  bool insideSharpRegion(double x, double y) override;
63 
64 private:
65 
68 
69  double m_cos;
70  double m_sin;
72 
73 }; // end of class RotatedModelComponent
74 
75 } // end of namespace ModelFitting
76 
77 #endif /* MODELFITTING_ROTATEDMODELCOMPONENT_H */
78 
std::unique_ptr< ModelComponent > m_component
double getValue(double x, double y) override
bool insideSharpRegion(double x, double y) override
std::shared_ptr< DependentParameter< std::shared_ptr< EngineParameter > > > x
std::vector< ModelSample > getSharpSampling() override
std::shared_ptr< DependentParameter< std::shared_ptr< EngineParameter > > > y
RotatedModelComponent(std::unique_ptr< ModelComponent > component, std::shared_ptr< BasicParameter > rotation_angle)
STL class.
STL class.
std::shared_ptr< BasicParameter > m_rotation_angle
void updateRasterizationInfo(double scale, double r_max) override