LuciadCPillar 2024.0.08
All Classes Namespaces Functions Variables Typedefs Enumerations Enumerator Friends Modules Pages
luciad::Patch Class Referencefinal

A patch is a surface based on a single ring, thus not having any holes. More...

#include <luciad/geometries/Patch.h>

Inheritance diagram for luciad::Patch:
luciad::Surface luciad::Geometry

Public Member Functions

 ~Patch () override
 
const std::shared_ptr< Ring > & getBaseGeometry () const
 Returns the base ring geometry on which the patch is based. More...
 
Bounds getBounds () const override
 Returns the bounds for the geometry object. More...
 
std::shared_ptr< CoordinateReferencegetReference () const override
 Returns the coordinate reference of the geometry. More...
 
- Public Member Functions inherited from luciad::Geometry
virtual ~Geometry ()=default
 
virtual Bounds getBounds () const =0
 Returns the bounds for the geometry object. More...
 
virtual std::shared_ptr< CoordinateReferencegetReference () const =0
 Returns the coordinate reference of the geometry. More...
 

Protected Member Functions

size_t getHash () const override
 Returns the hash value for this geometry. More...
 
virtual size_t getHash () const =0
 Returns the hash value for this geometry. More...
 

Detailed Description

A patch is a surface based on a single ring, thus not having any holes.

You can read more about the available geometries here.

See also
GeometryFactory::createPatch

Constructor & Destructor Documentation

◆ ~Patch()

luciad::Patch::~Patch ( )
override

Member Function Documentation

◆ getBaseGeometry()

const std::shared_ptr< Ring > & luciad::Patch::getBaseGeometry ( ) const

Returns the base ring geometry on which the patch is based.

Returns
the base ring geometry on which the patch is based.

◆ getBounds()

Bounds luciad::Patch::getBounds ( ) const
overridevirtual

Returns the bounds for the geometry object.

Returns
the bounds for the geometry object.
Exceptions
luciad::InvalidArgumentExceptionif the bounds could not be computed. For example, when the geometry is defined by invalid points.

Implements luciad::Geometry.

◆ getHash()

size_t luciad::Patch::getHash ( ) const
overrideprotectedvirtual

Returns the hash value for this geometry.

Returns
the hash value for this geometry.

Implements luciad::Geometry.

◆ getReference()

std::shared_ptr< CoordinateReference > luciad::Patch::getReference ( ) const
overridevirtual

Returns the coordinate reference of the geometry.

Returns
the coordinate reference of the geometry.

Implements luciad::Geometry.