#include <CogMapObjects.h>
Public Member Functions | |
CMPoint () | |
~CMPoint () | |
CMPoint (const JString &xml) | |
CMPoint (XMLNode *node) | |
JString | toXML () |
bool | fromXML (XMLNode *node) |
JString | print () const |
JString | toHTML () |
Object * | clone () const |
bool | reset () |
double | operator[] (int n) const |
double | get (int n) const |
double | getUncertainty (int n) const |
bool | set (int n, double value) |
bool | set (int n, double value, double uncertainty) |
bool | equals (const Object *o) const |
bool | equals (const CMPoint &p) const |
bool | equals (const CMPoint *p) const |
bool | hasChangedSince (const CMPoint &p) |
bool | hasChangedSince (const CMPoint *p) |
bool | addDifference (const CMPoint &p) |
bool | addDifference (const CMPoint *p) |
Public Attributes | |
double | x |
double | y |
double | z |
double | w |
double | xUncertainty |
double | yUncertainty |
double | zUncertainty |
double | wUncertainty |
JString | units |
JString | coordinateSystem |
Definition at line 578 of file CogMapObjects.h.
cmlabs::CMPoint::CMPoint | ( | ) |
cmlabs::CMPoint::~CMPoint | ( | ) |
public virtual destructor ~CMPoint The ~CMPoint method destroys a CMPoint
delete(obj);
This function doesn't return a value
Definition at line 311 of file CogMapObjects.cpp.
cmlabs::CMPoint::CMPoint | ( | const JString & | xml | ) |
cmlabs::CMPoint::CMPoint | ( | XMLNode * | node | ) |
JString cmlabs::CMPoint::toXML | ( | ) | [virtual] |
public virtual toXML The toXML method generates the XML representing the object
val = obj->toXML();
Reimplemented from cmlabs::Object.
Definition at line 434 of file CogMapObjects.cpp.
bool cmlabs::CMPoint::fromXML | ( | XMLNode * | node | ) | [virtual] |
public virtual fromXML The fromXML method instantiates the CMPoint object from XML
val = obj->fromXML(xmlnode);
Reimplemented from cmlabs::Object.
Definition at line 404 of file CogMapObjects.cpp.
JString cmlabs::CMPoint::print | ( | ) | const |
public constant print The print method creates a string representation of the object
val = obj->print();
Definition at line 466 of file CogMapObjects.cpp.
JString cmlabs::CMPoint::toHTML | ( | ) | [virtual] |
public virtual toHTML The toHTML method creates HTML which represents the object
val = obj->toHTML();
Reimplemented from cmlabs::Object.
Definition at line 470 of file CogMapObjects.cpp.
Object * cmlabs::CMPoint::clone | ( | ) | const [virtual] |
public virtual constant clone The clone method creates an identical object by cloning
val = (CMPoint*) obj->clone();
Implements cmlabs::Object.
Definition at line 328 of file CogMapObjects.cpp.
bool cmlabs::CMPoint::reset | ( | ) |
public reset The reset method resets the CMPoint to its default value content
val = obj->reset();
Definition at line 334 of file CogMapObjects.cpp.
double cmlabs::CMPoint::operator[] | ( | int | n | ) | const |
public constant operator [] The operator [] method retrieves the Nth element value
val = obj->operator[n];
[in] | n | type int element position |
Definition at line 476 of file CogMapObjects.cpp.
double cmlabs::CMPoint::get | ( | int | n | ) | const |
public constant get The get method retrieves the Nth element value
val = obj->get(n);
[in] | n | type int element position |
Definition at line 480 of file CogMapObjects.cpp.
double cmlabs::CMPoint::getUncertainty | ( | int | n | ) | const |
public constant getUncertainty The getUncertainty method retrieves the uncertainty for the Nth element value
val = obj->getUncertainty(n);
[in] | n | type int element position |
Definition at line 496 of file CogMapObjects.cpp.
bool cmlabs::CMPoint::set | ( | int | n, | |
double | value | |||
) |
public overloaded set The set method sets the Nth element value
val = obj->set(n, value);
[in] | n | type int element position |
[in] | value | type double value to set |
Definition at line 513 of file CogMapObjects.cpp.
bool cmlabs::CMPoint::set | ( | int | n, | |
double | value, | |||
double | uncertainty | |||
) |
public overloaded set The set method sets the Nth element value and uncertainty
val = obj->set(n, value, uncert);
[in] | n | type int element position |
[in] | value | type double value to set |
[in] | uncertainty | type double uncertainty to set |
Definition at line 529 of file CogMapObjects.cpp.
bool cmlabs::CMPoint::equals | ( | const Object * | o | ) | const [virtual] |
public virtual overloaded constant equals The equals method tests if two objects are equal
val = obj->equals(obj);
[in] | o | type const Object * object to test |
Reimplemented from cmlabs::Object.
Definition at line 340 of file CogMapObjects.cpp.
bool cmlabs::CMPoint::equals | ( | const CMPoint & | p | ) | const |
public overloaded constant equals The equals method tests if two objects are equal
val = obj->equals(point);
[in] | p | type const CMPoint & point to test |
Definition at line 347 of file CogMapObjects.cpp.
bool cmlabs::CMPoint::equals | ( | const CMPoint * | p | ) | const |
public overloaded constant equals The equals method tests if two objects are equal
val = obj->equals(point);
[in] | p | type const CMPoint * point to test |
Definition at line 351 of file CogMapObjects.cpp.
bool cmlabs::CMPoint::hasChangedSince | ( | const CMPoint & | p | ) |
public overloaded hasChangedSince The hasChangedSince method tests if a point has changed
val = obj->hasChangedSince(point);
[in] | p | type const CMPoint & point to test |
Definition at line 360 of file CogMapObjects.cpp.
bool cmlabs::CMPoint::hasChangedSince | ( | const CMPoint * | p | ) |
public overloaded hasChangedSince The hasChangedSince method tests if a point has changed
val = obj->hasChangedSince(point);
[in] | p | type const CMPoint * point to test |
Definition at line 364 of file CogMapObjects.cpp.
bool cmlabs::CMPoint::addDifference | ( | const CMPoint & | p | ) |
public overloaded addDifference The addDifference method updates a point with a point update
val = obj->addDifference(update);
[in] | p | type const CMPoint & point update |
Definition at line 545 of file CogMapObjects.cpp.
bool cmlabs::CMPoint::addDifference | ( | const CMPoint * | p | ) |
public overloaded addDifference The addDifference method updates a point with a point update
val = obj->addDifference(point);
[in] | p | type const CMPoint * point update |
Definition at line 549 of file CogMapObjects.cpp.
double cmlabs::CMPoint::x |
Definition at line 1032 of file CogMapObjects.h.
double cmlabs::CMPoint::y |
Definition at line 1032 of file CogMapObjects.h.
double cmlabs::CMPoint::z |
Definition at line 1032 of file CogMapObjects.h.
double cmlabs::CMPoint::w |
Definition at line 1032 of file CogMapObjects.h.
Definition at line 1033 of file CogMapObjects.h.
Definition at line 1033 of file CogMapObjects.h.
Definition at line 1033 of file CogMapObjects.h.
Definition at line 1033 of file CogMapObjects.h.
JString units The units variable units in clear text
Definition at line 1043 of file CogMapObjects.h.
JString coordinateSystem The coordinateSystem variable name of the coordinate system
Definition at line 1053 of file CogMapObjects.h.