31 double *mTriggerCoord;
32 tFlag *mTriggerCoordAction;
70 inline void setCoordinates(
const double& x,
const double& y,
const double& z) {
107 for (
int k=0;k<3;k++) coord[k]=mCoord[k];
125 return mTriggerCoord;
144 for (
int k=0;k<3;k++) mTriggerCoordAction[k]=UNSET;
151 if (mTriggerCoord!=
null) {
152 for (
int k=0;k<3;k++) {
153 if (mTriggerCoordAction[k]!=UNSET) {
155 mTriggerCoordAction[k]=UNSET;
virtual void copy(const GPM_GraphElement &node)
copy
Definition: GPM_Vertex.cpp:96
static double R
Definition: GPM_Vertex.h:24
virtual tBoolean setTriggerCoordinates(const tFlag &action, const double *value)
set trigger coordinate action
double getCoordinate(const tFlag &k) const
get k-coordinate
Definition: GPM_Vertex.h:113
virtual tBoolean canMerge(const GPM_Vertex &elt) const
return true if the graph element can be merge with elt
Definition: GPM_Vertex.cpp:192
void setCoordinates(const double &x, const double &y, const double &z)
set coordinate
Definition: GPM_Vertex.h:70
virtual void executeTriggerActions()
execute trigger actions
Definition: GPM_Vertex.h:149
virtual tBoolean loadFromStream(tString &tokenizer)
Definition: GPM_Vertex.cpp:109
void setCoordinate(const tFlag &k, const double &x)
set coordinate
Definition: GPM_Vertex.h:89
const double * getTriggerCoordinates() const
get trigger coordinate
Definition: GPM_Vertex.h:124
virtual tString toString() const
to string
Definition: GPM_Vertex.cpp:248
#define tBoolean
Definition: types.h:35
static const tFlag X
Definition: GPM_Vertex.h:21
#define null
Definition: types.h:13
This class describes a node.
Definition: GPM_Vertex.h:16
virtual ~GPM_Vertex(void)
destroy an object.
Definition: GPM_Vertex.cpp:26
void getCoordinates(double coord[3]) const
get coordinates
Definition: GPM_Vertex.h:106
GPM_Vertex(void)
create an object
Definition: GPM_Vertex.cpp:10
static const tFlag Z
Definition: GPM_Vertex.h:23
const double * getCoordinates() const
get coordinates
Definition: GPM_Vertex.h:95
static const tFlag Y
Definition: GPM_Vertex.h:22
virtual void clearActions()
clear actions
Definition: GPM_Vertex.h:142
virtual void executeTriggerActions()
execute trigger actions
Definition: GPM_GraphElement.cpp:441
void setCoordinates(const tReal *X)
set coordinates
Definition: GPM_Vertex.h:77
tString getGroupCoordinatesName() const
update the group name using coordinate
Definition: GPM_Vertex.h:166
virtual void clearActions()
clear actions
Definition: GPM_GraphElement.cpp:431
#define tString
Definition: types.h:36
tBoolean setTriggerCoordinates(const tFlag &action, const double &x, const double &y, const double &z)
set trigger coordinates action
Definition: GPM_Vertex.h:129
virtual void saveToStream(ofstream &f) const
Definition: GPM_Vertex.cpp:105
void setCoordinates(const double *X)
set coordinates
Definition: GPM_Vertex.h:82
#define tReal
Definition: types.h:18
double * getCoordinates()
get coordinates
Definition: GPM_Vertex.h:100
virtual tBoolean setTriggerCoordinate(const tFlag &action, const int &k, const double &v)
set trigger coordinates action
Definition: GPM_Vertex.cpp:63
This class describes an element of a graph.
Definition: GPM_GraphElement.h:17
#define tFlag
Definition: types.h:14