64 if (TYSource::operator!=(other))
107 for (
unsigned int i = 0; i < pOtherSrc->
_listSrcPonct.size(); i++)
119 return "TYSourceSurfacic";
150 bool nbSrcsOk =
false;
151 bool densiteSrcsHOk =
false;
152 bool densiteSrcsVOk =
false;
153 bool srcsCorrOk =
false;
157 QDomNodeList childs = domElement.childNodes();
159 for (i = 0; i < childs.length(); i++)
161 elemCur = childs.item(i).toElement();
179 for (i = 0; i < srcs.size(); i++)
215 TYTabLPSourcePonctuelle::iterator ite;
219 if ((*ite) == pSrcPonct)
234 TYTabLPSourcePonctuelle::iterator ite;
238 if ((*ite)->getID().toString() == idSrc)
std::vector< LPTYElement > LPTYElementArray
Representation graphique d'une surface de source (fichier header)
TY_EXT_GRAPHIC_INST(TYSourceSurfacic)
TY_EXTENSION_INST(TYSourceSurfacic)
virtual const char * getClassName() const
QString _name
Nom courant de l'element.
void setParent(TYElement *pParent)
static LPTYElementArray findTypeCollectionAndCallFromXML(DOM_Element parentElem, const char *type)
QString generateName(const char *classname)
Retourne le nom de la classe associe a un nombre.
static TYNameManager * get()
Retourne l'instance singleton.
virtual bool deepCopy(const TYElement *pOther, bool copyId=true, bool pUseCopyTag=false)
TYSourceSurfacic & operator=(const TYSourceSurfacic &other)
Operateur =.
bool operator!=(const TYSourceSurfacic &other) const
Operateur !=.
virtual ~TYSourceSurfacic()
bool operator==(const TYSourceSurfacic &other) const
Operateur ==.
TYTabLPSourcePonctuelle _listSrcPonct
Liste des sources ponctuelles.
bool remSrc(const LPTYSourcePonctuelle pSrcPonct)
virtual std::string toString() const
void setDensiteSrcs(double densite)
virtual bool deepCopy(const TYElement *pOther, bool copyId=true, bool pUseCopyTag=false)
double _densiteSrcsH
Densite horizontale des sources ponctuelles.
virtual DOM_Element toXML(DOM_Element &domElement)
double _densiteSrcsV
Densite verticale des sources ponctuelles.
double getDensiteSrcs() const
bool addSrc(LPTYSourcePonctuelle pSrcPonct)
bool _srcsCorr
Indiquateur de correlation des sources ponctuelles.
virtual int fromXML(DOM_Element domElement)
virtual int fromXML(DOM_Element domElement)
TYSource & operator=(const TYSource &other)
Operateur =.
virtual bool deepCopy(const TYElement *pOther, bool copyId=true, bool pUseCopyTag=false)
virtual DOM_Element toXML(DOM_Element &domElement)