Langmuir
Simulation
|
A class to represent an xyz axis. More...
#include <axis.h>
Public Slots | |
void | setXColor (QColor color) |
set the color of the x-axis More... | |
void | setYColor (QColor color) |
set the color of the x-axis More... | |
void | setZColor (QColor color) |
set the color of the x-axis More... | |
void | setRadius (double value) |
set the radius of axes More... | |
void | setLength (double value) |
set the length of axes More... | |
virtual void | makeConnections () |
make signal/slot connections 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 | xColorChanged (QColor color) |
signal that the color of x-axis has changed More... | |
void | yColorChanged (QColor color) |
signal that the color of y-axis has changed More... | |
void | zColorChanged (QColor color) |
signal that the color of z-axis has changed More... | |
void | radiusChanged (double value) |
signal that the axes radius has changed More... | |
void | lengthChanged (double value) |
signal that the axes length has changed More... | |
Signals inherited from LangmuirView::SceneObject | |
void | visibleChanged (bool drawn) |
signal that the visibility has changed More... | |
Public Member Functions | |
Axis (LangmuirViewer &viewer, QObject *parent=0) | |
create the Axis More... | |
const QColor & | getXColor () const |
get color of x-axis More... | |
const QColor & | getYColor () const |
get color of y-axis More... | |
const QColor & | getZColor () const |
get color of z-axis More... | |
double | getLength () const |
get axis length More... | |
double | getRadius () const |
get axis radius 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 | 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 | |
double | m_radius |
axes radius More... | |
double | m_length |
axes length More... | |
QColor | m_xcolor |
color of x-axis More... | |
QColor | m_ycolor |
color of y-axis More... | |
QColor | m_zcolor |
color of z-axis More... | |
Protected Attributes inherited from LangmuirView::SceneObject | |
LangmuirViewer & | m_viewer |
reference to OpenGL widget More... | |
bool | visible_ |
visibility More... | |
A class to represent an xyz axis.
|
explicit |
create the Axis
viewer | the viewer |
parent | QObject this belongs to |
|
protectedvirtual |
perform OpenGL drawing operations
Reimplemented from LangmuirView::SceneObject.
double LangmuirView::Axis::getLength | ( | ) | const |
get axis length
double LangmuirView::Axis::getRadius | ( | ) | const |
get axis radius
const QColor& LangmuirView::Axis::getXColor | ( | ) | const |
get color of x-axis
const QColor& LangmuirView::Axis::getYColor | ( | ) | const |
get color of y-axis
const QColor& LangmuirView::Axis::getZColor | ( | ) | const |
get color of z-axis
|
protectedvirtual |
initialize object
Reimplemented from LangmuirView::SceneObject.
Reimplemented in LangmuirView::CornerAxis.
|
signal |
signal that the axes length has changed
value | value of length |
|
virtualslot |
make signal/slot connections
|
signal |
signal that the axes radius has changed
value | value of radius |
|
slot |
set the length of axes
value | length to set |
|
slot |
set the radius of axes
value | radius to set |
|
slot |
set the color of the x-axis
color | color to set |
|
slot |
set the color of the x-axis
color | color to set |
|
slot |
set the color of the x-axis
color | color to set |
|
signal |
signal that the color of x-axis has changed
color | value of color |
|
signal |
signal that the color of y-axis has changed
color | value of color |
|
signal |
signal that the color of z-axis has changed
color | value of color |
|
protected |
axes length
|
protected |
axes radius
|
protected |
color of x-axis
|
protected |
color of y-axis
|
protected |
color of z-axis