gstlearn
0.3.3
CCC
|
#include <SpaceTarget.hpp>
Public Member Functions | |
SpaceTarget (const ASpace *space=nullptr) | |
SpaceTarget (const SpaceTarget &r) | |
SpaceTarget & | operator= (const SpaceTarget &r) |
virtual | ~SpaceTarget () |
const SpacePoint & | getCoordAsSP () const |
const VectorDouble & | getExtend () 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... | |
![]() | |
SpacePoint (const ASpace *space=nullptr) | |
SpacePoint (const SpacePoint &r) | |
SpacePoint (const VectorDouble &coord, const ASpace *space=nullptr) | |
SpacePoint & | operator= (const SpacePoint &r) |
virtual | ~SpacePoint () |
bool | operator== (const SpacePoint &v) const |
const VectorDouble & | getCoord () const |
VectorDouble & | getCoordRef () |
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... | |
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... | |
void | setCoordFromAngle (const VectorDouble &angles) |
Initialize coordinates from angles /// TODO : to be removed. More... | |
![]() | |
ASpaceObject (const ASpace *space=nullptr) | |
ASpaceObject (const ASpace &space) | |
ASpaceObject (const ASpaceObject &r) | |
ASpaceObject & | operator= (const ASpaceObject &r) |
virtual | ~ASpaceObject () |
const ASpace * | getSpace () 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 VectorDouble & | getOrigin () 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... | |
VectorDouble | getIncrement (const SpacePoint &p1, const SpacePoint &p2) const |
Return the increment vector between two space points for the current space context. More... | |
![]() | |
AStringable () | |
AStringable (const AStringable &r) | |
AStringable & | operator= (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 SpaceTarget * | create (const VectorDouble ¢er=VectorDouble(), const VectorDouble &extend=VectorDouble(), double code=TEST, double date=TEST, const ASpace *space=nullptr) |
Protected Attributes | |
VectorDouble | _extend |
double | _code |
double | _date |
![]() | |
VectorDouble | _coord |
Points coordinates (whatever the space context) More... | |
![]() | |
const ASpace * | _space |
Current space context of the object. More... | |
Private Member Functions | |
void | _initialize () |
Additional Inherited Members | |
![]() | |
void | setNDim (int ndim) |
Modify the Space dimension of an already created item (To be used only during creation ... in particular when reading NF) More... | |
SpaceTarget::SpaceTarget | ( | const ASpace * | space = nullptr | ) |
SpaceTarget::SpaceTarget | ( | const SpaceTarget & | r | ) |
|
virtual |
|
private |
|
static |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
SpaceTarget & SpaceTarget::operator= | ( | const SpaceTarget & | r | ) |
|
inline |
|
inline |
|
inline |
|
inline |
|
overridevirtual |
Convert space point to string.
Reimplemented from SpacePoint.
|
protected |
|
protected |
|
protected |