31 #include "libxml/xmlIO.h"
65 o <<
"x=\"" <<
x <<
"\" ";
77 o <<
"y=\"" <<
y <<
"\" ";
89 o <<
"z=\"" <<
z <<
"\"";
95 o <<
"/>" << std::endl;
99 void set(
const double x,
const double y,
const double z) {
140 double getY()
const {
return y; };
159 double getZ()
const {
return z; };
Direction(const Direction &d)
copy constructor
Definition: Direction.h:49
bool isYNull() const
is the y coordinate NULL ?
Definition: Direction.h:144
bool isZSpecified() const
is the z coordinate specified
Definition: Direction.h:166
the direction is set dynamically depending on the "toward" position
Definition: Direction.h:182
void xmlPrint(std::ostream &o) const
print to an ostream
Definition: Direction.h:52
DirState yState
state for the y coordinates
Definition: Direction.h:194
double getY() const
get the y coordinate
Definition: Direction.h:141
void setX(const double x)
set the x coordinate
Definition: Direction.h:135
int towardIndex
toward atom index
Definition: Direction.h:198
void setNullZ()
set the z coordinate as NULL
Definition: Direction.h:169
double getZ() const
get the z coordinate
Definition: Direction.h:160
double y
y coordinates
Definition: Direction.h:188
void set(const double x, const double y, const double z)
set the direction
Definition: Direction.h:99
void setNullX()
set the x coordinate as NULL
Definition: Direction.h:132
bool isToward() const
true only if the direction is set by a toward atom
Definition: Direction.h:115
double z
z coordinates
Definition: Direction.h:190
Direction()
default constructor: nothing is specified
Definition: Direction.h:43
Direction(double x0, double y0, double z0)
constructor with initialization of the 3 directions
Definition: Direction.h:47
int getToward() const
get the toward index
Definition: Direction.h:104
Class that defines the direction of the Load with x, y and z.
Definition: Direction.h:39
bool isXSpecified() const
is the x coordinate specified
Definition: Direction.h:129
the direction has been specified to be always null
Definition: Direction.h:180
void setToward(const unsigned int toward)
set the toward index
Definition: Direction.h:109
Direction(const unsigned int toward)
constructor with initialization of the toward
Definition: Direction.h:45
void setY(const double y)
set the y coordinate
Definition: Direction.h:153
the direction has never been specified: it is absolutly free
Definition: Direction.h:179
double x
x coordinates
Definition: Direction.h:186
bool isYSpecified() const
is the y coordinate specified
Definition: Direction.h:147
the direction has been specified to be something imposed but not null (even 0.0 is possible!) ...
Definition: Direction.h:181
bool isZNull() const
is the z coordinate NULL ?
Definition: Direction.h:163
void setZ(const double z)
set the z coordinate
Definition: Direction.h:172
void setNullY()
set the y coordinate as NULL
Definition: Direction.h:150
DirState xState
state for the x coordinates
Definition: Direction.h:192
double getX() const
get the x coordinate
Definition: Direction.h:123
DirState
state of the x,y and z
Definition: Direction.h:178
DirState zState
state for the z coordinates
Definition: Direction.h:196
bool isXNull() const
is the x coordinate NULL ?
Definition: Direction.h:126