Maria GDK 5.0.0.738
Documentation of native code in develop branch
Loading...
Searching...
No Matches
Maria::Viewport Class Reference
Inheritance diagram for Maria::Viewport:
Maria::RasterProjector Maria::IProjector

Public Member Functions

 Viewport (const Viewport *vp)
 
double GetCenterScale () const
 
double GetScalefactor () const
 
double GetNominalScale () const
 
void SetNominalScale (double nominalScale)
 
double GetRotation () const
 
int GetGeoProjectionGeneration () const
 
const DeviceInfoGetDeviceInfo () const
 
const Viewspec GetViewspec () const
 
const BasicGeoTypes::PointXY DevSize () const
 
bool LatLonToXYF (const BasicGeoTypes::GeoPos &latlon, BasicGeoTypes::PointFXY &xy) const
 
bool XYFToLatLon (const BasicGeoTypes::PointFXY &xy, BasicGeoTypes::GeoPos &latlon) const
 
bool LatLonToXYF (const BasicGeoTypes::GeoPos *latlon, BasicGeoTypes::PointFXY *xy, int count) const
 
bool XYFToLatLon (const BasicGeoTypes::PointFXY *xy, BasicGeoTypes::GeoPos *latlon, int count) const
 
void ProjToXY (const BasicGeoTypes::PointDXY &proj_xy, BasicGeoTypes::PointDXY &xy) const
 
void XYToProj (const BasicGeoTypes::PointDXY &xy, BasicGeoTypes::PointDXY &proj_xy) const
 
int GetEnvelopeId () const
 
bool IsFlat () const
 
double UpHeading () const
 
double UpHeading (const BasicGeoTypes::GeoPos &pos) const
 
BasicGeoTypes::PointDXY GetAspect (const BasicGeoTypes::GeoPos &pos) const
 
BasicGeoTypes::PointDXY GetAspect () const
 
const BasicGeoTypes::GeoRectGetGeoExtents () const
 
void Get (std::shared_ptr< IProjector > &proj, DeviceInfo &di, Viewspec &vs, BasicGeoTypes::DblTransform2D &matrix) const
 
void GetTransforms (BasicGeoTypes::PointFXY &dev_offs, double &rotation, double &scale_factor, BasicGeoTypes::PointDXY &center_pt)
 
- Public Member Functions inherited from Maria::RasterProjector
const BasicGeoTypes::DblTransform2DGetProjToImage () const
 
const BasicGeoTypes::DblTransform2DGetImageToProj () const
 
const BasicGeoTypes::RectXYRect () const
 
const BasicGeoTypes::PointDXY RectCenter () const
 
const BasicGeoTypes::RectD ProjRect () const
 
const BasicGeoTypes::PointXY Size () const
 
int Width () const
 
int Height () const
 
const BasicGeoTypes::GeoPosCenter () const
 
void GetCorners (BasicGeoTypes::GeoPos corners[]) const
 
std::vector< BasicGeoTypes::GeoPosGetCorners () const
 
std::shared_ptr< IProjectorGetGeoProjector () const
 
void GetRefinedBoundary (int subdivisions, std::vector< BasicGeoTypes::GeoPos > &boundaryPoints) const
 
BasicGeoTypes::PointDXY GetNorthVector (const BasicGeoTypes::GeoPos &pos) const
 Gets relative XY of point 1 m north of pos.
 
BasicGeoTypes::PointDXY GetNorthVector () const
 
BasicGeoTypes::PointDXY GetEastVector (const BasicGeoTypes::GeoPos &pos) const
 Gets relative XY of point 1 m east of pos.
 
BasicGeoTypes::PointDXY GetEastVector () const
 
BasicGeoTypes::PointDXY GetPixelSize (const BasicGeoTypes::GeoPos &pos) const
 
BasicGeoTypes::PointDXY GetPixelSize () const
 
bool Contains (const BasicGeoTypes::GeoPos &pos) const
 
bool Intersects (RasterProjector *rp) const
 
const char * GetId () const
 
const char * GetProjectionId () const
 
virtual bool LatLonToXY (const BasicGeoTypes::GeoPos &latlon, BasicGeoTypes::PointDXY &xy) const
 
virtual bool LatLonToXY (const BasicGeoTypes::GeoPos *latlon, BasicGeoTypes::PointDXY *xy, int count) const
 
virtual bool XYToLatLon (const BasicGeoTypes::PointDXY &xy, BasicGeoTypes::GeoPos &latlon) const
 
virtual bool XYToLatLon (const BasicGeoTypes::PointDXY *xy, BasicGeoTypes::GeoPos *latlon, int count) const
 
virtual bool IsProjection () const
 True if the IProjector transform contains a projection component, false if the transform is 'only' a datum converion.
 
