38 : _type(TypeSurface), _typeRaynt(
SPHERIC), _object(0), _hauteur(0.0), Directivity(NULL)
42 float r = 255.0f, g = 0.0f, b = 0.0f;
97 if (TYSource::operator!=(other))
101 if (TYColorInterface::operator!=(other))
160 return "TYSourcePonctuelle";
172 DOM_Element vectorXElem = domDoc.createElement(
"Vector");
173 domNewElem.appendChild(vectorXElem);
198 bool hauteurOk =
false;
199 bool typeRayntOk =
false;
200 bool formeObjetOk =
false;
203 QDomNodeList childs = domElement.childNodes();
205 for (
unsigned int i = 0; i < childs.length(); i++)
207 elemCur = childs.item(i).toElement();
210 if (elemCur.nodeName() ==
"Vector")
All base classes related to 3D manipulation.
QDomDocument DOM_Document
#define TYDIRPREFERENCEMANAGER
Representation graphique d'une source ponctuelle (fichier header)
TY_EXTENSION_INST(TYSourcePonctuelle)
TY_EXT_GRAPHIC_INST(TYSourcePonctuelle)
double _y
y coordinate of OCoord3D
double _z
z coordinate of OCoord3D
double _x
x coordinate of OCoord3D
virtual const char * getClassName() const
int fromXML(DOM_Element domElement)
TYColorInterface & operator=(const TYColorInterface &other)
virtual void setColor(const OColor &color)
void deepCopy(const TYColorInterface *pOther, bool copyId=true, bool pUseCopyTag=false)
DOM_Element toXML(DOM_Element &domElement)
QString _name
Nom courant de l'element.
bool callFromXMLIfEqual(DOM_Element &domElement, int *pRetVal=NULL)
QString generateName(const char *classname)
Retourne le nom de la classe associe a un nombre.
static TYNameManager * get()
Retourne l'instance singleton.
virtual DOM_Element toXML(DOM_Element &domElement)
virtual bool deepCopy(const TYElement *pOther, bool copyId=true, bool pUseCopyTag=false)
int _type
Type de cette source.
virtual int fromXML(DOM_Element domElement)
virtual ~TYSourcePonctuelle()
bool operator!=(const TYSourcePonctuelle &other) const
Operateur !=.
double _hauteur
La hauteur de la source par rapport a l'altitude (dans le cas de source utilisateur).
int _typeRaynt
Type de rayonnement.
OVector3D _orientation
Orientation.
virtual DOM_Element toXML(DOM_Element &domElement)
TYSourcePonctuelle & operator=(const TYSourcePonctuelle &other)
Operateur =.
TYDirectivity * Directivity
int _object
Object representant la source.
bool operator==(const TYSourcePonctuelle &other) const
Operateur ==.
virtual std::string toString() const
virtual bool deepCopy(const TYElement *pOther, bool copyId=true, bool pUseCopyTag=false)
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)
std::string doubleToStrPre(double val, int precision=2)