![]() |
IPSDK
4_1_0_2
IPSDK : Image Processing Software Development Kit
|
2d line associated to polar coordinates More...
#include <Line2d.h>
Public Member Functions | |
| eCoordinateSystem2dType | getCoordinateSystem2dType () const |
| method allowing to retrieve coordinate system 2d type | |
| eEntity2dType | getEntity2dType () const |
| method allowing to retrieve entity 2d type | |
| Vector2d | getDirection () const |
| retrieve director vector associated to line | |
| Vector2d | getNormal () const |
| retrieve normal vector associated to line | |
| Point2dData< ipReal64 > | getNearestPointFromOrigin () const |
| retrieve nearest point from origin | |
Constructors and destructor | |
| Line2d () | |
| Line2d (const ipReal64 rho, const ipReal64 theta) | |
| template<typename T > | |
| Line2d (const Point2d< T > &pt0, const Point2d< T > &pt1) | |
| template<typename T > | |
| Line2d (const Point2dData< T > &pt0, const Point2dData< T > &pt1) | |
| template<typename T > | |
| Line2d (const Point2d< T > &pt, const Vector2d &normal) | |
| template<typename T > | |
| Line2d (const Point2dData< T > &pt, const Vector2d &normal) | |
| ~Line2d () | |
| void | setCoords (const ipReal64 rho, const ipReal64 theta) |
| access to line coordinates | |
| template<typename T > | |
| void | setCoords (const Point2d< T > &pt0, const Point2d< T > &pt1) |
| access to line coordinates | |
| template<typename T > | |
| void | setCoords (const Point2dData< T > &pt0, const Point2dData< T > &pt1) |
| access to line coordinates | |
| template<typename T > | |
| void | setCoords (const Point2d< T > &pt, const Vector2d &normal) |
| access to line coordinates | |
| template<typename T > | |
| void | setCoords (const Point2dData< T > &pt, const Vector2d &normal) |
| access to line coordinates | |
| void | setRho (const ipReal64 rho) |
| access to line coordinates | |
| void | setTheta (const ipReal64 theta) |
| access to line coordinates | |
| ipReal64 | getRho () const |
| access to line coordinates | |
| ipReal64 | getTheta () const |
| access to line coordinates | |
| template<typename T > | |
| ipReal64 | distance (const Point2d< T > &pt) const |
| retrieve orthogonal distance between point and line | |
| template<typename T > | |
| ipReal64 | distance (const Point2dData< T > &pt) const |
| retrieve orthogonal distance between point and line | |
| template<typename T > | |
| ipReal64 | signedDistance (const Point2d< T > &pt) const |
| retrieve signed orthogonal distance between point and line (positive value stands for points located on the half space defined by normal direction) | |
| template<typename T > | |
| ipReal64 | signedDistance (const Point2dData< T > &pt) const |
| retrieve signed orthogonal distance between point and line (positive value stands for points located on the half space defined by normal direction) | |
| ipReal64 | getCosTheta () const |
| access to computation intermediate | |
| ipReal64 | getSinTheta () const |
| access to computation intermediate | |
| Line2d & | operator+= (const Vector2d &vec) |
| translation operators on Line2d | |
| Line2d | operator+ (const Vector2d &vec) const |
| translation operators on Line2d | |
| Line2d & | operator-= (const Vector2d &vec) |
| translation operators on Line2d | |
| Line2d | operator- (const Vector2d &vec) const |
| translation operators on Line2d | |
Public Member Functions inherited from ipsdk::geom::BaseTypedGeometryEntity2d< ipReal64 > | |
| BaseTypedGeometryEntity2d () | |
| virtual | ~BaseTypedGeometryEntity2d ()=0 |
Public Member Functions inherited from ipsdk::geom::BaseGeometryEntity2d | |
| eCoordinateDimension | getCoordinateDimension () const |
| method allowing to retrieve entity underlying coordinates dimension | |
| BaseGeometryEntity2d () | |
| virtual | ~BaseGeometryEntity2d ()=0 |
Public Member Functions inherited from ipsdk::geom::BaseGeometryEntity | |
| BaseGeometryEntity () | |
| virtual | ~BaseGeometryEntity ()=0 |
Public Member Functions inherited from ipsdk::BaseObjectWithSkeleton | |
| const eSklSrzMode & | getSerializationMode () const |
| retrieve serialization flag for object More... | |
| void | setSerializationMode (const eSklSrzMode &sklSrzMode) const |
| set serialization flag for object | |
| BaseObjectWithSkeleton () | |
| ~BaseObjectWithSkeleton () | |
Public Member Functions inherited from ipsdk::BaseSerializationObject | |
| BaseSerializationObject () | |
| Default constructor. | |
| virtual | ~BaseSerializationObject ()=0 |
| destructor | |
Public Member Functions inherited from ipsdk::BaseDynamicObject | |
| virtual const std::string & | getClassName () const |
| method allowing to retrieve object class name | |
| virtual BaseDynamicObject * | createNew () const =0 |
| method allowing to create new instance of current object type | |
| virtual DynamicObjectPtr | createShared () const =0 |
| method allowing to create new shared instance of current object type | |
| virtual bool | hasCopySupport () const =0 |
| check whether objet has copy support | |
| virtual BaseDynamicObject * | duplicate () const =0 |
| method allowing to duplicate current object More... | |
| virtual DynamicObjectPtr | duplicateShared () const =0 |
| method allowing shared duplication of current object More... | |
| BaseDynamicObject () | |
| virtual | ~BaseDynamicObject ()=0 |
Static Public Attributes | |
| static const eCoordinateSystem2dType::domain | g_coordinateSystem2dType = eCoordinateSystem2dType::eCS2DT_Polar |
| coordinate system associated to entity | |
| static const eEntity2dType::domain | g_entity2dType = eEntity2dType::eE2DT_Line |
| type associated to entity | |
Static Public Attributes inherited from ipsdk::geom::BaseGeometryEntity2d | |
| static const eCoordinateDimension::domain | g_coordinateDimension = eCoordinateDimension::eCD_2d |
| entity underlying coordinates dimension | |
Protected Attributes | |
| ipReal64 | _rho |
| rho coordinate of line | |
| ipReal64 | _theta |
| theta coordinate of line | |
| ipReal64 | _cosTheta |
| computation intermediate | |
| ipReal64 | _sinTheta |
| computation intermediate | |
Protected Attributes inherited from ipsdk::BaseObjectWithSkeleton | |
| eSklSrzMode | _sklSrzMode |
| serialization flag for object More... | |
Additional Inherited Members | |
Public Types inherited from ipsdk::geom::BaseTypedGeometryEntity2d< ipReal64 > | |
| typedef ipReal64 | DataType |
| data type associated to coordinates | |
Static Public Member Functions inherited from ipsdk::BaseSerializationObject | |
| static ipUInt32 | getVersion () |
| method allowing to retrieve class version information for serialization | |
Static Public Member Functions inherited from ipsdk::BaseDynamicObject | |
| static const std::string & | getTypeName () |
| method allowing to retrieve name associated to class | |
Protected Member Functions inherited from ipsdk::BaseSerializationObject | |
| virtual BoolResult | write (BaseOArchive &ar) const |
| method allowing to ensure serialization write part for object | |
| virtual BoolResult | read (BaseIArchive &ar) |
| method allowing to ensure serialization read part for object | |
Protected Member Functions inherited from ipsdk::BaseDynamicObject | |
| virtual void | initCtorCopy (const BaseDynamicObject &object) |
| virtual void | copy (const BaseDynamicObject &object) |
| method allowing to copy data from another object | |
2d line associated to polar coordinates
Line parameters are expressed in polar coordinates :
where :
is the angle (in radian) between line normal and axis of abscissas
is the distance from line to originFor more informations report to Lines 2d representation
1.8.14