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

kalzium

Avogadro::GLHit

Avogadro::GLHit Class Reference

#include <glwidget.h>

List of all members.


Detailed Description

Class for wrapping hits from GL picking.

Author:
Donald Ephraim Curtis <donald-curtis@uiowa.edu>
Provides an easy to use class to contain OpenGL hits returned from the process of picking. This class relies on the Engine subclasses properly naming the objects which it is rendering. For more information see the Engine documentation.

Definition at line 59 of file src/glwidget.h.


Public Member Functions

 GLHit ()
 GLHit (const GLHit &glHit)
 GLHit (GLuint type, GLuint name, GLuint minZ, GLuint maxZ)
 ~GLHit ()
bool operator< (const GLHit &other) const
bool operator== (const GLHit &other) const
GLHit & operator= (const GLHit &other)
GLuint type () const
GLuint name () const
GLuint minZ () const
GLuint maxZ () const
void setType (GLuint type)
void setName (GLuint name)
void setMinZ (GLuint minZ)
void setMaxZ (GLuint maxZ)

Constructor & Destructor Documentation

Avogadro::GLHit::GLHit (  ) 

Blank constructor.

Definition at line 58 of file glwidget.cpp.

Avogadro::GLHit::GLHit ( const GLHit &  glHit  ) 

Copy constructor.

Definition at line 60 of file glwidget.cpp.

Avogadro::GLHit::GLHit ( GLuint  type,
GLuint  name,
GLuint  minZ,
GLuint  maxZ 
)

Constructor.

Parameters:
type The type of the OpenGL object that was picked which corresponds to the Primitive::Type for the object (ie. type==PrimitiveAtomType means an Atom was picked).
name The name of the OpenGL object that was picked corresponding to the primitive index (ie. name==1 means Atom 1)

Definition at line 68 of file glwidget.cpp.

Avogadro::GLHit::~GLHit (  ) 

Deconstructor.

Definition at line 85 of file glwidget.cpp.


Member Function Documentation

bool Avogadro::GLHit::operator< ( const GLHit &  other  )  const

Less than operator.

Parameters:
other the other GLHit object to compare to
Returns:
(this->minZ < other->minZ) ? true : false

Definition at line 89 of file glwidget.cpp.

bool Avogadro::GLHit::operator== ( const GLHit &  other  )  const

Equivalence operator.

Parameters:
other the other GLHit object to test equivalence with
Returns:
returns true if all elements are equivalent (type, name, minZ, maxZ)

Definition at line 94 of file glwidget.cpp.

GLHit & Avogadro::GLHit::operator= ( const GLHit &  other  ) 

Copy operator.

Parameters:
other the GLHit object to set this object equal to
Returns:
*this

Definition at line 75 of file glwidget.cpp.

GLuint Avogadro::GLHit::type (  )  const

Returns:
type of the object which was picked

Definition at line 100 of file glwidget.cpp.

GLuint Avogadro::GLHit::name (  )  const

Returns:
name of the object that was picked

Definition at line 99 of file glwidget.cpp.

GLuint Avogadro::GLHit::minZ (  )  const

Returns:
the minimum Z value of this hit corresponding to the Z value of the drawn object closest to the camera

Definition at line 101 of file glwidget.cpp.

GLuint Avogadro::GLHit::maxZ (  )  const

Returns:
the maximum Z value of this hit corresponding to the Z value of the drawn object farthest from the camera

Definition at line 102 of file glwidget.cpp.

void Avogadro::GLHit::setType ( GLuint  type  ) 

Parameters:
type new object type

Definition at line 105 of file glwidget.cpp.

void Avogadro::GLHit::setName ( GLuint  name  ) 

Parameters:
name new object name

Definition at line 104 of file glwidget.cpp.

void Avogadro::GLHit::setMinZ ( GLuint  minZ  ) 

Parameters:
minZ minimum Z value to set for this object

Definition at line 106 of file glwidget.cpp.

void Avogadro::GLHit::setMaxZ ( GLuint  maxZ  ) 

Parameters:
maxZ maximum Z value to set for this object

Definition at line 107 of file glwidget.cpp.


The documentation for this class was generated from the following files:
  • src/glwidget.h
  • glwidget.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