class TerrainSOAR

TerrainSOAR class.

Inheritance:


Public Methods

[more] TerrainSOAR(TextureManager* tm)
Constructors / Destructors
[more] TerrainSOAR(TextureManager* tm, const char* geofilename, const char* texfilename)
[more] ~TerrainSOAR()
[more]inline void SetGEOFile(const string &g)
[more]inline void SetTEXFile(const string &t)
[more]void MakeDisplayList(void)
Specialized methods
[more]void glDrawMisc()
redefinition of base class to add OpenGL texture initialization of terrain.
[more]int ParseXMLMiscData(xmlDocPtr doc, xmlNodePtr cur)
[more]void Out()

Private Fields

[more]Terrain* terrain
[more]Material* material
[more]string GEOfile
[more]string TEXfile
[more]int texINDEX
[more]bool lighting
index of texture of texturemanager to be used
[more]bool wired
[more]int mode
[more]Vector3D scale
rendering mode 0 textured (default) 1 polygon 2 wired 3 polygon+wired
[more]unsigned minification

Private Methods

[more]void lod_update()
cull region minification
[more]void glDraw_textured()
[more]void glDraw_polygon()
[more]void glDraw_wired()
[more]void glDraw_polywired()


Inherited from Object3D:

Public Fields

odouble R[3][3]
odouble T[3]

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)
ovoid glPosAndRotateObject(void)
ovoid glDrawObject(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

TerrainSOAR class. This class is for include the SOAR++ terrain engine into OO3D. TerrainSOAR. includes a "terrain" object as member, and manages XML input from file, as in Skydome. Other GL data as color or lighting are stored in TerrainSOAR to manage OpenGL rendering. Rendering of Terrain is done trhough virtual function Object3D::glDrawMisc, redefined in TerrainSOAR.

Initially, the texture of terrain is not managed by Texturemanager.

Includes code for get information about view frustum from OpenGL needed for update LOD. (GLinfo in basic SOAR)

o TerrainSOAR(TextureManager* tm)
Constructors / Destructors

o TerrainSOAR(TextureManager* tm, const char* geofilename, const char* texfilename)

o ~TerrainSOAR()

oinline void SetGEOFile(const string &g)

oinline void SetTEXFile(const string &t)

ovoid MakeDisplayList(void)
Specialized methods

ovoid glDrawMisc()
redefinition of base class to add OpenGL texture initialization of terrain. Includes adjust of z-buffer for depth correction

oint ParseXMLMiscData(xmlDocPtr doc, xmlNodePtr cur)

ovoid Out()

oTerrain* terrain

oMaterial* material

ostring GEOfile

ostring TEXfile

oint texINDEX

obool lighting
index of texture of texturemanager to be used

obool wired

oint mode

oVector3D scale
rendering mode 0 textured (default) 1 polygon 2 wired 3 polygon+wired

ounsigned minification

ovoid lod_update()
cull region minification

ovoid glDraw_textured()

ovoid glDraw_polygon()

ovoid glDraw_wired()

ovoid glDraw_polywired()


This class has no child classes.

Alphabetic index HTML hierarchy of classes or Java



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