1.2.3
CCC
 
SpaceTarget Class Reference

#include <SpaceTarget.hpp>

Inheritance diagram for SpaceTarget:
SpacePoint ASpaceObject AStringable

Public Member Functions

 SpaceTarget (const ASpace *space=nullptr)
 
 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
 
virtual String toString (const AStringFormat *strfmt=nullptr) const override
 Convert space point to string. More...
 
- Public Member Functions inherited from SpacePoint
 SpacePoint (const ASpace *space=nullptr)
 
 SpacePoint (const SpacePoint &r)
 
 SpacePoint (const VectorDouble &coord, const ASpace *space=nullptr)
 
SpacePointoperator= (const SpacePoint &r)
 
virtual ~SpacePoint ()
 
bool operator== (const SpacePoint &v) const
 
const VectorDoublegetCoord () const
 
VectorDoublegetCoordRef ()
 
double getCoord (int idim) const
 
void setCoord (double coord)
 
void setCoord (const VectorDouble &coord)
 
void setCoord (int i, double val)
 
const double * getCoordsP () const
 
double * getCoordsPM ()
 
virtual bool isConsistent (const ASpace *space) const override
 Return true if the point is consistent with the provided space. More...
 
void move (const VectorDouble &vec)
 Move me by the given vector. More...
 
double getDistance (const SpacePoint &pt) const
 Return the distance between me and another point. More...
 
double getDistance1D (const SpacePoint &pt, int idim=0) const
 Return the distance along one direction between me and another point. More...
 
VectorDouble getIncrement (const SpacePoint &pt) const
 Return the increment vector between me and another point. More...
 
void setFFFF ()
 Fill with TEST values to simulate a missing Space Point. More...
 
bool isFFFF () const
 Check if the SpacePoint is actually defined. More...
 
double getCosineToDirection (const SpacePoint &T2, const VectorDouble &codir) const
 Return the cosine of the angle between the bipoint and a reference direction. More...
 
double getOrthogonalDistance (const SpacePoint &P2, const VectorDouble &codir) const
 Return the orthogonal distance between a bipair and a reference direction. More...
 
void setCoordFromAngle (const VectorDouble &angles)
 Initialize coordinates from angles /// TODO : to be removed. More...
 
- Public Member Functions inherited from ASpaceObject
 ASpaceObject (const ASpace *space=nullptr)
 
 ASpaceObject (const ASpace &space)
 
 ASpaceObject (const ASpaceObject &r)
 
ASpaceObjectoperator= (const ASpaceObject &r)
 
virtual ~ASpaceObject ()
 
const ASpacegetSpace () const
 Accessor to the current object space context. More...
 
bool isConsistent () const
 Indicate if I am consistent with my current space context. More...
 
VectorDouble getUnitaryVector () const
 Return unitary vector for the current space context. More...
 
unsigned int getNDim () const
 Shortcuts to ASpace methods. More...
 
const VectorDoublegetOrigin () const
 Return the current space context origin coordinates. More...
 
double getDistance (const SpacePoint &p1, const SpacePoint &p2) const
 Return the distance between two space points for the current space context. More...
 
double getDistance1D (const SpacePoint &p1, const SpacePoint &p2, int idim) const
 Return the distance along one direction between two space points. More...
 
VectorDouble getIncrement (const SpacePoint &p1, const SpacePoint &p2) const
 Return the increment vector between two space points for the current space context. More...
 
- 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 ASpace *space=nullptr)
 

Constructor & Destructor Documentation

SpaceTarget::SpaceTarget ( const ASpace space = nullptr)
SpaceTarget::SpaceTarget ( const SpaceTarget r)
SpaceTarget::~SpaceTarget ( )
virtual

Member Function Documentation

SpaceTarget * SpaceTarget::create ( const VectorDouble center = VectorDouble(),
const VectorDouble extend = VectorDouble(),
double  code = TEST,
double  date = TEST,
const ASpace space = nullptr 
)
static
double SpaceTarget::getCode ( ) const
inline
const SpacePoint& SpaceTarget::getCoordAsSP ( ) const
inline
double SpaceTarget::getDate ( ) const
inline
const VectorDouble& SpaceTarget::getExtend ( ) const
inline
double SpaceTarget::getExtend ( int  idim) const
inline
const double* SpaceTarget::getExtendP ( ) const
inline
double* SpaceTarget::getExtendPM ( )
inline
SpaceTarget & SpaceTarget::operator= ( const SpaceTarget r)
void SpaceTarget::setCode ( double  code)
inline
void SpaceTarget::setDate ( double  date)
inline
void SpaceTarget::setExtend ( const VectorDouble extend)
inline
void SpaceTarget::setExtend ( int  i,
double  val 
)
inline
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: