![]() |
IPSDK
4_1_0_2
IPSDK : Image Processing Software Development Kit
|
2d segment associated to two points More...
#include <Segment2d.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 | |
| ipReal64 | getLength () const |
| retrieve segment length | |
| Vector2d | getDirection () const |
| Vector2d | getUnitDirection () const |
| Vector2d | getUnitNormal () const |
Constructors and destructor | |
| Segment2d () | |
| Segment2d (const T x0, const T y0, const T x1, const T y1) | |
| Segment2d (const Point2d< T > &pt0, const Point2d< T > &pt1) | |
| Segment2d (const Point2dData< T > &pt0, const Point2dData< T > &pt1) | |
| Segment2d (const Point2d< T > &pt0, const Vector2d &v10) | |
| Segment2d (const Point2dData< T > &pt0, const Vector2d &v10) | |
| ~Segment2d () | |
| void | setCoords (const T x0, const T y0, const T x1, const T y1) |
| access to segment coordinates | |
| void | setCoords (const Point2d< T > &pt0, const Point2d< T > &pt1) |
| access to segment coordinates | |
| void | setCoords (const Point2dData< T > &pt0, const Point2dData< T > &pt1) |
| access to segment coordinates | |
| void | setCoords (const Point2d< T > &pt, const Vector2d &v01) |
| access to segment coordinates | |
| void | setCoords (const Point2dData< T > &pt, const Vector2d &v01) |
| access to segment coordinates | |
| void | setPoint0 (const Point2d< T > &pt0) |
| access to segment coordinates | |
| void | setPoint0 (const Point2dData< T > &pt0) |
| access to segment coordinates | |
| void | setPoint1 (const Point2d< T > &pt1) |
| access to segment coordinates | |
| void | setPoint1 (const Point2dData< T > &pt1) |
| access to segment coordinates | |
| const Point2dData< T > & | getPoint0 () const |
| access to segment coordinates | |
| const Point2dData< T > & | getPoint1 () const |
| access to segment coordinates | |
| ipReal64 | getMiddleX () const |
| retrieve segment middle point coordinates | |
| ipReal64 | getMiddleY () const |
| retrieve segment middle point coordinates | |
| Point2dData< ipReal64 > | getMiddlePoint () const |
| retrieve segment middle point coordinates | |
| ipReal64 | distance (const Point2d< T > &pt) const |
| retrieve orthogonal distance between point and segment | |
| ipReal64 | distance (const Point2d< T > &pt, Point2d< ipReal64 > &nearestPointOnSegment) const |
| retrieve orthogonal distance between point and segment | |
| ipReal64 | distance (const Point2dData< T > &pt) const |
| retrieve orthogonal distance between point and segment | |
| ipReal64 | distance (const Point2dData< T > &pt, Point2dData< ipReal64 > &nearestPointOnSegment) const |
| retrieve orthogonal distance between point and segment | |
| ipReal64 | distance (const Segment2d< T > &otherSegment) const |
| retrieve orthogonal distance between two segments | |
| ipReal64 | distance (const Segment2d< T > &otherSegment, Point2d< ipReal64 > &nearestPointOnThisSegment, Point2d< ipReal64 > &nearestPointOnOtherSegment) const |
| retrieve orthogonal distance between two segments | |
| ipReal64 | distance (const Segment2d< T > &otherSegment, Point2dData< ipReal64 > &nearestPointOnThisSegment, Point2dData< ipReal64 > &nearestPointOnOtherSegment) const |
| retrieve orthogonal distance between two segments | |
Public Member Functions inherited from ipsdk::geom::BaseTypedGeometryEntity2d< T > | |
| 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_Cartesian |
| coordinate system associated to entity | |
| static const eEntity2dType::domain | g_entity2dType = eEntity2dType::eE2DT_Segment |
| 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 | |
| Point2dData< T > | _pt0 |
| first point associated to segment | |
| Point2dData< T > | _pt1 |
| second point associated to segment | |
Protected Attributes inherited from ipsdk::BaseObjectWithSkeleton | |
| eSklSrzMode | _sklSrzMode |
| serialization flag for object More... | |
Additional Inherited Members | |
Public Types inherited from ipsdk::geom::BaseTypedGeometryEntity2d< T > | |
| typedef T | 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 segment associated to two points
| Vector2d ipsdk::geom::Segment2d< T >::getDirection | ( | ) | const |
retrieve director vector associated to segment (V = (Pt1-Pt0) so V is not unit normed)
| Vector2d ipsdk::geom::Segment2d< T >::getUnitDirection | ( | ) | const |
retrieve unit normed director vector associated to segment (V = (Pt1-Pt0)/||Pt1-Pt0||)
| Vector2d ipsdk::geom::Segment2d< T >::getUnitNormal | ( | ) | const |
retrieve unit normed normal vector associated to segment (N = V + Pi/2)
1.8.14