class SkyDome

Sky Dome.

Inheritance:


Public Methods

[more] SkyDome(TextureManager* tm)
Constructors / Destructors
[more] SkyDome(TextureManager* tm, double r, int n_phi, int n_theta, double theta_s, double phi_s, double turbidity )
[more] ~SkyDome()
[more]void CreateSkyMesh(void)
twice or more times, the first mesh will be modified accordingly, but no more meshes are added
[more]void Out()
[more]int ParseXMLMiscData(xmlDocPtr doc, xmlNodePtr cur)

Private Fields

[more]double R
Inputs
[more]int N_phi
radius of the Dome
[more]int N_theta
[more]double T
half number of vertex in phi and theta directions.
[more]double theta_sun
Turbidity
[more]double phi_sun
[more]double Y_zenith
Data of the model
[more]double x_zenith
[more]double y_zenith
[more]double ABCDE_Y[5]
Luminance and cromaticity coordinates: (Y,x,y)
[more]double ABCDE_x[5]
[more]double ABCDE_y[5]
[more]double PerezF_Y_zenith
Perez constants: f(T)
[more]double PerezF_x_zenith
[more]double PerezF_y_zenith
[more]double PerezF1_Y_zenith
Perez Function values in Zenith.
[more]double V
modified Perez Function values in Zenith.

Private Methods

[more]void Initialize()
[more]double PerezFunction(const double* ABCDE_i, double theta, double gamma) const
Junge's exponent
[more]double PerezFunction1(const double* ABCDE_i, double theta, double gamma) const
[more]void XYZ2RGB(double Xc, double Yc, double Zc, double* red, double* green, double* blue) const
modified Perez Function
[more]void Yxy2XYZ(double Yc, double xc, double yc, double* X, double* Y, double* Z) const
[more]void Yxy2RGB(double Yc, double xc, double yc, double* red, double* green, double* blue) const
[more]void ComputeColor(double thetav, double phiv, double* red, double* green, double* blue)
[more]inline double AngleBetween(double theta, double phi, double thetaS, double phiS) const


Inherited from Object3D:

Public Methods

oinline void setName(const string &n)
oinline string getName(void) const
oinline void SetPosition(double x, double y, double z)
oinline void SetPivot(double x, double y, double z)
oinline void SetPosition(const Vector3D &p)
oinline void SetPivot(const Vector3D &p)
oinline void SetOrientation(const Quaternion &o)
oinline void SetPositionAndOrientation(const Vector3D &p, const Quaternion &o)
ovoid GetOpenGLTransformationMatrix(double* matrix)
ovoid glDraw(void)
ovirtual void glDrawMisc(void)
ovoid glPosAndRotateObject(void)
ovoid glDrawObject(void)
ovirtual void MakeDisplayList(void)
oinline unsigned int getNumChildren(void) const
oinline void addChild(unsigned int ch)
oinline void setParent(unsigned int p)
oinline unsigned int getParent(void)
ovoid deleteChild(unsigned int ch)
ovoid Outlinks(void)
oinline unsigned int getNumMeshes(void)
oinline void addMesh(const Mesh &m)
oinline void addMesh()
oinline Object3D* getObject(unsigned int i)
oinline void addObject()
oinline void addLine3D(const Line3D &l)
oinline void addLine3D()
oinline void addCircle(const Circle &c)
oinline void addCircle()
ovoid setMotionInput(double continuous_input)
ovoid setMotionInput(int discrete_input)
ovoid PosAndOrientRAPIDmesh(void)
oint LoadXML(char* file_name)
oint ParseXML(xmlDocPtr doc, xmlNodePtr cur)

Protected Fields

ostring name
oVector3D Position
oVector3D Pivot
oQuaternion Q
ovector<Mesh> meshes
ovector<Circle> circles
ovector<Line3D> line3D
ovector<Lines3D> lines3D
ovector<Object3D*> objects
oTextureManager* texturemanager
oMotion motion
ounsigned int parent
ovector<unsigned int> children


Documentation

Sky Dome. This class computes the colors of the sky dome and creates a Mesh with them.
o SkyDome(TextureManager* tm)
Constructors / Destructors

o SkyDome(TextureManager* tm, double r, int n_phi, int n_theta, double theta_s, double phi_s, double turbidity )

o ~SkyDome()

ovoid CreateSkyMesh(void)
twice or more times, the first mesh will be modified accordingly, but no more meshes are added

ovoid Out()

oint ParseXMLMiscData(xmlDocPtr doc, xmlNodePtr cur)

odouble R
Inputs

oint N_phi
radius of the Dome

oint N_theta

odouble T
half number of vertex in phi and theta directions.

odouble theta_sun
Turbidity

odouble phi_sun

ovoid Initialize()

odouble Y_zenith
Data of the model

odouble x_zenith

odouble y_zenith

odouble ABCDE_Y[5]
Luminance and cromaticity coordinates: (Y,x,y)

odouble ABCDE_x[5]

odouble ABCDE_y[5]

odouble PerezF_Y_zenith
Perez constants: f(T)

odouble PerezF_x_zenith

odouble PerezF_y_zenith

odouble PerezF1_Y_zenith
Perez Function values in Zenith.

odouble V
modified Perez Function values in Zenith.

odouble PerezFunction(const double* ABCDE_i, double theta, double gamma) const
Junge's exponent

odouble PerezFunction1(const double* ABCDE_i, double theta, double gamma) const

ovoid XYZ2RGB(double Xc, double Yc, double Zc, double* red, double* green, double* blue) const
modified Perez Function

ovoid Yxy2XYZ(double Yc, double xc, double yc, double* X, double* Y, double* Z) const

ovoid Yxy2RGB(double Yc, double xc, double yc, double* red, double* green, double* blue) const

ovoid ComputeColor(double thetav, double phiv, double* red, double* green, double* blue)

oinline double AngleBetween(double theta, double phi, double thetaS, double phiS) const


This class has no child classes.

Alphabetic index HTML hierarchy of classes or Java



This page was generated with the help of DOC++.