|
Computer Assited Medical Intervention Tool Kit
version 5.0
|
|
Go to the documentation of this file.
49 Direction(
double x0,
double y0,
double z0) {
77 void xmlPrint(std::ostream& o)
const {
90 o <<
"x=\"" <<
x <<
"\" ";
102 o <<
"y=\"" <<
y <<
"\" ";
114 o <<
"z=\"" <<
z <<
"\"";
120 o <<
"/>" << std::endl;
124 void set(
const double x,
const double y,
const double z) {
136 void setToward(
const unsigned int toward) {
150 double getX()
const {
171 void setX(
const double x) {
179 double getY()
const {
201 void setY(
const double y) {
210 double getZ()
const {
232 void setZ(
const double z) {
@ TOWARD
the direction is set dynamically depending on the "toward" position
Definition: Direction.h:268
@ NOT_SPECIFIED
the direction has never been specified: it is absolutly free
Definition: Direction.h:265
bool isToward() const
true only if the direction is set by a toward atom
Definition: Direction.h:165
DirState xState
state for the x coordinates
Definition: Direction.h:278
void setNullY()
set the y coordinate as NULL
Definition: Direction.h:218
void setToward(const unsigned int toward)
set the toward index
Definition: Direction.h:159
bool isZSpecified() const
is the z coordinate specified
Definition: Direction.h:244
double getY() const
get the y coordinate
Definition: Direction.h:203
double z
z coordinates
Definition: Direction.h:276
int getToward() const
get the toward index
Definition: Direction.h:154
Direction & operator=(const Direction &d)
Definition: Direction.h:88
void setX(const double x)
set the x coordinate
Definition: Direction.h:194
double getZ() const
get the z coordinate
Definition: Direction.h:234
Class that defines the direction of the Load with x, y and z.
Definition: Direction.h:39
bool isZNull() const
is the z coordinate NULL ?
Definition: Direction.h:239
DirState
state of the x,y and z
Definition: Direction.h:264
double y
y coordinates
Definition: Direction.h:274
bool isXSpecified() const
is the x coordinate specified
Definition: Direction.h:183
void xmlPrint(std::ostream &o) const
print to an ostream
Definition: Direction.h:100
int towardIndex
toward atom index
Definition: Direction.h:284
@ SPECIFIED
the direction has been specified to be something imposed but not null (even 0.0 is possible!...
Definition: Direction.h:267
@ NULL_DIR
the direction has been specified to be always null
Definition: Direction.h:266
void set(const double x, const double y, const double z)
set the direction
Definition: Direction.h:147
DirState yState
state for the y coordinates
Definition: Direction.h:280
Direction()
default constructor: nothing is specified
Definition: Direction.h:66
bool isXNull() const
is the x coordinate NULL ?
Definition: Direction.h:178
void setNullZ()
set the z coordinate as NULL
Definition: Direction.h:249
double x
x coordinates
Definition: Direction.h:272
bool isYSpecified() const
is the y coordinate specified
Definition: Direction.h:213
bool isYNull() const
is the y coordinate NULL ?
Definition: Direction.h:208
void setZ(const double z)
set the z coordinate
Definition: Direction.h:255
double getX() const
get the x coordinate
Definition: Direction.h:173
void setY(const double y)
set the y coordinate
Definition: Direction.h:224
void setNullX()
set the x coordinate as NULL
Definition: Direction.h:188
DirState zState
state for the z coordinates
Definition: Direction.h:282