OpendTect  6.6
Public Member Functions | Protected Attributes | List of all members
Plane3CoordSystem Class Reference

Defines a 2D coordinate system on a 3D plane and transforms between the 3D space and the coordinate system. More...

Public Member Functions

 Plane3CoordSystem (const Coord3 &normal, const Coord3 &origin, const Coord3 &pt10)
 
virtual ~Plane3CoordSystem ()
 
bool isOK () const
 
const Plane3plane () const
 
Coord3 transform (const Coord &) const
 
Coord transform (const Coord3 &, bool project) const
 

Protected Attributes

bool isok_
 
const Coord3 origin_
 
const Plane3 plane_
 
Coord3 vec01_
 
Coord3 vec10_
 

Detailed Description

Defines a 2D coordinate system on a 3D plane and transforms between the 3D space and the coordinate system.

<>

Constructor & Destructor Documentation

◆ Plane3CoordSystem()

Plane3CoordSystem::Plane3CoordSystem ( const Coord3 normal,
const Coord3 origin,
const Coord3 pt10 
)
Parameters
normalThe normal of the plane
originA point on the plane
pt10A point on the plane, not identical to origin.

◆ ~Plane3CoordSystem()

virtual Plane3CoordSystem::~Plane3CoordSystem ( )
inlinevirtual

Member Function Documentation

◆ isOK()

bool Plane3CoordSystem::isOK ( ) const
Returns
false if two identical points were given in the constructor.

◆ plane()

const Plane3& Plane3CoordSystem::plane ( ) const
inline

◆ transform() [1/2]

Coord3 Plane3CoordSystem::transform ( const Coord ) const

◆ transform() [2/2]

Coord Plane3CoordSystem::transform ( const Coord3 ,
bool  project 
) const
Parameters
projectshould be true if the coord is not located on the plane. If true, the point will be projected onto the plane.

Member Data Documentation

◆ isok_

bool Plane3CoordSystem::isok_
protected

◆ origin_

const Coord3 Plane3CoordSystem::origin_
protected

◆ plane_

const Plane3 Plane3CoordSystem::plane_
protected

◆ vec01_

Coord3 Plane3CoordSystem::vec01_
protected

◆ vec10_

Coord3 Plane3CoordSystem::vec10_
protected

Generated at for the OpendTect seismic interpretation project. Copyright (C): dGB Beheer B.V. 1995-2022