Loading [MathJax]/extensions/tex2jax.js
1.7.3
Geostatistics & Machine Learning toolbox | https://gstlearn.org
 
All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Modules Pages
SpaceTarget Class Reference

#include <SpaceTarget.hpp>

Inheritance diagram for SpaceTarget:
SpacePoint ASpaceObject AStringable

Public Member Functions

 SpaceTarget (const ASpaceSharedPtr &space=ASpaceSharedPtr(), bool checkExtend=true, bool checkCode=true, bool checkDate=true)
 
 SpaceTarget (const SpaceTarget &r)
 
SpaceTargetoperator= (const SpaceTarget &r)
 
virtual ~SpaceTarget ()
 
const SpacePointgetCoordAsSP () const
 
const VectorDoublegetExtend () const
 
double getExtend (int idim) const
 
void setExtend (const VectorDouble &extend)
 
void setExtend (int i, double val)
 
const double * getExtendP () const
 
double * getExtendPM ()
 
void setCode (double code)
 
void setDate (double date)
 
double getCode () const
 
double getDate () const
 
bool checkExtend () const
 
bool checkCode () const
 
bool checkDate () const
 
virtual String toString (const AStringFormat *strfmt=nullptr) const override
 Convert space point to string.
 
- Public Member Functions inherited from SpacePoint
 SpacePoint (const ASpaceSharedPtr &space=ASpaceSharedPtr())
 
 SpacePoint (const SpacePoint &r)
 
 SpacePoint (const VectorDouble &coord, int iech=-1, const ASpaceSharedPtr &space=ASpaceSharedPtr())
 
SpacePointoperator= (const SpacePoint &r)
 
virtual ~SpacePoint ()
 
SpacePoint spacePointOnSubspace (int ispace=-1) const
 
bool operator== (const SpacePoint &v) const
 TODO : should also test the space definition.
 
constvect getCoords () const
 
vect getCoordRef ()
 
VectorDoublegetCoordUnprotected ()
 
double getCoord (int idim) const
 
void setCoord (double coord)
 
void setCoord (int i, double val)
 
void setCoords (const VectorDouble &coord)
 
void setCoords (const double *coord, int size)
 
void setIech (int iech) const
 
void setProjected (bool status)
 
int getIech () const
 
bool isProjected () const
 
virtual bool isConsistent (const ASpace *space) const override
 Return true if the point is consistent with the provided space.
 
void move (const VectorDouble &vec)
 Move me by the given vector.
 
double getDistance (const SpacePoint &pt, int ispace=-1) const
 Return the distance between 'this' and another point.
 
VectorDouble getDistances (const SpacePoint &pt) const
 Return all the distance (space composits) between 'this' and another point.
 
VectorDouble getIncrement (const SpacePoint &pt, int ispace=-1) const
 Return the increment vector between 'this' and another point.
 
void setFFFF ()
 Fill with TEST values to simulate a missing Space Point.
 
bool isFFFF () const
 Check if the SpacePoint is actually defined.
 
double getCosineToDirection (const SpacePoint &T2, const VectorDouble &codir) const
 Return the cosine of the angle between the bipoint and a reference direction.
 
double getOrthogonalDistance (const SpacePoint &P2, const VectorDouble &codir) const
 Return the orthogonal distance between a bipair and a reference direction.
 
void setCoordFromAngle (const VectorDouble &angles)
 Initialize coordinates from angles /// TODO : to be removed.
 
- Public Member Functions inherited from ASpaceObject
 ASpaceObject (const ASpaceSharedPtr &space=ASpaceSharedPtr())
 
 ASpaceObject (const ASpaceObject &r)
 
ASpaceObjectoperator= (const ASpaceObject &r)
 
virtual ~ASpaceObject ()
 
ASpaceSharedPtr getSpace () const
 Accessor to the current object space context.
 
bool isConsistent () const
 Indicate if I am consistent with my current space context.
 
VectorDouble getUnitaryVector () const
 Return unitary vector for the current space context.
 
bool isConsistent (const ASpaceSharedPtr &space) const
 Indicate if I am consistent with the provided space.
 
unsigned int getNDim (int ispace=-1) const
 Shortcuts to ASpace methods.
 
const VectorDoublegetOrigin (int ispace=-1) const
 Return the current space context origin coordinates.
 
double getDistance (const SpacePoint &p1, const SpacePoint &p2, int ispace=0) const
 Return the distance between two space points for the current space context.
 
VectorDouble getDistances (const SpacePoint &p1, const SpacePoint &p2) const
 Return all the distances (space composits) between two space points for the current space context.
 
VectorDouble getIncrement (const SpacePoint &p1, const SpacePoint &p2, int ispace=0) const
 Return the increment vector between two space points for the current space context.
 
- Public Member Functions inherited from AStringable
 AStringable ()
 
 AStringable (const AStringable &r)
 
AStringableoperator= (const AStringable &r)
 
virtual ~AStringable ()
 
virtual void display (const AStringFormat *strfmt=nullptr) const final
 
virtual void display (int level) const final
 

Static Public Member Functions

static SpaceTargetcreate (const VectorDouble &center=VectorDouble(), const VectorDouble &extend=VectorDouble(), double code=TEST, double date=TEST, const ASpaceSharedPtr &space=ASpaceSharedPtr())
 

Constructor & Destructor Documentation

◆ SpaceTarget() [1/2]

SpaceTarget::SpaceTarget ( const ASpaceSharedPtr space = ASpaceSharedPtr(),
bool  checkExtend = true,
bool  checkCode = true,
bool  checkDate = true 
)

◆ SpaceTarget() [2/2]

SpaceTarget::SpaceTarget ( const SpaceTarget r)

◆ ~SpaceTarget()

SpaceTarget::~SpaceTarget ( )
virtual

Member Function Documentation

◆ checkCode()

bool SpaceTarget::checkCode ( ) const
inline

◆ checkDate()

bool SpaceTarget::checkDate ( ) const
inline

◆ checkExtend()

bool SpaceTarget::checkExtend ( ) const
inline

◆ create()

SpaceTarget * SpaceTarget::create ( const VectorDouble center = VectorDouble(),
const VectorDouble extend = VectorDouble(),
double  code = TEST,
double  date = TEST,
const ASpaceSharedPtr space = ASpaceSharedPtr() 
)
static

◆ getCode()

double SpaceTarget::getCode ( ) const
inline

◆ getCoordAsSP()

const SpacePoint & SpaceTarget::getCoordAsSP ( ) const
inline

◆ getDate()

double SpaceTarget::getDate ( ) const
inline

◆ getExtend() [1/2]

const VectorDouble & SpaceTarget::getExtend ( ) const
inline

◆ getExtend() [2/2]

double SpaceTarget::getExtend ( int  idim) const
inline

◆ getExtendP()

const double * SpaceTarget::getExtendP ( ) const
inline

◆ getExtendPM()

double * SpaceTarget::getExtendPM ( )
inline

◆ operator=()

SpaceTarget & SpaceTarget::operator= ( const SpaceTarget r)

◆ setCode()

void SpaceTarget::setCode ( double  code)
inline

◆ setDate()

void SpaceTarget::setDate ( double  date)
inline

◆ setExtend() [1/2]

void SpaceTarget::setExtend ( const VectorDouble extend)
inline

◆ setExtend() [2/2]

void SpaceTarget::setExtend ( int  i,
double  val 
)
inline

◆ toString()

String SpaceTarget::toString ( const AStringFormat strfmt = nullptr) const
overridevirtual

Convert space point to string.

Reimplemented from SpacePoint.


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