virtual double UnitScale () const
 XY unit scale factor. If XY unit is 'Meters' and UnitScale is 1e3, actual XY values are in kilometers.
 
virtual DistanceUnit Unit () const
 Nominal unit in the XY plane.
 
BasicGeoTypes::GeoRect CalcQuickGeoRect () const
 
BasicGeoTypes::GeoRect CalcGeoRect () const
 
virtual bool Equals (RasterProjector *rp, double eps=1e-9) const
 
- Public Member Functions inherited from Maria::IProjector
 IProjector (const IProjector &)=delete
 
IProjectoroperator= (const IProjector &)=delete
 
 IProjector (IProjector &&)=delete
 
IProjectoroperator= (IProjector &&)=delete
 
virtual bool LatLonToXY (const BasicGeoTypes::GeoPos &latlon, BasicGeoTypes::PointDXY &xy) const =0
 
virtual bool LatLonToXY (const BasicGeoTypes::GeoPos *latlon, BasicGeoTypes::PointDXY *xy, int count) const =0
 
virtual bool XYToLatLon (const BasicGeoTypes::PointDXY &xy, BasicGeoTypes::GeoPos &latlon) const =0
 
virtual bool XYToLatLon (const BasicGeoTypes::PointDXY *xy, BasicGeoTypes::GeoPos *latlon, int count) const =0
 
virtual const char * GetId () const =0
 
virtual DistanceUnit Unit () const =0
 Nominal unit in the XY plane.
 
virtual double UnitScale () const =0
 XY unit scale factor. If XY unit is 'Meters' and UnitScale is 1e3, actual XY values are in kilometers.
 
virtual bool IsProjection () const =0
 True if the IProjector transform contains a projection component, false if the transform is 'only' a datum converion.
 

Static Public Member Functions

static double DegreesDistance (const BasicGeoTypes::GeoPos &pos1, const BasicGeoTypes::GeoPos &pos2)
 

Protected Member Functions

 Viewport (std::shared_ptr< IProjector > proj, const BasicGeoTypes::DblTransform2D &transform)
 
- Protected Member Functions inherited from Maria::RasterProjector
void InitMatrix (const BasicGeoTypes::PointDXY &ul, const BasicGeoTypes::PointDXY &lr)
 
 RasterProjector (std::shared_ptr< IProjector > proj, const BasicGeoTypes::DblTransform2D &projMatrix, int w, int h)
 
 RasterProjector (std::shared_ptr< IProjector > proj, const BasicGeoTypes::PointDXY &ul, const BasicGeoTypes::PointDXY &lr, int w, int h)
 
 RasterProjector (std::shared_ptr< IProjector > proj, const BasicGeoTypes::GeoPos &ul, const BasicGeoTypes::GeoPos &lr, int w, int h)
 
 RasterProjector (std::shared_ptr< IProjector > proj, const BasicGeoTypes::DblTransform2D &projMatrix, double x0, double y0, int w, int h)
 
 RasterProjector (std::shared_ptr< IProjector > proj, const BasicGeoTypes::DblTransform2D &projToImage, const BasicGeoTypes::DblTransform2D &imageToProj, const BasicGeoTypes::RectXY &rc, const BasicGeoTypes::GeoPos &center)
 

Friends

class ViewportFactory
 

Additional Inherited Members

- Protected Attributes inherited from Maria::RasterProjector
std::shared_ptr< IProjector_projector
 
BasicGeoTypes::DblTransform2D _dfwd
 
BasicGeoTypes::DblTransform2D _drev
 
BasicGeoTypes::RectXY _rc
 
BasicGeoTypes::GeoPos _center
 
- Static Protected Attributes inherited from Maria::RasterProjector
static std::shared_ptr< IProjector_nullProj
 

Member Function Documentation

◆ ProjToXY()

void Maria::Viewport::ProjToXY ( const BasicGeoTypes::PointDXY proj_xy,
BasicGeoTypes::PointDXY xy 
) const

Convert from projected coordinates to pixel XY coordinates. This transform will convert the input coordinate from projected coordinates, for example UTM, (or even Lon,Lat for an unprojected coordinate system) to pixel coordinates. This transform does not use the IProjector, only the affine transformation matrix.

◆ XYToProj()

void Maria::Viewport::XYToProj ( const BasicGeoTypes::PointDXY xy,
BasicGeoTypes::PointDXY proj_xy 
) const

Convert from pixel XY to projected coordinates. This transform will convert the input coordinate from pixel coordinates to projected coordinates, for example UTM, (or even Lon,Lat for an unprojected coordinate system). This transform does not use the IProjector, only the affine transformation matrix.


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