Computer Assited Medical Intervention Tool Kit
version 4.1
|
Class that defines the direction of the Load with x, y and z. More...
#include <Direction.h>
Public Member Functions | |
Direction () | |
default constructor: nothing is specified More... | |
Direction (const unsigned int toward) | |
constructor with initialization of the toward More... | |
Direction (double x0, double y0, double z0) | |
constructor with initialization of the 3 directions More... | |
Direction (const Direction &d) | |
copy constructor More... | |
int | getToward () const |
get the toward index More... | |
bool | isToward () const |
true only if the direction is set by a toward atom More... | |
void | set (const double x, const double y, const double z) |
set the direction More... | |
void | setToward (const unsigned int toward) |
set the toward index More... | |
void | xmlPrint (std::ostream &o) const |
print to an ostream More... | |
X direction | |
double | getX () const |
get the x coordinate More... | |
bool | isXNull () const |
is the x coordinate NULL ? More... | |
bool | isXSpecified () const |
is the x coordinate specified More... | |
void | setNullX () |
set the x coordinate as NULL More... | |
void | setX (const double x) |
set the x coordinate More... | |
Y direction | |
double | getY () const |
get the y coordinate More... | |
bool | isYNull () const |
is the y coordinate NULL ? More... | |
bool | isYSpecified () const |
is the y coordinate specified More... | |
void | setNullY () |
set the y coordinate as NULL More... | |
void | setY (const double y) |
set the y coordinate More... | |
Z direction | |
double | getZ () const |
get the z coordinate More... | |
bool | isZNull () const |
is the z coordinate NULL ? More... | |
bool | isZSpecified () const |
is the z coordinate specified More... | |
void | setNullZ () |
set the z coordinate as NULL More... | |
void | setZ (const double z) |
set the z coordinate More... | |
Private Types | |
enum | DirState { NOT_SPECIFIED, NULL_DIR, SPECIFIED, TOWARD } |
state of the x,y and z More... | |
Private Attributes | |
int | towardIndex {-1} |
toward atom index More... | |
double | x {0.0} |
x coordinates More... | |
DirState | xState {NOT_SPECIFIED} |
state for the x coordinates More... | |
double | y {0.0} |
y coordinates More... | |
DirState | yState {NOT_SPECIFIED} |
state for the y coordinates More... | |
double | z {0.0} |
z coordinates More... | |
DirState | zState {NOT_SPECIFIED} |
state for the z coordinates More... | |
Class that defines the direction of the Load with x, y and z.
|
private |
state of the x,y and z
|
inline |
default constructor: nothing is specified
|
inline |
constructor with initialization of the toward
References setToward().
|
inline |
|
inline |
|
inline |
get the toward index
References towardIndex.
|
inline |
get the x coordinate
References x.
Referenced by Translation::ansysPrint(), and Load::getDirection().
|
inline |
get the y coordinate
Referenced by Translation::ansysPrint(), Load::getDirection(), and setX().
|
inline |
get the z coordinate
Referenced by Translation::ansysPrint(), Load::getDirection(), and setY().
|
inline |
true only if the direction is set by a toward atom
References TOWARD, towardIndex, xState, yState, and zState.
Referenced by xmlPrint().
|
inline |
is the x coordinate NULL ?
References NULL_DIR, and xState.
Referenced by Translation::ansysPrint().
|
inline |
|
inline |
is the y coordinate NULL ?
References NULL_DIR, and yState.
Referenced by Translation::ansysPrint().
|
inline |
|
inline |
is the z coordinate NULL ?
References NULL_DIR, and zState.
Referenced by Translation::ansysPrint().
|
inline |
|
inline |
|
inline |
set the x coordinate as NULL
References NULL_DIR, and xState.
Referenced by GenerateModel::saveMMLFiles().
|
inline |
set the y coordinate as NULL
References NULL_DIR, and yState.
Referenced by GenerateModel::saveMMLFiles().
|
inline |
set the z coordinate as NULL
References NULL_DIR, z, and zState.
Referenced by GenerateModel::saveMMLFiles().
|
inline |
set the toward index
References TOWARD, towardIndex, xState, yState, and zState.
Referenced by Direction(), and Loads::xmlRead().
|
inline |
set the x coordinate
References getY(), SPECIFIED, x, xState, and y.
Referenced by Direction(), set(), and Loads::xmlRead().
|
inline |
set the y coordinate
References getZ(), SPECIFIED, y, yState, and z.
Referenced by Direction(), set(), and Loads::xmlRead().
|
inline |
set the z coordinate
References SPECIFIED, z, and zState.
Referenced by Direction(), set(), and Loads::xmlRead().
|
inline |
print to an ostream
References isToward(), NOT_SPECIFIED, NULL_DIR, SPECIFIED, towardIndex, x, xState, y, yState, z, and zState.
Referenced by Load::xmlPrint().
|
private |
toward atom index
Referenced by Direction(), getToward(), isToward(), setToward(), and xmlPrint().
|
private |
x coordinates
Referenced by Direction(), getX(), setX(), and xmlPrint().
|
private |
state for the x coordinates
Referenced by Direction(), isToward(), isXNull(), isXSpecified(), setNullX(), setToward(), setX(), and xmlPrint().
|
private |
y coordinates
Referenced by Direction(), setX(), setY(), and xmlPrint().
|
private |
state for the y coordinates
Referenced by Direction(), isToward(), isYNull(), isYSpecified(), setNullY(), setToward(), setY(), and xmlPrint().
|
private |
z coordinates
Referenced by Direction(), set(), setNullZ(), setY(), setZ(), and xmlPrint().
|
private |
state for the z coordinates
Referenced by Direction(), isToward(), isZNull(), isZSpecified(), setNullZ(), setToward(), setZ(), and xmlPrint().