![]()  | 
  
    Langmuir
    
   Simulation 
   | 
 
A class to represent a textured box. More...
#include <box.h>
Public Types | |
| enum | Face {  None = 1, North = 2, South = 4, East = 8, West = 16, Front = 32, Back = 64, All = North | South | East | West | Front | Back }  | 
| the faces to show texture on  More... | |
Public Slots | |
| virtual void | makeConnections () | 
| make signal/slot connections  More... | |
| void | setColor (QColor color) | 
| set the color  More... | |
| void | setSize (double xvalue, double yvalue, double zvalue, unsigned int tesselate_x=10, unsigned int tesselate_y=10, unsigned int tesselate_z=10) | 
| set the box size  More... | |
| void | setFaces (Faces faces) | 
| set the list of faces to show texture on  More... | |
| void | showImage (bool on=true) | 
| show the texture  More... | |
| void | toggleImage () | 
| toggle if texture is shown  More... | |
| void | setTexture (GLuint imageID) | 
| set texture  More... | |
  Public Slots inherited from LangmuirView::SceneObject | |
| void | toggleVisible () | 
| toggle visibility  More... | |
| void | setVisible (bool draw=true) | 
| set the visibility  More... | |
| virtual void | makeConnections () | 
| make signal/slot connections  More... | |
Signals | |
| void | colorChanged (QColor color) | 
| signal that the color of has changed  More... | |
| void | sizeChanged (double xvalue, double yvalue, double zvalue) | 
| signal that the box size has changed  More... | |
| void | imageOnChanged (bool drawn) | 
| signal that the texture is drawn changed  More... | |
| void | facesChanged (Faces faces) | 
| signal that which faces the texture appears on changed  More... | |
| void | textureChanged (GLuint imageID) | 
| signal that the texture has changed  More... | |
  Signals inherited from LangmuirView::SceneObject | |
| void | visibleChanged (bool drawn) | 
| signal that the visibility has changed  More... | |
Public Member Functions | |
| Box (LangmuirViewer &viewer, QObject *parent=0) | |
| create the Box  More... | |
| ~Box () | |
| destroy the Box  More... | |
| const QColor & | getColor () const | 
| get color  More... | |
| int | getXSize () const | 
| get x length  More... | |
| int | getYSize () const | 
| get y length  More... | |
| int | getZSize () const | 
| get z length  More... | |
| bool | imageIsOn () const | 
| true if texture is showing  More... | |
  Public Member Functions inherited from LangmuirView::SceneObject | |
| SceneObject (LangmuirViewer &viewer, QObject *parent=0) | |
| create the SceneObject  More... | |
| bool | isVisible () | 
| true if object is drawn  More... | |
| void | render () | 
| calls OpenGL drawing commands.  More... | |
Protected Member Functions | |
| virtual void | init () | 
| initialize object  More... | |
| virtual void | buildGeometry (unsigned int tesselate_x, unsigned int tesselate_y, unsigned int tesselate_z) | 
| build cube geometry  More... | |
| virtual void | draw () | 
| perform OpenGL drawing operations  More... | |
  Protected Member Functions inherited from LangmuirView::SceneObject | |
| virtual void | preDraw () | 
| perform OpenGL drawing operations before draw()  More... | |
| virtual void | postDraw () | 
| perform OpenGL drawing operations after draw()  More... | |
Protected Attributes | |
| QColor | m_color | 
| color of box  More... | |
| double | m_xsize | 
| x length  More... | |
| double | m_ysize | 
| y length  More... | |
| double | m_zsize | 
| z length  More... | |
| double | m_halfXSize | 
| half xsize  More... | |
| double | m_halfYSize | 
| half ysize  More... | |
| double | m_halfZSize | 
| half zsize  More... | |
| GLuint | m_imageID | 
| texture ID  More... | |
| bool | m_imageOn | 
| show texture  More... | |
| Faces | m_faces | 
| texture faces  More... | |
| QOpenGLBuffer * | m_verticesVBO | 
| vertices buffer  More... | |
| QOpenGLBuffer * | m_normalsVBO | 
| normals buffer  More... | |
| QOpenGLBuffer * | m_texturesVBO | 
| texture buffer  More... | |
| QOpenGLBuffer * | m_indexVBO | 
| index buffer CW  More... | |
| unsigned int | m_numVertices | 
| number of vertices (3 * number of points)  More... | |
| unsigned int | m_numIndices | 
| index count  More... | |
  Protected Attributes inherited from LangmuirView::SceneObject | |
| LangmuirViewer & | m_viewer | 
| reference to OpenGL widget  More... | |
| bool | visible_ | 
| visibility  More... | |
A class to represent a textured box.
      
  | 
  explicit | 
create the Box
| viewer | the viewer | 
| parent | QObject this belongs to | 
| LangmuirView::Box::~Box | ( | ) | 
destroy the Box
      
  | 
  protectedvirtual | 
build cube geometry
      
  | 
  signal | 
signal that the color of has changed
| color | value of color | 
      
  | 
  protectedvirtual | 
perform OpenGL drawing operations
Reimplemented from LangmuirView::SceneObject.
      
  | 
  signal | 
signal that which faces the texture appears on changed
| faces | list of faces | 
| const QColor& LangmuirView::Box::getColor | ( | ) | const | 
get color
| int LangmuirView::Box::getXSize | ( | ) | const | 
get x length
| int LangmuirView::Box::getYSize | ( | ) | const | 
get y length
| int LangmuirView::Box::getZSize | ( | ) | const | 
get z length
| bool LangmuirView::Box::imageIsOn | ( | ) | const | 
true if texture is showing
      
  | 
  signal | 
signal that the texture is drawn changed
| drawn | true if texture is drawn | 
      
  | 
  protectedvirtual | 
initialize object
Reimplemented from LangmuirView::SceneObject.
      
  | 
  virtualslot | 
make signal/slot connections
      
  | 
  slot | 
set the color
| color | color to set | 
      
  | 
  slot | 
set the list of faces to show texture on
| faces | list of faces | 
      
  | 
  slot | 
set the box size
| xvalue | length | 
| yvalue | width | 
| zvalue | height | 
| tesselate_x | number of divisions | 
| tesselate_y | number of divisions | 
| tesselate_z | number of divisions | 
      
  | 
  slot | 
set texture
      
  | 
  slot | 
show the texture
| on | true if texture is to be shown | 
      
  | 
  signal | 
signal that the box size has changed
| xvalue | value of length | 
| yvalue | value of width | 
| zvalue | value of height | 
      
  | 
  signal | 
signal that the texture has changed
| imageID | texture ID | 
      
  | 
  slot | 
toggle if texture is shown
      
  | 
  protected | 
color of box
      
  | 
  protected | 
texture faces
      
  | 
  protected | 
half xsize
      
  | 
  protected | 
half ysize
      
  | 
  protected | 
half zsize
      
  | 
  protected | 
texture ID
      
  | 
  protected | 
show texture
      
  | 
  protected | 
index buffer CW
      
  | 
  protected | 
normals buffer
      
  | 
  protected | 
index count
      
  | 
  protected | 
number of vertices (3 * number of points)
      
  | 
  protected | 
texture buffer
      
  | 
  protected | 
vertices buffer
      
  | 
  protected | 
x length
      
  | 
  protected | 
y length
      
  | 
  protected | 
z length