Main Page | Class Hierarchy | Class List | Directories | File List | Class Members

ColorCubePanel Class Reference

#include <ColorCubePanel.h>

Inherits GuiComponent.

List of all members.

Public Member Functions

void render ()
bool onMouseDown (int x, int y)
void onMouseDrag (int x, int y)


Detailed Description

This class defines the panel for the color selection. It renders a ColorCube and a quad wich represents the background. This class encapsulates the ColorCube function and the state of user interaction.

Version:
12-04-05

Definition at line 20 of file ColorCubePanel.h.


Member Function Documentation

bool ColorCubePanel::onMouseDown int  x,
int  y
 

Handle mouse click.

Definition at line 45 of file ColorCubePanel.cpp.

References GuiComponent::disable(), GuiComponent::hit(), and TxPoint::rgba.

void ColorCubePanel::onMouseDrag int  x,
int  y
 

Handle Mouse motion. When the user pressed the right mouse button, and drags the mouse, this function should be called.

Definition at line 62 of file ColorCubePanel.cpp.

void ColorCubePanel::render  ) 
 

Render the cube at the position of the camera viewport.

Definition at line 20 of file ColorCubePanel.cpp.

References OrthographicCamera::startCamera(), and OrthographicCamera::stopCamera().


The documentation for this class was generated from the following files:
Generated on Mon Dec 12 15:20:26 2005 for CCube by  doxygen 1.4.1