Langmuir
Simulation
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Pages
LangmuirView::Axis Class Reference

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
LangmuirViewerm_viewer
 reference to OpenGL widget More...
 
bool visible_
 visibility More...
 

Detailed Description

A class to represent an xyz axis.

Constructor & Destructor Documentation

LangmuirView::Axis::Axis ( LangmuirViewer viewer,
QObject *  parent = 0 
)
explicit

create the Axis

Parameters
viewerthe viewer
parentQObject this belongs to

Member Function Documentation

virtual void LangmuirView::Axis::draw ( )
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

virtual void LangmuirView::Axis::init ( )
protectedvirtual

initialize object

Reimplemented from LangmuirView::SceneObject.

Reimplemented in LangmuirView::CornerAxis.

void LangmuirView::Axis::lengthChanged ( double  value)
signal

signal that the axes length has changed

Parameters
valuevalue of length
virtual void LangmuirView::Axis::makeConnections ( )
virtualslot

make signal/slot connections

void LangmuirView::Axis::radiusChanged ( double  value)
signal

signal that the axes radius has changed

Parameters
valuevalue of radius
void LangmuirView::Axis::setLength ( double  value)
slot

set the length of axes

Parameters
valuelength to set
void LangmuirView::Axis::setRadius ( double  value)
slot

set the radius of axes

Parameters
valueradius to set
void LangmuirView::Axis::setXColor ( QColor  color)
slot

set the color of the x-axis

Parameters
colorcolor to set
void LangmuirView::Axis::setYColor ( QColor  color)
slot

set the color of the x-axis

Parameters
colorcolor to set
void LangmuirView::Axis::setZColor ( QColor  color)
slot

set the color of the x-axis

Parameters
colorcolor to set
void LangmuirView::Axis::xColorChanged ( QColor  color)
signal

signal that the color of x-axis has changed

Parameters
colorvalue of color
void LangmuirView::Axis::yColorChanged ( QColor  color)
signal

signal that the color of y-axis has changed

Parameters
colorvalue of color
void LangmuirView::Axis::zColorChanged ( QColor  color)
signal

signal that the color of z-axis has changed

Parameters
colorvalue of color

Member Data Documentation

double LangmuirView::Axis::m_length
protected

axes length

double LangmuirView::Axis::m_radius
protected

axes radius

QColor LangmuirView::Axis::m_xcolor
protected

color of x-axis

QColor LangmuirView::Axis::m_ycolor
protected

color of y-axis

QColor LangmuirView::Axis::m_zcolor
protected

color of z-axis


The documentation for this class was generated from the following file: