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

kalzium

Avogadro::Sphere

Avogadro::Sphere Class Reference

#include <sphere.h>

List of all members.


Detailed Description

Definition at line 49 of file sphere.h.


Public Member Functions

 Sphere (int detail=0)
 ~Sphere ()
void setup (int detail)
void draw (const Eigen::Vector3d &center, double radius) const

Protected Member Functions

unsigned short indexOfVertex (int strip, int column, int row)
void computeVertex (int strip, int column, int row)
void freeBuffers ()
void initialize ()

Constructor & Destructor Documentation

Avogadro::Sphere::Sphere ( int  detail = 0  ) 

Definition at line 54 of file sphere.cpp.

Avogadro::Sphere::~Sphere (  ) 

Definition at line 59 of file sphere.cpp.


Member Function Documentation

unsigned short Avogadro::Sphere::indexOfVertex ( int  strip,
int  column,
int  row 
) [inline, protected]

computes the index (position inside the index buffer) of a vertex given by its position (strip, column, row) inside a certain flat model of the sub-tesselated icosahedron

Definition at line 204 of file sphere.cpp.

void Avogadro::Sphere::computeVertex ( int  strip,
int  column,
int  row 
) [protected]

computes the coordinates of a vertex given by its position (strip, column, row) inside a certain flat model of the sub-tesselated icosahedron

Definition at line 209 of file sphere.cpp.

void Avogadro::Sphere::freeBuffers (  )  [protected]

Definition at line 67 of file sphere.cpp.

void Avogadro::Sphere::initialize (  )  [protected]

Definition at line 90 of file sphere.cpp.

void Avogadro::Sphere::setup ( int  detail  ) 

initializes the sphere with given level of detail.

If the sphere was already initialized, any pre-allocated buffers are freed and then re-allocated.

Parameters:
detail the wanted level of detail. See m_detail member

Definition at line 302 of file sphere.cpp.

void Avogadro::Sphere::draw ( const Eigen::Vector3d &  center,
double  radius 
) const

draws the sphere at specified position and with specified radius

Definition at line 81 of file sphere.cpp.


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

kalzium

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

kdeedu

Skip menu "kdeedu"
  • kalzium
  • kanagram
  • kig
  • klettres
  • kstars
  • libkdeedu
  •   keduvocdocument
  •   docs
  •   src
  • parley
Generated for kdeedu 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