SFCGAL  2.3.0
Public Member Functions | List of all members
SFCGAL::GetZVisitor Class Reference

Visitor to get Z coordinate value. More...

Inheritance diagram for SFCGAL::GetZVisitor:

Public Member Functions

auto operator() (const Coordinate::Empty &) const -> Kernel::FT
 Handle empty coordinates. More...
 
auto operator() (const Kernel::Point_2 &) const -> Kernel::FT
 Handle 2D points (no Z coordinate) More...
 
auto operator() (const Kernel::Point_3 &storage) const -> Kernel::FT
 Get Z coordinate from 3D point. More...
 

Detailed Description

Visitor to get Z coordinate value.

Member Function Documentation

auto SFCGAL::GetZVisitor::operator() ( const Coordinate::Empty &  ) const -> Kernel::FT
inline

Handle empty coordinates.

Exceptions
Exceptionwhen trying to get Z from empty coordinate
Returns
Never returns (throws exception)
auto SFCGAL::GetZVisitor::operator() ( const Kernel::Point_2 &  ) const -> Kernel::FT
inline

Handle 2D points (no Z coordinate)

Returns
0 for 2D points (no Z coordinate)
auto SFCGAL::GetZVisitor::operator() ( const Kernel::Point_3 &  storage) const -> Kernel::FT
inline

Get Z coordinate from 3D point.

Parameters
storageThe 3D point
Returns
Z coordinate value