• Skip to content
  • Skip to link menu
KDE 4.2 API Reference
  • KDE API Reference
  • API Reference
  • Sitemap
  • Contact Us
 

KWin

Earth Class Reference

#include <earth.h>

Inheritance diagram for Earth:

Inheritance graph
[legend]

List of all members.


Detailed Description

Definition at line 33 of file earth.h.


Public Member Functions

 Earth ()
 ~Earth ()

Protected Member Functions

Mesh * createMesh (int detail)
Mesh * createStarMesh (int stars)
void initializeGL ()
virtual void mouseMoveEvent (QMouseEvent *e)
virtual void mousePressEvent (QMouseEvent *e)
void render ()

Constructor & Destructor Documentation

Earth::Earth (  ) 

Definition at line 37 of file earth.cpp.

Earth::~Earth (  ) 

Definition at line 44 of file earth.cpp.


Member Function Documentation

Mesh * Earth::createMesh ( int  detail  )  [protected]

Definition at line 108 of file earth.cpp.

Mesh * Earth::createStarMesh ( int  stars  )  [protected]

Definition at line 200 of file earth.cpp.

void Earth::initializeGL (  )  [protected, virtual]

Initializes OpenGL.

Base implementation:

  • calls KGLLib::init() to initialize KGLLib
  • creates camera and fpsCounter objects
  • sets OpenGL clear color to clearColor
  • initializes camera to look from (0, 0, 5) at (0, 0, 0) with depth range [1, 100]
  • enables depth testing (if depth buffer is used)
  • sets OpenGL shade model to GL_SMOOTH
  • sets primary color to white

Reimplemented from KGLLib::GLWidget.

Definition at line 66 of file earth.cpp.

void Earth::mouseMoveEvent ( QMouseEvent *  e  )  [protected, virtual]

Definition at line 56 of file earth.cpp.

void Earth::mousePressEvent ( QMouseEvent *  e  )  [protected, virtual]

Definition at line 51 of file earth.cpp.

void Earth::render (  )  [protected, virtual]

Called from paintGL() when the widget needs to be painted.

This is the method that you should reimplement to do your rendering. Base implementation does nothing, so you needn't call it from your implementation.

Reimplemented from KGLLib::GLWidget.

Definition at line 83 of file earth.cpp.


The documentation for this class was generated from the following files:
  • earth.h
  • earth.cpp

KWin

Skip menu "KWin"
  • Main Page
  • Namespace List
  • Class Hierarchy
  • Alphabetical List
  • Class List
  • File List
  • Namespace Members
  • Class Members
  • Related Pages

API Reference

Skip menu "API Reference"
  • KWin
Generated for API Reference by doxygen 1.5.4
This website is maintained by Adriaan de Groot and Allen Winter.
KDE® and the K Desktop Environment® logo are registered trademarks of KDE e.V. | Legal