 |
Computer Assited Medical Intervention Tool Kit
version 4.1
|
Go to the documentation of this file.
49 Direction(
double x0,
double y0,
double z0) {
79 o <<
"x=\"" <<
x <<
"\" ";
91 o <<
"y=\"" <<
y <<
"\" ";
103 o <<
"z=\"" <<
z <<
"\"";
109 o <<
"/>" << std::endl;
113 void set(
const double x,
const double y,
const double z) {
125 void setToward(
const unsigned int toward) {
139 double getX()
const {
160 void setX(
const double x) {
168 double getY()
const {
190 void setY(
const double y) {
199 double getZ()
const {
221 void setZ(
const double z) {
@ TOWARD
the direction is set dynamically depending on the "toward" position
Definition: Direction.h:257
@ NOT_SPECIFIED
the direction has never been specified: it is absolutly free
Definition: Direction.h:254
bool isToward() const
true only if the direction is set by a toward atom
Definition: Direction.h:154
DirState xState
state for the x coordinates
Definition: Direction.h:267
void setNullY()
set the y coordinate as NULL
Definition: Direction.h:207
void setToward(const unsigned int toward)
set the toward index
Definition: Direction.h:148
bool isZSpecified() const
is the z coordinate specified
Definition: Direction.h:233
double getY() const
get the y coordinate
Definition: Direction.h:192
double z
z coordinates
Definition: Direction.h:265
int getToward() const
get the toward index
Definition: Direction.h:143
void setX(const double x)
set the x coordinate
Definition: Direction.h:183
double getZ() const
get the z coordinate
Definition: Direction.h:223
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:228
DirState
state of the x,y and z
Definition: Direction.h:253
double y
y coordinates
Definition: Direction.h:263
bool isXSpecified() const
is the x coordinate specified
Definition: Direction.h:172
void xmlPrint(std::ostream &o) const
print to an ostream
Definition: Direction.h:89
int towardIndex
toward atom index
Definition: Direction.h:273
@ SPECIFIED
the direction has been specified to be something imposed but not null (even 0.0 is possible!...
Definition: Direction.h:256
@ NULL_DIR
the direction has been specified to be always null
Definition: Direction.h:255
void set(const double x, const double y, const double z)
set the direction
Definition: Direction.h:136
DirState yState
state for the y coordinates
Definition: Direction.h:269
Direction()
default constructor: nothing is specified
Definition: Direction.h:66
bool isXNull() const
is the x coordinate NULL ?
Definition: Direction.h:167
void setNullZ()
set the z coordinate as NULL
Definition: Direction.h:238
double x
x coordinates
Definition: Direction.h:261
bool isYSpecified() const
is the y coordinate specified
Definition: Direction.h:202
bool isYNull() const
is the y coordinate NULL ?
Definition: Direction.h:197
void setZ(const double z)
set the z coordinate
Definition: Direction.h:244
double getX() const
get the x coordinate
Definition: Direction.h:162
void setY(const double y)
set the y coordinate
Definition: Direction.h:213
void setNullX()
set the x coordinate as NULL
Definition: Direction.h:177
DirState zState
state for the z coordinates
Definition: Direction.h:271