PCL
pcl::ProjectionBase Class Referenceabstract

Base class of all projection systems. More...

#include <ProjectionBase.h>

+ Inheritance diagram for pcl::ProjectionBase:

Public Member Functions

virtual ~ProjectionBase ()
 
virtual ProjectionBaseClone () const =0
 
virtual bool Direct (DPoint &pW, const DPoint &pRD) const noexcept
 
virtual void GetWCS (WCSKeywords &wcs) const
 
virtual bool Inverse (DPoint &pRD, const DPoint &pW) const noexcept
 
virtual IsoString Name () const =0
 
virtual IsoString ProjCode () const =0
 
virtual DPoint ProjectionOrigin () const
 

Static Public Member Functions

static double Distance (const DPoint &p1, const DPoint &p2)
 
static double DistanceFast (const DPoint &p1, const DPoint &p2)
 

Protected Member Functions

 ProjectionBase ()=default
 
 ProjectionBase (const ProjectionBase &)=default
 
void InitFromWCS (const WCSKeywords &)
 
virtual bool Project (DPoint &pW, const DPoint &pN) const noexcept=0
 
virtual bool Unproject (DPoint &pN, const DPoint &pW) const noexcept=0
 

Detailed Description

Definition at line 79 of file ProjectionBase.h.

Constructor & Destructor Documentation

◆ ~ProjectionBase()

virtual pcl::ProjectionBase::~ProjectionBase ( )
inlinevirtual

Virtual destructor.

Definition at line 86 of file ProjectionBase.h.

References pcl::ColorSpace::Name().

◆ ProjectionBase() [1/2]

pcl::ProjectionBase::ProjectionBase ( )
protecteddefault

Default constructor.

◆ ProjectionBase() [2/2]

pcl::ProjectionBase::ProjectionBase ( const ProjectionBase )
protecteddefault

Copy constructor.

Member Function Documentation

◆ Clone()

virtual ProjectionBase* pcl::ProjectionBase::Clone ( ) const
pure virtual

◆ Direct()

virtual bool pcl::ProjectionBase::Direct ( DPoint pW,
const DPoint pRD 
) const
inlinevirtualnoexcept

Transforms from celestial coordinates to world coordinates.

Reimplemented in pcl::GnomonicProjection.

Definition at line 119 of file ProjectionBase.h.

References pcl::IsFinite().

◆ Distance()

static double pcl::ProjectionBase::Distance ( const DPoint p1,
const DPoint p2 
)
inlinestatic

Returns the distance in degrees between two locations in equatorial coordinates.

Definition at line 161 of file ProjectionBase.h.

References pcl::Abs(), pcl::Rad(), and pcl::SinCos().

◆ DistanceFast()

static double pcl::ProjectionBase::DistanceFast ( const DPoint p1,
const DPoint p2 
)
inlinestatic

Returns the distance in degrees between two locations in equatorial coordinates. Uses an approximate, faster algorithm.

Definition at line 177 of file ProjectionBase.h.

References pcl::ArcCos(), pcl::Cos(), pcl::Deg(), pcl::Rad(), and pcl::SinCos().

◆ GetWCS()

virtual void pcl::ProjectionBase::GetWCS ( WCSKeywords wcs) const
virtual

Updates the specified WCS metadata with field values corresponding to this projection.

◆ InitFromWCS()

void pcl::ProjectionBase::InitFromWCS ( const WCSKeywords )
protected

Initialization from WCS metadata.

◆ Inverse()

virtual bool pcl::ProjectionBase::Inverse ( DPoint pRD,
const DPoint pW 
) const
inlinevirtualnoexcept

Transforms from world coordinates to celestial coordinates.

Reimplemented in pcl::GnomonicProjection.

Definition at line 128 of file ProjectionBase.h.

References pcl::IsFinite().

◆ Name()

◆ ProjCode()

virtual IsoString pcl::ProjectionBase::ProjCode ( ) const
pure virtual

◆ Project()

virtual bool pcl::ProjectionBase::Project ( DPoint pW,
const DPoint pN 
) const
protectedpure virtualnoexcept

◆ ProjectionOrigin()

virtual DPoint pcl::ProjectionBase::ProjectionOrigin ( ) const
inlinevirtual

Returns the equatorial coordinates of the projection origin.

Definition at line 152 of file ProjectionBase.h.

References pcl::Deg().

◆ Unproject()

virtual bool pcl::ProjectionBase::Unproject ( DPoint pN,
const DPoint pW 
) const
protectedpure virtualnoexcept

The documentation for this class was generated from the following file: