Shape::Infinite class reference
[Core module]
Declaration
#include <Goptical/Shape/Infinite>
namespace Goptical {
namespace Shape {
class Infinite;
};
};
This class is a member of the Shape namespace.
Inheritance
Description
This class implements an infinite shape with no edge. Any 2d points is located inside the shape. It is useful to describe unbounded image plane for instance.
The global variable infinite provides an instance of this class.
Members
See also the full member list section for this class.
Inherited members
- 12 members inherited from Base
Functions
- Infinite()
- virtual Math::VectorPair2 get_bounding_box() const
- virtual void get_contour(unsigned int contour, const Math::Vector2::put_delegate_t &f, double resolution) const
- virtual unsigned int get_contour_count() const
- virtual double get_outter_radius(const Math::Vector2 &dir) const
- virtual void get_pattern(const Math::Vector2::put_delegate_t &v, const Trace::Distribution &d, bool unobstructed) const
- virtual void get_triangles(const Math::Triangle<2>::put_delegate_t &f, double resolution) const
- virtual bool inside(const Math::Vector2 &point) const
- virtual double max_radius() const
- virtual double min_radius() const
Members detail
Create an infinite shape
virtual Math::VectorPair2 get_bounding_box() const
This virtual function implements the get_bounding_box
pure function declared in the Base
base abstract class.
Documentation inherited from base class:
Get shape bounding box
virtual void get_contour(unsigned int contour, const Math::Vector2::put_delegate_t &f, double resolution) const
This virtual function implements the get_contour
pure function declared in the Base
base abstract class.
Documentation inherited from base class:
Get contour polygone points for specified contour id. First contour is always outter edge.
See also get_contour_count function.
This virtual function implements the get_contour_count
pure function declared in the Base
base abstract class.
Documentation inherited from base class:
Get number of contours polygones. This function returns value is greater than 1 if shape has hole(s).
See also get_contour function.
virtual double get_outter_radius(const Math::Vector2 &dir) const
This virtual function implements the get_outter_radius
pure function declared in the Base
base abstract class.
Documentation inherited from base class:
Get distance between origin and farthest shape edge in specified direction
virtual void get_pattern(const Math::Vector2::put_delegate_t &v, const Trace::Distribution &d, bool unobstructed) const
This virtual function overrides the get_pattern
virtual function defined in the Base
base abstract class.
Documentation inherited from base class:
Get points distributed on shape area with given pattern
virtual void get_triangles(const Math::Triangle<2>::put_delegate_t &f, double resolution) const
This virtual function implements the get_triangles
pure function declared in the Base
base abstract class.
Documentation inherited from base class:
Get shape teselation triangles
virtual bool inside(const Math::Vector2 &point) const
This virtual function implements the inside
pure function declared in the Base
base abstract class.
Documentation inherited from base class:
Check if the (x,y) 2d point is inside 2d shape area
This virtual function implements the max_radius
pure function declared in the Base
base abstract class.
Documentation inherited from base class:
Get distance between origin and farthest shape edge
This virtual function implements the min_radius
pure function declared in the Base
base abstract class.
Documentation inherited from base class:
Get distance between origin and nearest shape outter edge