Langmuir
Simulation
|
A class to represent an xyz axis that doesnt change size/position. More...
#include <corneraxis.h>
Public Types | |
enum | Location { LowerLeft, UpperLeft, LowerRight, UpperRight } |
the location of the axis More... | |
Public Slots | |
void | setLocation (Location location) |
set the axis location More... | |
void | setShift (int shift) |
set the axis shift More... | |
void | setSize (int size) |
set the axis size More... | |
virtual void | makeConnections () |
make signal/slot connections More... | |
Public Slots inherited from LangmuirView::Axis | |
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 | locationChanged (Location) |
signal that the axis location has changed More... | |
void | shiftChanged (int) |
signal that the axis shift has changed More... | |
void | sizeChanged (int) |
signal that the axis size has changed More... | |
Signals inherited from LangmuirView::Axis | |
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 | |
CornerAxis (LangmuirViewer &viewer, QObject *parent=0) | |
create the CornerAxis More... | |
Location | getLocation () const |
get the location of the corner axis More... | |
int | getSize () const |
get the size of the viewport More... | |
int | getShift () const |
get the shift of the viewport More... | |
Public Member Functions inherited from LangmuirView::Axis | |
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 | preDraw () |
perform OpenGL drawing operations before draw() More... | |
virtual void | postDraw () |
perform OpenGL drawing operations after draw() More... | |
Protected Member Functions inherited from LangmuirView::Axis | |
virtual void | draw () |
perform OpenGL drawing operations More... | |
Private Attributes | |
Location | m_location |
location of axis More... | |
int | m_scissorBox [4] |
storage for scissor box More... | |
int | m_viewPort [4] |
storage for viewport More... | |
int | m_shift |
shift of axis from edge More... | |
int | m_size |
size of altered viewport More... | |
Additional Inherited Members | |
Protected Attributes inherited from LangmuirView::Axis | |
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 that doesnt change size/position.
|
explicit |
create the CornerAxis
viewer | the viewer |
parent | QObject this belongs to |
Location LangmuirView::CornerAxis::getLocation | ( | ) | const |
get the location of the corner axis
int LangmuirView::CornerAxis::getShift | ( | ) | const |
get the shift of the viewport
int LangmuirView::CornerAxis::getSize | ( | ) | const |
get the size of the viewport
|
protectedvirtual |
initialize object
Reimplemented from LangmuirView::Axis.
|
signal |
signal that the axis location has changed
|
virtualslot |
make signal/slot connections
|
protectedvirtual |
perform OpenGL drawing operations after draw()
Reimplemented from LangmuirView::SceneObject.
|
protectedvirtual |
perform OpenGL drawing operations before draw()
Reimplemented from LangmuirView::SceneObject.
|
slot |
set the axis location
location | location to set |
|
slot |
set the axis shift
shift | shift to set |
|
slot |
set the axis size
size | size to set |
|
signal |
signal that the axis shift has changed
|
signal |
signal that the axis size has changed
|
private |
location of axis
|
private |
storage for scissor box
|
private |
shift of axis from edge
|
private |
size of altered viewport
|
private |
storage for viewport