Class that defines the direction of the Load with x, y and z.
More...
#include <Direction.h>
Class that defines the direction of the Load with x, y and z.
◆ DirState
state of the x,y and z
Enumerator |
---|
NOT_SPECIFIED | the direction has never been specified: it is absolutly free
|
NULL_DIR | the direction has been specified to be always null
|
SPECIFIED | the direction has been specified to be something imposed but not null (even 0.0 is possible!)
|
TOWARD | the direction is set dynamically depending on the "toward" position
|
◆ Direction() [1/4]
default constructor: nothing is specified
◆ Direction() [2/4]
Direction::Direction |
( |
const unsigned int |
toward | ) |
|
|
inline |
constructor with initialization of the toward
◆ Direction() [3/4]
Direction::Direction |
( |
double |
x0, |
|
|
double |
y0, |
|
|
double |
z0 |
|
) |
| |
|
inline |
constructor with initialization of the 3 directions
◆ Direction() [4/4]
◆ getToward()
int Direction::getToward |
( |
| ) |
const |
|
inline |
◆ getX()
double Direction::getX |
( |
| ) |
const |
|
inline |
◆ getY()
double Direction::getY |
( |
| ) |
const |
|
inline |
◆ getZ()
double Direction::getZ |
( |
| ) |
const |
|
inline |
◆ isToward()
bool Direction::isToward |
( |
| ) |
const |
|
inline |
true only if the direction is set by a toward atom
References NULL_DIR, x, and xState.
◆ isXNull()
bool Direction::isXNull |
( |
| ) |
const |
|
inline |
◆ isXSpecified()
bool Direction::isXSpecified |
( |
| ) |
const |
|
inline |
◆ isYNull()
bool Direction::isYNull |
( |
| ) |
const |
|
inline |
◆ isYSpecified()
bool Direction::isYSpecified |
( |
| ) |
const |
|
inline |
is the y coordinate specified
◆ isZNull()
bool Direction::isZNull |
( |
| ) |
const |
|
inline |
◆ isZSpecified()
bool Direction::isZSpecified |
( |
| ) |
const |
|
inline |
is the z coordinate specified
◆ operator=()
◆ set()
void Direction::set |
( |
const double |
x, |
|
|
const double |
y, |
|
|
const double |
z |
|
) |
| |
|
inline |
◆ setNullX()
void Direction::setNullX |
( |
| ) |
|
|
inline |
◆ setNullY()
void Direction::setNullY |
( |
| ) |
|
|
inline |
◆ setNullZ()
void Direction::setNullZ |
( |
| ) |
|
|
inline |
◆ setToward()
void Direction::setToward |
( |
const unsigned int |
toward | ) |
|
|
inline |
◆ setX()
void Direction::setX |
( |
const double |
x | ) |
|
|
inline |
◆ setY()
void Direction::setY |
( |
const double |
y | ) |
|
|
inline |
◆ setZ()
void Direction::setZ |
( |
const double |
z | ) |
|
|
inline |
◆ xmlPrint()
void Direction::xmlPrint |
( |
std::ostream & |
o | ) |
const |
|
inline |
◆ towardIndex
int Direction::towardIndex {-1} |
|
private |
double Direction::x {0.0} |
|
private |
◆ xState
state for the x coordinates
Referenced by isToward().
double Direction::y {0.0} |
|
private |
◆ yState
double Direction::z {0.0} |
|
private |
z coordinates
Referenced by setY().
◆ zState
state for the z coordinates
Referenced by setY().
The documentation for this class was generated from the following file: